Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Print
Topic: PHP in T35: HELP WITH INCLUDE  (Read 2603 times)
« on: January 26, 2005, 11:43:17 AM »
Junior Member
3141592654 Offline
Junior Member
Newbie

View Profile
*
Posts: 1



i want to use the command include , but why it isnt working? Look at this:

---index.php----


   include($corpo)
?>



-------------
And then when i go to
http://MYLOGIN.t35.com/index.php?corpo=test.php
(test.php do exist in my site) i receive the current error:

-------
Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /home/freehost/t35.com/3/1/MYLOGIN/index.php on line 7
-----
Why?Can you help me?
Report to moderator   Logged

 
« Reply #1 on: January 26, 2005, 03:02:35 PM »
TheDarkness
Guest

Registered globals is off, so instead use $_GET of $_POST.


include() will only work if you are going to include another file into the current page.
Report to moderator   Logged
« Reply #2 on: January 26, 2005, 09:04:06 PM »
Junior Member
Ogopogo Offline
Junior Member
Newbie

View Profile
*
Posts: 7



Im trying to install a newsscript for my website, and get a 404 error and get rediected when I try to run the install, somone told me its because registered globals are off, is this the reason?
Report to moderator   Logged
« Reply #3 on: January 27, 2005, 01:52:55 AM »
CravenBW
Guest

What is the site url? I find it extremely had to believe that being redirected to a 404 can be related to register globals being turned off and even though it is there are simple means to get around it.
Report to moderator   Logged
« Reply #4 on: January 27, 2005, 04:29:01 AM »
Junior Member
Ogopogo Offline
Junior Member
Newbie

View Profile
*
Posts: 7



its weird, like it wont goto the install script, like it doesn't know where it is(when I know its there, looked it all through. so somone told me that, does it make any sense at all?  huh
Report to moderator   Logged
« Reply #5 on: January 27, 2005, 03:54:22 PM »
CravenBW
Guest

You signed up with caps didn't you? If you did then your going to have to sign up again without the caps.
Report to moderator   Logged
« Reply #6 on: January 27, 2005, 07:21:10 PM »
Junior Member
Ogopogo Offline
Junior Member
Newbie

View Profile
*
Posts: 7



no, I did not sign up with caps

and my site is http://dvda.t35.com
Report to moderator   Logged
« Reply #7 on: January 27, 2005, 08:15:05 PM »
Member
Triganimarusuke Offline
Member
Jr. Member

View Profile WWW
**
Posts: 51



nvm, i realized it was two differnet people XD
Report to moderator   Logged
« Reply #8 on: January 27, 2005, 09:00:16 PM »
Junior Member
Alghieri Offline
Junior Member
Newbie

View Profile
*
Posts: 11



Opo i would recomend using cute news.  its used on many high volume sites and works great (entensity.net uses it i believe and it gets over 70,000 views a day)
Report to moderator   Logged
« Reply #9 on: January 28, 2005, 04:28:46 PM »
Junior Member
Ogopogo Offline
Junior Member
Newbie

View Profile
*
Posts: 7



entensity uses ashnews, which is what im trying to use, lol
Report to moderator   Logged
« Reply #10 on: January 28, 2005, 06:05:58 PM »
Junior Member
Ogopogo Offline
Junior Member
Newbie

View Profile
*
Posts: 7



ive also have gotten cutenews to work, and really didnt like the way it posted stuff, so ive been trying ashnews since everyone says its the best
Report to moderator   Logged
 
Pages: [1]
Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC