The British Caving Association

Any views expressed are not necessarily those of the BCA
It is currently Fri 24 Oct 2014 12:59

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed 25 Feb 2009 17:08 
Offline
User avatar

Joined: Thu 16 Mar 2006 23:45
Posts: 324
I might be the only person this affects, but I thought it useful to document my problems - if only so I can refer back to it myself.

Im in the process of testing the BCRA pages on the new server, and they have thrown up some obscure problems caused by the fact that the new server runs PHP5 and not PHP4.

1) In my code I define a function called hash() but it turns out that this is a built-in function in PHP5 and the compiler throws up an error "you cannot redfine this function". What other new functions might screw up existing code?

2) I use a key value abstract in an array, i.e. $bibliography[abstract] and it turns out that abstract is a reserved word in PHP5. What other new reserved words might screw up existing code?

Of course, this is sloppy coding on my part, I should have used $bibliography['abstract'] but that throws up another problem in that, with the single quotes present there, you need to put curly brackets in statements like echo "This is the {$bibliography['abstract']} entry";. Again, arguably sloppy coding on my part to omit the {} in the first place but <shrug> I only do this in my spare time :-)

Hopefully I wont find any other problems in porting the site across

There's a wider point here: if ever you upgrade any modules on the site, Cookie/Les, that might affect users, can you let us know?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group