SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
-
Dec 29, 2006, 05:06 #1
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Use of undefined constant SITEMAIL - assumed 'SITEMAIL'
I have just installed the PHP 5.2, Apache 2.23 and MySQL 5.1 seperatly but when i run the previously built project, then it says:
Code:Use of undefined constant SITEMAIL - assumed 'SITEMAIL'
PHP Code:define(SITEMAIL "info@mysite.com");
-
Dec 29, 2006, 05:20 #2
- Join Date
- Sep 2005
- Posts
- 75
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
try
PHP Code:define('SITEMAIL', "info@mysite.com");
-
Dec 29, 2006, 05:50 #3
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanx keviin6,
No any $_GET, $_POST and $_SESSIONs are being working properly What do do next?
It shows the following error where i have used the $_REQUEST['sid']:
Code:Notice: Undefined index: sid in D:\www\yerkes\services.php on line 13
-
Dec 29, 2006, 05:52 #4
- Join Date
- Sep 2005
- Posts
- 75
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Dec 29, 2006, 05:59 #5
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I mean no globals working. That means no GET POST and SESSIONs are not working.
-
Dec 29, 2006, 06:09 #6
- Join Date
- Sep 2005
- Posts
- 75
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Dec 30, 2006, 22:08 #7
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
print_r($_GET) displays just array()
What may be the error?
-
Dec 30, 2006, 22:16 #8
- Join Date
- Mar 2006
- Posts
- 6,132
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
are you using mod_rewrite or something similar?
and, i have to ask, you did make sure that you had a query string in the url when you tested?
-
Dec 30, 2006, 22:25 #9
- Join Date
- Oct 2006
- Location
- Kathmandu, Nepal
- Posts
- 4,013
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have not used any query string but sometime it may come from url as query string so i have checked in the page $_GET but its not working it just show me the error:
Code:Notice: Undefined index: page in D:\www\tracker\services.php on line 46
Bookmarks