Tag Archives: php

xml 2 array and array to xml

Share I’ve tried this function with google feed but doesn’t seem to work. I haven’t look into details of it yet anyways you can try it and give it a shot. You can also use this for array to xml. … Continue reading

Posted in php | Tagged , , , | Leave a comment

Call-time pass-by-reference has been deprecated

Share Got this error and after some digging I found a solution. It was listed below. But looking back into my code I noticed that I called the function twice and used it incorrectly that caused the error!. Anyways, aside … Continue reading

Posted in anything under the moonlight, php | Tagged , , , | Leave a comment

[function.main]: failed to open stream: Permission denied

ShareWarning: … [function.main]: failed to open stream: Permission denied Warning: main() [function.include]: Failed opening … for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in … I wanna bear in mind that this error has something to do with file permission coz at first glance I … Continue reading

Posted in php | Tagged , , , | 1 Comment

nested include/require not working php5.2

ShareSuddenly happened to my scripts, some includes are not working after reconfiguring the server. According to this site w/c encountered the same issue nested includes don’t work in php5.2 I am not able to use includes or requires in nested … Continue reading

Posted in php | Tagged , , , , , , | 9 Comments

differences of $_SERVER[’PHP_SELF’] – $_SERVER[’SCRIPT_NAME’] – $_SERVER['REQUEST_URI']

Share$_SERVER[’PHP_SELF’], $_SERVER['REQUEST_URI'], and $_SERVER[’SCRIPT_NAME’] all behave in similar ways, they return information about what file is being used. When exposed to some differnt scenarios, you can see in some cases they do behave differently. This can help you decide which … Continue reading

Posted in php | Tagged , | Leave a comment