Re: [PHP] mac os x - not getting headers already sent error

2005-03-07 Thread Jonathan Haddad
The problem is more of my own output sticking around (echo $query) and the test server still going to the next page, despite the echoed text. I'm not sure how to use output buffering to fix this.. Jon On Mar 7, 2005, at 2:01 AM, Burhan Khalid wrote: Jonathan Haddad wrote: I do all my develo

[PHP] mac os x - not getting headers already sent error

2005-03-06 Thread Jonathan Haddad
I do all my development on mac os x. sometimes, to debut a script, i output the query to the page. quite often the page sends headers to go to another page. When i do this, i comment out the header() function and read the results. When i'm done i remove the comment Sometimes I've forgotten

[PHP] PHP on Windows

2004-10-20 Thread Jonathan Haddad
So I'm setting up a website that needs to run on a windows server. There are file uploads. What do I need to do to make the directory writable? I'm sure it's very obvious but when the time comes to do it it has to happen immediately. Thanks, Jon -- PHP General Mailing List (http://www.php.ne

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Jonathan Haddad
Mike wrote: the resizing part goes well; I don't really know what the imageinterlace function does, but I used it in desperation. Why: the output image's quality is visibly inferior to the source's. And I want the image to look good. The source is a jpeg (dinamic). As you probably have noticed,

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Jonathan Haddad
Stefan Holmes wrote: -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: 18 September 2004 03:22 To: Michael Mao Cc: [EMAIL PROTECTED] Subject: Re: [PHP] thumbnail of webpage Michael Mao wrote: Is there a way to capture a snapshot of a html page and save it as

Re: [PHP] trying to do too much with functions?

2004-09-02 Thread Jonathan Haddad
John Holmes elegantly wrote: From: "Justin French" <[EMAIL PROTECTED]> I have a few functions with way too many parameters in them, or functions which have a non-obvious order of parameters which I constantly have to refer to as I'm working. Since I'm using PHP as my templating language (none s

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-23 Thread Jonathan Haddad
the chmod 666 sets the exisiting files to be edited by the server. anything that's uploaded by the server is owned by it, and thusly can be edited. as a side note, you'd have to chmod 777 the directory to be edited if you want uploads to work. PHP Junkie wrote: Ave, Well here's my situation..

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Jonathan Haddad
In Safari it'll download the file and then open it. Jon PHP Junkie wrote: Ave, IT WORKS!! There wasn't one bit of a problem.. I'll just paste the code here again for anyone who might be looking for it. I guess I was very close to it but just doing one thing wrong... I wasn't specifying the Basena

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-23 Thread Jonathan Haddad
PHP probably does not have permission to change those files. chmod 777 and it should work. However now those files are writable by anyone. If you're on a shared server there could be problems later. Jon PHP Junkie wrote: Ave, I do not really know what the problem is because I don't get an err

Re: [PHP] Template Question

2004-08-13 Thread Jonathan Haddad
eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML. I've designed it this way because I work with guys that are dreamweaver crazy and want to do all their layout there. Maybe I should parse the file, and eval() the PHP and ech

Re: [PHP] Re: php tools

2004-08-10 Thread Jonathan Haddad
BBEdit is the tool of the Gods. Jon Lester Caine wrote: Matthew Weier O'Phinney wrote: So, you basically need a text editor with good syntax highlighting for X/HTML, PHP, CSS, SQL, and javascript. As I said, I have that in Vim. I also know EditPlus has that and is either shareware or freeware. If y

Re: [PHP] SQL Join query

2004-08-09 Thread Jonathan Haddad
The only problem there is when you group the LEFT JOIN pictures that have a count of 0 return a count of 1. Unfortunately there's no single query that I figured out when I did this same project that would give accurate results. John Holmes wrote: Mattias Jönsson wrote: SELECT pics.*, pic_comme

Re: [PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-09 Thread Jonathan Haddad
And if you want to be really extreme, you can edit httpd.conf to use virtual hosting and recognize each of the sites you have as individual web servers. Then, edit your hosts file to match the domains.. say I am working on my own web site, oldirtyhaddad.com (shameless plug). I have set up my

Re: [PHP] Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Jonathan Haddad
Remember you can always use curly braces.. "SELECT * from MembersData WHERE UserID = '{$_SESSION['logname']}'" works just fine Jonathan Haddad Afan Pasalic wrote: I think he has to keep the single quotes and add double quotes with dots: $MembersDataQry = "SEL

Re: [PHP] Trouble with sin()

2004-07-22 Thread Jonathan Haddad
as in 20 degrees? float *sin* ( float arg) *sin()* returns the sine of the arg parameter. The arg parameter is in radians. RADIANS. |sin(deg2rad(20)); | Jon Marcus Strube wrote: Hi, i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin(). In PHPs opinion sin(20) is 0

Re: [PHP] Error when using HTTP Location header

2004-07-21 Thread Jonathan Haddad
I've seen it work with a relative URL, which suprised me, because until I had saw that I would have agreed with you. Jon Chris Shiflett wrote: --- Arnout Boks <[EMAIL PROTECTED]> wrote: header('Location: ' . urlencode('loginForm.php?error=Incorrect password')); The Location header require

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread Jonathan Haddad
You don't have to declare an array size in PHP.First you can do this: $arr = array(); then $arr[1] = 50; $arr[2] = true; $arr[3] = "some value"; or you can loop through foreach( $i = 0; $i < 50 ; $i++ ) $arr[$i] = false; I believe you can assign the checkbox names in HTML as grid[] and in p

Re: [PHP] textarea/display question...

2004-07-20 Thread Jonathan Haddad
Anything inside that textarea actually get's displayed. So they will actually see that HTML. I don't know of a way to actually highlight sections within the text area, and I don't think there is one. You could highlight the text outside of the textarea though. Jon bruce wrote: hi.. i'm presen

Re: [PHP] PHP error catching....

2004-07-20 Thread Jonathan Haddad
error_reporting( E_NONE )? Jon Scott Fletcher wrote: Close, but still not quite it. I can't remember what I did 6 to 8 months ago. I do remember that it was written to temporary suppress the php error while the other part of the php script can be allow to execute before unsupressing the php error