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

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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