Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 12-05-2007, 08:00 PM
AlCavalier AlCavalier is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 1
Default PHP Help

I have just started using php to call rotating urls, banners, popups, and
other information to my webpages.

Here is the code I use.
<?php include("http://www.rotatethisbanner.com/1/"); ?>

This particular code calls a banner sequencially rotating script.

Of course the URL is different according to which script I want to call up.

I am now being told that I am using php4 and that it is obsolete and will
not be supported my most servers after 12/31/2007.

Does anyone have a suggestion to the code I could use in place of the
one I am using?
Reply With Quote
  #2  
Old 12-05-2007, 08:42 PM
regentronique's Avatar
regentronique regentronique is offline
King Croc
 
Join Date: Aug 2007
Location: Quebec,Canada
Posts: 960
Default Re: PHP Help

The "include" function is still functionnal in PHP5, can you elaborate more about exactly what you believe wont work anymore with PHP5?
Reply With Quote
  #3  
Old 12-05-2007, 09:31 PM
GatorDaveC's Avatar
GatorDaveC GatorDaveC is offline
HostGator Staff
 
Join Date: Mar 2006
Location: Ontario, Canada
Posts: 2,147,483,696
Default Re: PHP Help

If that URL you are including from is a local URL you should include the file name, not the URL.

The include function works with PHP5.
Reply With Quote
  #4  
Old 12-05-2007, 11:25 PM
olite's Avatar
olite olite is offline
Hatchling Croc
 
Join Date: Dec 2007
Location: Adelaide
Posts: 18
Default Re: PHP Help

PHP Code:
<?php include("http://www.rotatethisbanner.com/1/"); ?>
By defauly URL File include is disable on These servers, or so I have noticed.

As GatorDaveC points out that this if this is a local file this wont cause an issue just change the include as he suggested to call the local file name.

PHP Code:
<?php include("/home/youruser/pathtofile/file.ext"); ?>
--Added--
If it isnt a local file you will have to get a little more creative...
__________________

Why take a crash course... when we can just crash the server on our course.
Skip auto-generated errors... make them yourself... edit in text.

Last edited by olite; 12-06-2007 at 01:02 AM.
Reply With Quote
  #5  
Old 12-06-2007, 05:51 AM
eLIANT eLIANT is offline
Royal Croc
 
Join Date: Apr 2005
Posts: 795
Default Re: PHP Help

Quote:
Originally Posted by AlCavalier View Post
I am now being told that I am using php4 and that it is obsolete and will
not be supported my most servers after 12/31/2007.
Being told by whom? The folks at RotateThisBanner? HG?
__________________

eLIANT Technology Services
(site feedback welcome)
Reply With Quote
  #6  
Old 12-06-2007, 06:58 AM
MrFields MrFields is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 36
Default Re: PHP Help

If using PHP5:

- Watch out if you do any include("http://www.example.com/script.php"); type calls, you need to add a new line to php.ini which is: "allow_url_include = On". Without this URL calls in include() won't work.

Sources from cPanel forums: http://forums.cpanel.net/showthread....ghlight=MySQL5

Best Regards,
Reply With Quote
  #7  
Old 12-06-2007, 08:58 AM
Goddess Dix's Avatar
Goddess Dix Goddess Dix is offline
King Croc
 
Join Date: Aug 2006
Location: KS, USA
Posts: 1,466
Default Re: PHP Help

Quote:
Originally Posted by eLIANT View Post
Being told by whom? The folks at RotateThisBanner? HG?
it's being phased out. from php.net

Quote:
The PHP development team hereby announces that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. We will continue to make critical security fixes available on a case-by-case basis until 2008-08-08. Please use the rest of this year to make your application suitable to run on PHP 5.
Quote:
Originally Posted by MrFields View Post
If using PHP5:

- Watch out if you do any include("http://www.example.com/script.php"); type calls, you need to add a new line to php.ini which is: "allow_url_include = On". Without this URL calls in include() won't work.
Thanks for the useful info.
Reply With Quote
  #8  
Old 12-06-2007, 09:20 AM
eLIANT eLIANT is offline
Royal Croc
 
Join Date: Apr 2005
Posts: 795
Default Re: PHP Help

The point is, until HG is moves all servers to V5, apps developed under V4 will continue to run just fine.
__________________

eLIANT Technology Services
(site feedback welcome)
Reply With Quote
  #9  
Old 12-06-2007, 09:52 AM
codesight codesight is offline
Swamp Croc
 
Join Date: Jan 2007
Location: Fargo, North Dakota
Posts: 321
Default Re: PHP Help

Where I work (my fulltime job), we run RedHat and Redhat is supporting PHP4 for three years after PHP.net drops support for it.

I'm not sure what that entails, but I'm assuming they have a PHP team for security fixes, etc...

I'm sure it will take a fairly long time for hosting outfits to stop PHP4 support fully.
__________________
http://www.codesight.net
Reply With Quote
  #10  
Old 12-06-2007, 10:46 AM
eLIANT eLIANT is offline
Royal Croc
 
Join Date: Apr 2005
Posts: 795
Default Re: PHP Help

Quote:
Originally Posted by codesight View Post
I'm sure it will take a fairly long time for hosting outfits to stop PHP4 support fully.
That's why, when AlCavalier said, "I am now being told that I am using php4 and that it is obsolete and will not be supported my most servers after 12/31/2007" I asked who told him that.
__________________

eLIANT Technology Services
(site feedback welcome)
Reply With Quote
  #11  
Old 12-06-2007, 10:52 AM
codesight codesight is offline
Swamp Croc
 
Join Date: Jan 2007
Location: Fargo, North Dakota
Posts: 321
Default Re: PHP Help

I didn't even bother to reply, dunno why...

I gathered he was talking about the EOL for PHP4 on php.net.
__________________
http://www.codesight.net
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 11:42 PM.

 
Forum SEO by Zoints