262 Posted Topics

Member Avatar for scottfreevideos
Member Avatar for Squidge
0
594
Member Avatar for fheppell

Try: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html RewriteRule ^(.*)$ $1.html RewriteCond %{REQUEST_FILENAME}\.php RewriteRule ^(.*)$ $1.php

Member Avatar for cereal
0
2K
Member Avatar for zoreli

There are loads of MOD_REWRITE tutorials about: http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/ It can be a pain, but read through some

Member Avatar for Squidge
0
556
Member Avatar for Squidge

Strange question i am afraid, i have a friend who is after information on a database called "Profile". Does anyone have any links to this, as I have been unable to find anything

Member Avatar for Squidge
0
150
Member Avatar for ebanbury

I use the same DB table for both admin and users. They are identified by an additional column, for example: :access: 0 = GOD, 1 = admin, 2 = user So when you query the DB you need to validate the user, and also check against the access level that …

Member Avatar for ebanbury
0
133
Member Avatar for sahil.bhatia.18

I suspect you are not validating and cleansing your form input, and this has left it open to SQLInjection

Member Avatar for sahil.bhatia.18
0
237
Member Avatar for pucivogel
Member Avatar for pucivogel

> $script_url=$_SERVER['PHP_SELF']; //Change this if you want to use this as an include file. >$files_path="./album/"; // Where does the album start? Anything under the directory the script will read. With Trailing slash >$full_server="http://localhost:8080/phAlbum/album"; //Enter the full server path to where the albums start. //With Trailing Slash I would say it …

Member Avatar for Squidge
0
260
Member Avatar for LastMitch

Hi LastMitch, Think it is bad practice to have the DB call in the class file. From `db.php` remove 15 & 16. Call this from with in `function.php` <?php include("db.php"); function PM() { $db = new foo_mysqli('xx','xxx','xxxx','xxxxx'); $sql = "SELECT * FROM posts"; $result = $db->query($sql) or die("It's not connecting"); …

Member Avatar for broj1
0
852
Member Avatar for Squidge

Hi all. Does anyone have a good autoloader script for namespace classes ? Namespace is identical to the file structure.

Member Avatar for Squidge
0
125
Member Avatar for Squidge

Hi all. I recently set up dual boot Os (7, and Ubuntu 12.10). The namespace call was/is working on the Windows 7 env (same version of XAMPP). I know Linux is case sensitive so i have amended the file/folder calls. Although the file exists, i am getting: `Message: Class classLib\dataBase\database_Connection …

Member Avatar for Squidge
0
199
Member Avatar for pucivogel

can you show a few lines before this line if(isset($_POST['emri'])){ $emri=$_POST['emri']; }

Member Avatar for urtrivedi
0
141
Member Avatar for uurcnyldrm

http://return-true.com/2010/04/using-php-mysqli-with-a-mysql-database-part-1/ will take you through some basics

Member Avatar for uurcnyldrm
0
241
Member Avatar for bradly.spicer

looking over a google search states HTACCESS cannot be used to alter global text in the manner you are trying to do

Member Avatar for Squidge
0
116
Member Avatar for bradly.spicer

As pritaeas has said: > remove the comma before FROM... $query = "SELECT id, customer_name, address, postcode, telephone, mobile, mobiletwo, email, nservice FROM Customers WHERE DATEDIFF (CURDATE(), nservice) > 0";

Member Avatar for Squidge
0
130
Member Avatar for ebanbury

You are ending your message line and not actually including the returns: $MESSAGE_BODY = "Name is contacting you from Mas Des Filles Contact Page" .""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY = "Name: ".nl2br($_POST["contact_name"]).""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY .= "Email: ".nl2br($_POST["contact_email"]).""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY .= "Contact: ".nl2br($_POST["contact_tel"]).""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY .= "Message: ".nl2br($_POST["contact_query"]).""; "------------------------------------------------------------\n" …

Member Avatar for ebanbury
0
99
Member Avatar for Squidge

Hi all, I am putting together a CRUD. I have read through tutorials, and references. Just wanted to see if i was on the right track: <?php // root -> /classLib/CRUD/CRUD spl_autoload_extensions(".php"); spl_autoload_register(); use classLib\database\database_Connection as DB; class CRUD { private $id; #__construct to be extended public function __construct($id=null){ $this->id …

Member Avatar for diafol
0
352
Member Avatar for simplypixie

> The faq-records.php file (form shortened for ease of reading - this all works fine on page load): <?php $faqs = $objFAQ->get_admin_faqs(); foreach ($faqs as $faq) { ?> Looks like you are calling a class function, but have not included nor declared. I am still very new to OOP. You …

Member Avatar for diafol
0
1K
Member Avatar for harikris2007

Drupal documentation is very well presented. Have u looked through it? And as LastMitch said +1 Their forum is probably the best place to ask,

Member Avatar for harikris2007
0
726
Member Avatar for Squidge

Evening all. I am using nivoSlider, and have come across an issue with ow i'd like it to work. Here is a sample of the slider: http://gavdev.roundthebend.info/index2.html This is what i would like it to do: http://www.directenergypurchasing.com/ This is the HTML: <link rel="stylesheet" href="nivo-slider/nivo-slider.css" type="text/css" media="screen" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script …

Member Avatar for AleMonteiro
0
180
Member Avatar for deepak.fugo

@Deepak, Once you have confirmed re write is enabled, you also need to set your base: `RewriteBase /` = these makes "/" the return for where all rewrites will start from. Looking at what you have posted this is a key item that is missing. Also for the rule itself: …

Member Avatar for Squidge
0
217
Member Avatar for ak47carbon
Member Avatar for hwoarang69

@LastMitch, Think line 7 is wrong way round echo "<img src='IMAGE/ITEMS/$image_folder_name/{$img['file']}' /><br>\n";

Member Avatar for Squidge
0
1K
Member Avatar for tokick4

Why use js to do math. PHP can easily do that for you. Just add a function into your loop

Member Avatar for tokick4
0
186
Member Avatar for geneh23

Shouldn't line 99 => ` $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';` be wrapped in double quotes not single? `$email_exp = "/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/";`

Member Avatar for LastMitch
0
348
Member Avatar for bikertz
Member Avatar for iamconfused2012

more information is needed. EasyPHP from what i remember uses "127.0.0.1" not "localhost"

Member Avatar for diafol
0
65
Member Avatar for tcampbell011
Member Avatar for Squidge
0
228
Member Avatar for vizz
Member Avatar for dancks
Member Avatar for TINO_
Member Avatar for andyy121

Why so many threads? http://www.daniweb.com/web-development/php/threads/439976/contact-mailing

Member Avatar for LastMitch
0
155
Member Avatar for andyy121

Macromedia has no email ability. Your test server (XAMP etc) will have this function. You will need to configure it

Member Avatar for Squidge
0
349
Member Avatar for muhammad.waleed.9699
Member Avatar for muhammad.waleed.9699
0
232
Member Avatar for rishijasapara

Can you show your form? Also have tried `var_dump($_POST);` to see if the varible is being populated?

Member Avatar for fobos
0
235
Member Avatar for afroo.gfx

in your .htaccess you need to have `RewriteBase` In mine i have this set as `RewriteBase /` So you will then rewrte your includes to: <?php include('/styles/header.php'); include ('/styles/leftblock.php'); include ('/styles/mrnuleft.php'); ?> Try this: **http://www.generateit.net/mod-rewrite/**

Member Avatar for Squidge
0
281
Member Avatar for Squidge

Evening All, I am looking to start a class that dynamically creates a sitemap.xml on command and if possible auto uploads to google. The only thing is all the scripts i have come across by searching google tend to be using static pages. My links are dynamic and are also …

Member Avatar for Squidge
0
592
Member Avatar for yoyo12345

**http://localhost/install/index.php** Are you sure you didnt create a sub folder for the install? http://localhost/[some folder]/install/index.php

Member Avatar for Squidge
0
315
Member Avatar for McLaren

looks like the PEAR install is all over the place. I would suggest following http://pear.php.net/manual/en/installation.getting.php This makes updating your pear easier, especially as it looks like the config is screwed

Member Avatar for McLaren
0
314
Member Avatar for andyy121

>so any answer or any ideas from you I would suggest you use "GOOGLE" below is a link which is searched by looking for "PHP and MYSQL", this will go over basic db connection, unless you are using PDO, then google DB connection using PDO, or even use the search …

Member Avatar for rayidi
-2
321
Member Avatar for edsweng

Yes <?php $age = "really really really old :)"; ?> <h1>You are <?php echo $age; ?></h1> **NOTE** The cuse of age in this post is no idictaion of being agest

Member Avatar for edsweng
0
112
Member Avatar for dalilice

@dalilice Have you looked over the rather extensive FAQ, Knowledge Base, API documentation that is available at the creators website? http://simplepie.org/

Member Avatar for Squidge
0
384
Member Avatar for andyy121

>conect this page to another page, Can you provide more details on how you would expect this to be done? `a href`, automatic redirect?

Member Avatar for andyy121
0
330
Member Avatar for handry.wiranata

I am guessing you have a database connection and table selection somewhere in one of the includes?

Member Avatar for Bachu
0
213
Member Avatar for cssweb

Would it not make more sense to get a single upload functioning first, then you can modify the coding for multi upload

Member Avatar for cssweb
0
141
Member Avatar for andyy121

Typically functions will either be in a seperate file, or at the bottom of the php file: <?php yourname("Shamp"); function yourname($name){ echo "Your Name is " .$name ; } ?> This works fine. Because you are calling a function with the assigned data. PHP then continues to look through the …

Member Avatar for Bachu
0
131
Member Avatar for vishalonne

Try changing Line 14 to : if(isset($_POST['logemail'] && $_POST['p'])) { Where is the `login()` function and $mysqli variable coming from?

Member Avatar for LastMitch
0
160
Member Avatar for dyingatmidnight

Have you tried getting the image dimension using PHP, then passing the information into JQuery? JQuery shouldn't be firing before the php (Client/Server)

Member Avatar for LastMitch
0
171
Member Avatar for andyy121

"\n" -> new line "\t" -> tab "\r" -> carriage return Dude >but i wont a better explain pritaes is well respected, and has taken time to help you. You clearly have not checked google, nor the search function on this web site. All of what you are "wanting a …

Member Avatar for andyy121
0
158
Member Avatar for kitschkath

The End.