My Web host tells me that PHP no longer supports "->
Moderator: General Moderators
-
Johnnyjoe2000
- Forum Newbie
- Posts: 6
- Joined: Mon May 21, 2007 9:20 am
My Web host tells me that PHP no longer supports "->
Last week the host of one of my web sites did an update to PHP and crashed the web site. I am more than a little upset it is going on 5 days and still the site is down.
I noticed that their server while executing the script would kill the script any time it reached a greater than sign. Obviously this makes it difficult for any mathmatical evaluations or array signments such as: $db->query($sSQL); Basically it is now using ">" instead of "?>" as the script end marker.
So today the host-website tech emails me and tells me that he thinks PHP nolonger supports "->" in the scripts. I personally think he full of -bull-, but then I am not a full time programer and certainly don't keep up with PHP standards. Has anyone heard that PHP in recent updates has done away with using "->" for assigning an array, or is he just trying to buy time and not fix thier issues?
I noticed that their server while executing the script would kill the script any time it reached a greater than sign. Obviously this makes it difficult for any mathmatical evaluations or array signments such as: $db->query($sSQL); Basically it is now using ">" instead of "?>" as the script end marker.
So today the host-website tech emails me and tells me that he thinks PHP nolonger supports "->" in the scripts. I personally think he full of -bull-, but then I am not a full time programer and certainly don't keep up with PHP standards. Has anyone heard that PHP in recent updates has done away with using "->" for assigning an array, or is he just trying to buy time and not fix thier issues?
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
Re: My Web host tells me that PHP no longer supports "-
Your host is being run by a bunch of MORONS who shouldn't be let within 100 yards of a computer. It sounds like one of their idiot techs was screwing around with the php.ini and they completely hosed everything. They probably didn't keep a backup of the old php.ini so they can't try reverting to it (not much changed between php4 and php5 in the php.ini).Johnnyjoe2000 wrote:So today the host-website tech emails me and tells me that he thinks PHP nolonger supports "->" in the scripts. I personally think he full of -bull-, but then I am not a full time programer and certainly don't keep up with PHP standards. Has anyone heard that PHP in recent updates has done away with using "->" for assigning an array, or is he just trying to buy time and not fix thier issues?
Man, it gets my panties in a bunch to see idiots like this maintaining servers. They probably couldn't handle the drive up window at a Micky D's but they are put in charge of maintaining a server.
If I were you I would start looking for a new hosting company and ditch these morons fast.
-
Johnnyjoe2000
- Forum Newbie
- Posts: 6
- Joined: Mon May 21, 2007 9:20 am
Frustrated
OK my web host is now telling me that every single PHP code I have is not 5.2.2 compleint becouse it has ">" symbols...........
I agree it is time to change host companies.....
I agree it is time to change host companies.....
- maliskoleather
- Forum Contributor
- Posts: 155
- Joined: Tue May 15, 2007 2:19 am
- Contact:
Re: My Web host tells me that PHP no longer supports "-
haha.. thats greatAKA Panama Jack wrote:Man, it gets my panties in a bunch to see idiots like this maintaining servers. They probably couldn't handle the drive up window at a Micky D's but they are put in charge of maintaining a server.
and please switch hosts now
...though in php6, when it releases, we wont be able to use <? as an opening tag anymore...
-
Johnnyjoe2000
- Forum Newbie
- Posts: 6
- Joined: Mon May 21, 2007 9:20 am
No Error messge
This is just it. I am not getting an error message. Once the server finds the first ">" sign the server quits the script and returns the rest of the script area as plain text on the web page. So the pages are just a mess with code snippets that came after any ">" sign.
Today the host tech messed with the ini file again, and now the PHP pages on the site are all being displayed as pure text. The server isn’t even trying to run anything server side anymore.......
It is so frustrating since I can’t just be there looking over the techs shoulder, or just fixing it myself. This is a web site for a non-profit organization and unlike my other web sites that are on servers I have access too, this is the only site I manage that is hosted by an outside company.
Truly frustrating.
Today the host tech messed with the ini file again, and now the PHP pages on the site are all being displayed as pure text. The server isn’t even trying to run anything server side anymore.......
It is so frustrating since I can’t just be there looking over the techs shoulder, or just fixing it myself. This is a web site for a non-profit organization and unlike my other web sites that are on servers I have access too, this is the only site I manage that is hosted by an outside company.
Truly frustrating.
-
Johnnyjoe2000
- Forum Newbie
- Posts: 6
- Joined: Mon May 21, 2007 9:20 am
HostOnce.com
HostOnce.com
I must admit that we have used them for over 5 years and this is the first time they have really <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> me off.
I must admit that we have used them for over 5 years and this is the first time they have really <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> me off.
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
There's your problem. They are using Windows for their servers. Those idiots probably don't know anything except Windows. They probably know nothing at all about PHP. Windows certified techs tend to be braindead about anything that isn't natively Windows based. 
Any bets on them telling you that you need to switch to ASP to get your site working properly?
Chuckle...
Their demo pages don't even work.
Any bets on them telling you that you need to switch to ASP to get your site working properly?
Chuckle...
Their demo pages don't even work.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Are you 100% sure that > is having the effect you think it is? Web browsers do funny things with > and < characters. Clcik view Source if you haven't already done so.
Let's say for argument's sake you use short tags:
Rather than proper tags:
Then I could see why you're getting strange things happening after an upgrade.
I really can't think of anything you can do to PHP to break it like you're mentioning
It's more likely short_tags have been disabled.
What does this exact code show?
Let's say for argument's sake you use short tags:
Code: Select all
<? code_here() ?>Code: Select all
<?php code_here() ?>I really can't think of anything you can do to PHP to break it like you're mentioning
What does this exact code show?
Code: Select all
<?php phpinfo() ?>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
You could very well experience this problem if you are using short tags in your code. Are you sure your tags are proper tags (<?php) and not short tags (<?)? I only ask this because I had a very similar problem when I moved some old PHP 4 code to a new PHP5 server that had the short open tags directive OFF.
PS '->' is not for arrays, is the object scope (or scope resolution) operator. That will never go away in PHP unless your host managed to find a way to force you to use static class calls all over the place.
PS '->' is not for arrays, is the object scope (or scope resolution) operator. That will never go away in PHP unless your host managed to find a way to force you to use static class calls all over the place.
In fairness, it's the fact that they have done something stupid that's caused the problem, not the type of servers the chose to use.AKA Panama Jack wrote:There's your problem. They are using Windows for their servers.
Last edited by Grim... on Tue May 22, 2007 5:47 am, edited 1 time in total.