respecttheplayer Posted November 4, 2008 Share Posted November 4, 2008 http://www.thegreatestsave.org/area/dma_retrieve.php?state=DC&city=Washington+DC-Hagerstown This is the error im receiving. I am really baffeled because I simply just made a text change on my mac and then uploaded thru a mac ftp and i started getting the error. Fatal error: Call to undefined function: phpob_start() in /home/thegr29/public_html/area/dma_retrieve.php on line 1 I have been noticing when using my mac for php programming my uploads tend to work funny sometimes. I had the same exact back up file and i uploaded it and it still does not work. Is there something special i should do when using dreamweaver and uploading on a mac. By the way here is the code for the first few lines to give you an idea of what it is referencing. <?php ob_start(); $state = $_GET['state']; $city = $_GET['city']; $station = $_GET['station']; JFYI the original script was done on dreamweaver with in Windows and just recently edited it on a mac...so wierd.... Quote Link to comment Share on other sites More sharing options...
respecttheplayer Posted November 4, 2008 Author Share Posted November 4, 2008 Got it to work....ok so it must be my ftp client, i am using a version of filezilla. I ended up manually uploading it through the control panel for my domain and it works just fine. THis leads me to my next question....what might be causing this to happen???? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted November 4, 2008 Share Posted November 4, 2008 The web server isn't reading the newlines from your text editor properly because you have a Linux server? Quote Link to comment Share on other sites More sharing options...
respecttheplayer Posted November 4, 2008 Author Share Posted November 4, 2008 Thank You, I will look into this and possibly use a more stable FTP environment. I will not waste anyones valuable time that could be helping a PHP related question now that I know that it is not my code. Thank you again! Quote Link to comment Share on other sites More sharing options...
DarkWater Posted November 4, 2008 Share Posted November 4, 2008 Wait, do you have a Linux server? The standard line ending on *nix machines is \n. Since Windows and Mac love being different, they use \r\n and \r, respectively. Check your IDE or editor for some sort of line endings setting. EDIT: Transferring your files in ASCII mode in your FTP can also fix this most likely. You were probably transferring in binary mode. Check all of your settings. Quote Link to comment Share on other sites More sharing options...
respecttheplayer Posted November 4, 2008 Author Share Posted November 4, 2008 Under Default Transfer Type (on the FTP Program called FILEZILLA for Mac OSX 10.4.11 which is non Leopard) the type is set to auto. I will have to check my logs but it seems you are most likely right that it is indeed choosing binary and not ascii. I will click on ascii and upload to see if this indeed is the issue, very helpful, i would not have thought of this. Yes it is a linux server! Thanks!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.