| Subcribe via RSS

nested include/require not working php5.2

February 13th, 2008 | 1 Comment | Posted in php by dreamluverz


Suddenly 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 files using php 5.2.3
(osx)

Including or Requiring files directly works.

Including files, that also have includes in them, does not.

Say you have this…

-TopDirectory
–index.php (contains include(”includes/top.php”); )
–includes (folder)
—config.php (contains echo “crap”; )
—top.php (contains include(”config.php”); )

When you load the index.php file you would expect the word “crap” to show,
but it does not. I think the getcwd is staying specific to the top folder,
so the path stays the same throughout.

This does not happen in 5.1.6

Is there a fix for this or is it PHP causing the problem?


Mike Yrabedra B^)>

Tags: , , , , , ,

socket error #10060 on ftp

February 5th, 2008 | No Comments | Posted in server by dreamluverz


I got this socket error #10060 when connecting to ftp, tried checking the host, username & pass but still no luck. I tried unchecking the PASSIVE MODE and binggo!! It was solved! phew!! It took me heavens & earth :lol:

Tags: , , ,