|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
The "include" function is still functionnal in PHP5, can you elaborate more about exactly what you believe wont work anymore with PHP5?
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
PHP Code:
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:
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. |
|
#5
|
|||
|
|||
|
Being told by whom? The folks at RotateThisBanner? HG?
|
|
#6
|
|||
|
|||
|
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, |
|
#7
|
||||
|
||||
|
it's being phased out. from php.net
Quote:
Quote:
__________________
~dix |
|
#8
|
|||
|
|||
|
The point is, until HG is moves all servers to V5, apps developed under V4 will continue to run just fine.
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
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.
|
|
#11
|
|||
|
|||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | |
|
|