Jump to content

[SOLVED] Call to undefined Function - Mac and Windows


respecttheplayer

Recommended Posts

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....

 

 

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????

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!

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.

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!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.