Hot Scripts
Log In
Sign Up
Why Join Hot Scripts?
Search over 40,000 listings on Hot Scripts:
All Categories
Ajax
ASP
ASP.NET
C & C++
CFML
CGI & Perl
Flash
Java
JavaScript
PHP
Python
Remotely Hosted
Ruby on Rails
Tools & Utilities
XML
Top Rated Scripts
Most Popular Scripts
New Scripts
Design Templates
Forum
Blog
Advertiser Info
Contact
Register
FAQ
Rules
Calendar
Search
Today's Posts
Mark Forums Read
Current location:
Hot Scripts Forums
»
Programming Languages
»
PHP
» PHP4 to PHP5 issue help
PHP4 to PHP5 issue help
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
11-20-09, 04:19 PM
tc325
New Member
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
PHP4 to PHP5 issue help
i have a page with a switch statement
on php4 i was able to put this line of code in the add bar "video.php?viewby=job&&job=AI-5254"
and now on php 5 that doesnt work im not recieving any errors
any suggestions?
tc325
View Public Profile
Find all posts by tc325
#
2
(
permalink
)
11-20-09, 04:53 PM
Nico
Community Leader
Join Date: Sep 2005
Location: Spain
Posts: 7,563
Thanks: 5
Thanked 25 Times in 23 Posts
You're gonna have to post your code.
__________________
Zend Certified Engineer
|
My Twitter
|
HotScripts' Blog
|
HotScripts' Twitter
|
How to ask questions the smart way
Nico
View Public Profile
Visit Nico's homepage!
Find all posts by Nico
#
3
(
permalink
)
11-20-09, 04:54 PM
therocket954
Community Liaison
Join Date: Jul 2007
Location: Michigan, USA
Posts: 333
Thanks: 2
Thanked 8 Times in 8 Posts
Switch is still OK with PHP5, hmmm..
Are you "GET" 'ing the URL parameters before using them? Kinda like this:
PHP Code:
$viewby
=
$_GET
[
'viewby'
];
$job
=
$_GET
[
'job'
];
Otherwise, post some code and that'll help
__________________
--Eric Allison
Twitter:
http://www.twitter.com/Eric_Allison
therocket954
View Public Profile
Find all posts by therocket954
#
4
(
permalink
)
11-20-09, 07:20 PM
wirehopper
Community Liaison
Join Date: Feb 2006
Posts: 2,050
Thanks: 9
Thanked 65 Times in 63 Posts
Turn on error reporting and error display.
wirehopper
View Public Profile
Find all posts by wirehopper
#
5
(
permalink
)
11-21-09, 10:59 AM
tc325
New Member
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
$job = $_GET['job'];
that was it thanks why do u need to add the GET now?
tc325
View Public Profile
Find all posts by tc325
#
6
(
permalink
)
11-21-09, 01:21 PM
Nico
Community Leader
Join Date: Sep 2005
Location: Spain
Posts: 7,563
Thanks: 5
Thanked 25 Times in 23 Posts
Ah, I know now what's happening.
Your old PHP configuration had "register globals" enabled, and your new PHP 5 configuration has it disabled. It's much more secure this way. So you should get used to it.
PHP: Description of core php.ini directives - Manual
__________________
Zend Certified Engineer
|
My Twitter
|
HotScripts' Blog
|
HotScripts' Twitter
|
How to ask questions the smart way
Nico
View Public Profile
Visit Nico's homepage!
Find all posts by Nico
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
plz help me
|
md5 decode/encode
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General Community
Announcements
Polls
The Lounge
New Members & Introductions
Script Requests
HotScripts.com Discussion
Hot Scripts Forum Questions, Suggestions and Feedback
General HotScripts Site Discussion
HotScripts Site Bug Reports
General Web Coding
HTML/XHTML/XML
JavaScript
CSS
Flash & ActionScript
Programming Languages
PHP
Perl
ASP
ASP.NET
C/C++
Visual Basic
Windows .NET Programming
Everything Java
Other Languages
Other Discussions
Web Servers
Database
Other Topics
Web Design
HTML5
API
Frameworks
AJAX
Security
Server Administration
Portable Device Programming
Cloud Computing
Ruby on Rails
CFML
Python
Tools and Utilities
CGI
Remotely Hosted
Web Hosting
Advertising Forums
General Advertisements
Job Offers & Assistance
Traffic Exchange
Website Reviews
WebHostingTalk.com
DBForums.com
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Upgrading php4 to php5
Jay6390
Web Servers
3
05-08-08
08:14 AM
php4 & php5
Baho
PHP
3
05-06-05
08:39 AM
Can we make it from PHP4 to PHP5?
weilies
PHP
2
04-29-05
06:24 AM
PHP5 Hosting account for FREE w/ any purchase!
mxhub
General Advertisements
0
10-07-04
12:52 PM
All times are GMT -5. The time now is
01:09 PM
.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Furl this Thread!
Share on Facebook
Share on Stumble Upon
Share on Twitter