[PHP] [Newbie Guide] For the benefit of new members

2004-01-27 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first

Re: [PHP] PHP EDITORS

2004-01-27 Thread Renan G. Galang
If you are already using eclipse, you could try the a PHP plugin, which can be downloaded free from www.xored.com It's got the basics: outlining, highlighting and error detection and some more. I guess the only thing this has over the other full featured editors out there is that you don't have to

Re: [PHP] PHP EDITORS

2004-01-27 Thread - Edwin -
Hello, On Wed, 28 Jan 2004 00:10:11 -0600 "John Jensen" <[EMAIL PROTECTED]> wrote: > Hello everyone. I am new to PhP and MySQL. I was wondering what > a good (Or Free) Php Editor is? Maybe you missed this: http://marc.theaimsgroup.com/?l=php-general&m=107396769431732&w=2 or http://www.phparc

Re: [PHP] PHP EDITORS

2004-01-27 Thread John Nichel
John Jensen wrote: Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or Free) Php Editor is? Google. http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=php+editors&btnG=Google+Search Archives. http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=php+editors&q=b N

[PHP] PHP EDITORS

2004-01-27 Thread John Jensen
Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or Free) Php Editor is? -- ** John Jensen KB9KQN Woodstock, IL Wxwarn1 - http://www.wxwarn1.com Personal Page - http://john.wxwarn1.com Scannerbuff.net - http://www.sc

RE: [PHP] Making Graph / Chart

2004-01-27 Thread Ralph Guzman
Take a look at jpgraph: http://www.aditus.nu/jpgraph/ -Original Message- From: unkno me [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Making Graph / Chart Hi, Does anyone know what function is needed to make graphic chart like th

Re: [PHP] Re: help with mysql

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:01:40 -0500 "Tom Flood" <[EMAIL PROTECTED]> wrote: > Martin, > > Thank you for the insight when I ran the php file you > suggested, nothing appeared to be related to mysql. I > installed both the php and mysql packages onto my Linux box > through a rpm installer. Whe

Re: [PHP] path problems

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 20:22:46 -0500 Scott Taylor <[EMAIL PROTECTED]> wrote: > I understand all of the file size ones. What I really don't > understand is why neither of the following examples work: > > /* example 1 */ > /* where $_SERVER['DOCUMENT_ROOT'] = > /usr/local/psa/home/vhosts/domain.com/

Re: [PHP] MySQL query

2004-01-27 Thread Jason Wong
On Wednesday 28 January 2004 12:05, Jason Giangrande wrote: > I have the following query. > > UPDATE link SET hits = hits+1 WHERE website_link = '$link' > > $link is the website link that was clicked on. > > The query works fine. The problem is if $link is a website that does > not exist in the da

Re: [PHP] MySQL query

2004-01-27 Thread John W. Holmes
Jason Giangrande wrote: UPDATE link SET hits = hits+1 WHERE website_link = '$link' $link is the website link that was clicked on. The query works fine. The problem is if $link is a website that does not exist in the database mysql_query(); still returns true even though nothing was updated. Wh

Re: [PHP] null value and isset

2004-01-27 Thread - Edwin -
Hi, On Wed, 28 Jan 2004 11:17:52 +1100 (EST) <[EMAIL PROTECTED]> wrote: > Hi there regarding out discussions before about using isset, i > set function params which are false intitalially as null ie > function foo ($bar = null) , anyway $bar remains true both ways > if i do isset($bar), i didnt n

Re: [PHP] CGI ERROR

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:41:39 -0800 "Dale Hersh" <[EMAIL PROTECTED]> wrote: > CGI Error > The specified CGI application misbehaved by not returning a > complete set of HTTP headers. > > I am getting this error and I can't figure out what is causing > the problem. If I hit refresh on the broswer, t

Re: [PHP] strtotime Question

2004-01-27 Thread - Edwin -
Hi, On Tue, 27 Jan 2004 23:05:09 -0500 gohaku <[EMAIL PROTECTED]> wrote: > Hi everyone, > I made the mistake of using strtotime("day") instead of > strtotime("today") > to get the current time. > I was just curious, what is strtotime("day") represent? > > Below is what I used to test the "day"

Re: [PHP] naming a directory after a user-submitted string

2004-01-27 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells all recipients which posting(s) your posting refers

[PHP] MySQL query

2004-01-27 Thread Jason Giangrande
I have the following query. UPDATE link SET hits = hits+1 WHERE website_link = '$link' $link is the website link that was clicked on. The query works fine. The problem is if $link is a website that does not exist in the database mysql_query(); still returns true even though nothing was updated.

[PHP] strtotime Question

2004-01-27 Thread gohaku
Hi everyone, I made the mistake of using strtotime("day") instead of strtotime("today") to get the current time. I was just curious, what is strtotime("day") represent? Below is what I used to test the "day" and "today" parameters: Testing One Minute Difference Thanks in advance. -Gohaku

[PHP] naming a directory after a user-submitted string

2004-01-27 Thread Joey Manley
Thanks for the thoughts on .sit files. I still don't quite know what I'll do (maybe I'll just force'em to make .zips -- it's not like it's IMPOSSIBLE for a Mac to make .zips). Here's another question, possibly easier. Possibly even bone-headed. What kind of checking/filtering/changing do I need

Re: [PHP] error_reporting(0)..

2004-01-27 Thread E. Stuart Hicks
Parse errors are scanned for and displayed before the PHP parser even starts trying to execute the code itself. I doubt you can usefully intercept them because anything you may have written into the file to handle them will never be run. - Original Message - From: "Robert Restad" <[EMAIL

RE: [PHP] Making Graph / Chart

2004-01-27 Thread Williams, Olwen - SAL
You could also look at http://sourceforge.net/projects/phplot/ I'm playing with that at the moment and it's doing quite a nice job. Olwen Williams [EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 3:30 PM To: unkno me C

Re: [PHP] Making Graph / Chart

2004-01-27 Thread John W. Holmes
unkno me wrote: Does anyone know what function is needed to make graphic chart like those line / pipe char? Any example? The easy, simple way is to just have PHP control the width of an image and stretch it. So if you had a 1x1 blue pixel image, you could stretch it 100 pixels for 100% and 50 pi

[PHP] error_reporting(0)..

2004-01-27 Thread Robert Restad
I am attempting to write my own little error-logging function... however, for some reason, whatever I do I can not seem to override the error display setting on the server. Starting at the most simple thing, you should think that when you write . . should pretty much stop every error message

[PHP] error_reporting(0)..

2004-01-27 Thread Robert Restad
I am attempting to write my own little error-logging function... however, for some reason, whatever I do I can not seem to override the error display setting on the server. Starting at the most simple thing, you should think that when you write . . should pretty much stop every error message

[PHP] CGI ERROR

2004-01-27 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale -- PHP General Mailing List (http:

[PHP] PHP 1.0?

2004-01-27 Thread DvDmanDT
Hello everyone! Does anyone have a copy of PHP 1.0? Today I managed to get PHP 2 working, and I already had 3, 4 and 5 on my system.. So I want 1.0, just to have them all.. So, anyone? Please? I really want it.. Any pointers / comments / files appriciated! -- // DvDmanDT MSN: dvdmandt¤hotmail.c

[PHP] Making Graph / Chart

2004-01-27 Thread unkno me
Hi, Does anyone know what function is needed to make graphic chart like those line / pipe char? Any example? Thanks! __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- PHP General Mailing List (http:/

Re: [PHP] path problems

2004-01-27 Thread Scott Taylor
I understand all of the file size ones. What I really don't understand is why neither of the following examples work: /* example 1 */ /* where $_SERVER['DOCUMENT_ROOT'] = /usr/local/psa/home/vhosts/domain.com/httpdocs */ $file = $_SERVER['DOCUMENT_ROOT'] . '/archive/newsletters/Dec03.pdf'; readf

Re: [PHP] Googlebot

2004-01-27 Thread Mike Migurski
Is Googlebot (or any other bot) able to follow links that are php? > >As others have already pointed out to you, what better place to find >information about google than google? That, or your server logs - googlebot is great about identifying itself. RTFM's aside, a little understanding of ho

Re: [PHP] Googlebot

2004-01-27 Thread Raditha Dissanayake
As others have already pointed out to you, what better place to find information about google than google? Frank Tudor wrote: That's not very helpful. I am also curious about this. Anyone have a more thought provoking answer? Frank --- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: If you

[PHP] null value and isset

2004-01-27 Thread daniel
Hi there regarding out discussions before about using isset, i set function params which are false intitalially as null ie function foo ($bar = null) , anyway $bar remains true both ways if i do isset($bar), i didnt notice this assuming it was ok, now the scripts are buggered, it was originally lik

Re: [PHP] Register Globals & is_upload_file

2004-01-27 Thread Marek Kilimajer
You are working with Register globals turned off, so try is_upload_file($_FILES['tmp_name']['filename']) bill wrote: I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I mis

Re: [PHP] Re: help with mysql

2004-01-27 Thread daniel
My honest advice, dont use rpm's, you need to compile php via source if you want to do anything out of the ordinary like adding extensions, yes adding mysql is out of the ordinary for a standard rpm lol. Thats just my experience anyway. so ./configure --with-mysql=/usr/local/mysql or whereever you

Re: [PHP] Re: help with mysql

2004-01-27 Thread Tom Flood
Martin, Thank you for the insight when I ran the php file you suggested, nothing appeared to be related to mysql. I installed both the php and mysql packages onto my Linux box through a rpm installer. Where can I obtain mysql support for php? Tom "Martin Luethi" <[EMAIL PROTECTED]> wrote i

[PHP] Re: PDF and dynamic PNG

2004-01-27 Thread Ammar Ibrahim
if nothing worked out, simply right the dynamic png to a temp file (e.g tempimg.png) then include this png file in your PDF document :) hope this helps, Ammar "Dominik Heeb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I succeed in creating PDF files dynamically wi

RE: [PHP] How to prevent duplicated values?

2004-01-27 Thread Ralph Guzman
>What I would do would instead be to put an >index on that column, then with a simple select >check if that username is free or not. Based on >what I get in return I can then either insert the >data or return the form to the visitor with information >about it. Much more simple in the long run

Re: [PHP] Register Globals & is_upload_file

2004-01-27 Thread John Nichel
bill wrote: I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I missing.. Help me please !! ...the "Handling file uploads" section of the manual. http://www.php.net/manual

Re: [PHP] Register Globals & is_upload_file

2004-01-27 Thread Daniel Guerrier
http://us3.php.net/features.file-upload --- bill <[EMAIL PROTECTED]> wrote: > I'm converting old code to work with Register > globals turned off in php.ini. > With it on, is_upload_file($filename) works fine but > when turned off doesn't > work at all. > > What am I missing.. Help me please !! >

[PHP] Register Globals & is_upload_file

2004-01-27 Thread bill
I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I missing.. Help me please !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] path problems

2004-01-27 Thread Stuart
Scott Taylor wrote: I have the following file: http://domain.com/archive/newsletters/Dec03.pdf Lovely. For some reason this works: filesize('archive/newsletters/Dec03.pdf'); Relative path from the current directory. Is your script in the web root? but this does not: filesize('/archive/newslette

Re: [PHP] Unsetting multiple globals?

2004-01-27 Thread Matthew Vos
2 ways to do it: Simple, no control: foreach($GLOBALS as $key => $value) unset($GLOBALS[$key]); Or $vars_to_clear = array("1","2","3","4","a","b","C1","D2"); foreach($vars_to_clear as $keyname) unset($GLOBALS[$keyname]); Matt On Tue, 2004-01-27 at 15:26, BOOT wrote: Hello. I can unset mult

[PHP] path problems

2004-01-27 Thread Scott Taylor
I have the following file: http://domain.com/archive/newsletters/Dec03.pdf For some reason this works: filesize('archive/newsletters/Dec03.pdf'); but this does not: filesize('/archive/newsletters/Dec03.pdf'); nor does this filesize('http://domain.com/archive/newsletters/Dec03.pdf'); For some r

[PHP] I need to unset BOTH $GLOBALS and $_SESSION vars?

2004-01-27 Thread BOOT
Sorry for so many questions, thanks to all those who have helped. I am finding that in order to completely unset some of my variables, I need to use both unset($GLOBALS. and unset($_SESSION) Does this make sense? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Unsetting multiple globals?

2004-01-27 Thread BOOT
Hello. I can unset multiple variables easily, however I can't see how to unset multiple globals without: unset($GLOBALS['1']); unset($GLOBALS['2']) unset($GLOBALS['3']) and so forth I have tried a few variations with no success. Thanks for any help! -- PHP General Mailing List (http://www.

Re: [PHP] drop down list not populating

2004-01-27 Thread John Nichel
John W. Holmes wrote: echo ""; If you view the HTML source of the page, do you see a bunch of empty elements? If so, then $row['community'] isn't valid. Maybe it's a case issue and you should be using $row['Community']? Can't tell because you're using "SELECT *", though... And he has an ope

Re: [PHP] Re: Regex Help

2004-01-27 Thread Ben Ramsey
Why do you need to remove the delimeters? If you remove them, then it makes it quite difficult to get the data you need. If you want to display the date and race type without the square brackets around them, then use $matches[0][1] and $matches[1][1] instead of $matches[0][0] or $matches[1][0

Re: [PHP] drop down list not populating

2004-01-27 Thread John W. Holmes
Montagna, Dan wrote: I've got the code for a drop down list and the drop down box displays--but with no info in it. The underlying table is populated so I could use some advice on what might be wrong from here include("includes/db.php"); MYSQL_CONNECT(HOST,USER,PASS) OR DIE("Unabl

Re: [PHP] drop down list not populating

2004-01-27 Thread memoimyself
Hello Dan, On 27 Jan 2004 at 14:31, Montagna, Dan wrote: > echo ""; Uh-oh, this won't work: you have an unclosed tag here. Try this: echo ''.$row['community'].''; Good luck, Erik

[PHP] drop down list not populating

2004-01-27 Thread Montagna, Dan
Hi I've got the code for a drop down list and the drop down box displays--but with no info in it. The underlying table is populated so I could use some advice on what might be wrong from here "; } ?> Any ideas? Thanks Dan

Re: [PHP] Tip For The Day

2004-01-27 Thread John Nichel
Jeremy wrote: [snip] Its all good, it's like inline braces versus dropped braces and every other coding style debate :) There's no winner. [/snip] pfft. Inline braces wins hands down ;p -J It's on now. Somebody set up the ring for the cage match. Last brace standing at the end wins. ;) -- B

Re: [PHP] Tip For The Day

2004-01-27 Thread John Nichel
Chris Shiflett wrote: And your file sizes increase by 25%, and you enforce your tab preference on every other developer (rather than letting them choose their own), and you'd better hope that everyone's editor can perform operations on vertical selections of text, otherwise changes in identation b

[PHP] Re: odbc functions - not binary safe?

2004-01-27 Thread Anthony
If you're connecting to the mySQL database through ODBC (why not just connect directly to mySQL server?) ... then you probably have to escape with a single quote. For most ODBC drivers you escape ' with '' (two single quotes) . took me a while to figure that one out, but works for me. :) - An

RE: [PHP] Tip For The Day

2004-01-27 Thread Jeremy
[snip] >Its all good, it's like inline braces versus dropped braces and every >other coding style debate :) There's no winner. [/snip] pfft. Inline braces wins hands down ;p -J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tip For The Day

2004-01-27 Thread Robert Cummings
On Tue, 2004-01-27 at 13:49, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > Event better... turn your editor's tab character to 4 spaces, then > > your code never contains those despicable tab characters and you won't > > accidentally insert tabs into strings :) > > And

Re: [PHP] Tip For The Day

2004-01-27 Thread Chris Shiflett
--- Alex Pilson <[EMAIL PROTECTED]> wrote: > Couldn't you trim the items before placing into an array? That would not have helped him, because trim() doesn't remove any whitespace in between characters. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004

Re: [PHP] Unix-Apache: running apache as different user

2004-01-27 Thread Mike Migurski
>I have PHP installed on Apache and Unix with several vhosts so each vhost >has its own user account on Unix. Now when accessing a webpage, Apache >runs with user httpd.. but I want it to run as the user of the vhost >account.. How can I do that? http://httpd.apache.org/docs/suexec.html -

Re: [PHP] Tip For The Day

2004-01-27 Thread Chris Shiflett
--- Robert Cummings <[EMAIL PROTECTED]> wrote: > Event better... turn your editor's tab character to 4 spaces, then > your code never contains those despicable tab characters and you won't > accidentally insert tabs into strings :) And your file sizes increase by 25%, and you enforce your tab pref

Re: [PHP] Tip For The Day

2004-01-27 Thread Alex Pilson
At 1:40 PM -0500 1/27/04, Robert Cummings wrote: On Tue, 2004-01-27 at 09:19, Jay Blanchard wrote: When constructing arrays where you are meddling with fixed width substrings in a larger file make sure that the array item does not contain a tab or you will certainly get unexpected results; $arr

Re: [PHP] Tip For The Day

2004-01-27 Thread Robert Cummings
On Tue, 2004-01-27 at 09:19, Jay Blanchard wrote: > When constructing arrays where you are meddling with fixed width > substrings in a larger file make sure that the array item does not > contain a tab or you will certainly get unexpected results; > > $arrBadInfo ( > 'AMARILLOHOUSE ', >

[PHP] No headers from CGI scripts?

2004-01-27 Thread Len Borowski
I'm in the process of moving some scripts from a RH linux 7.x box(using apache 1.3 and php4) to Debian stable. I've installed apache 2 and php4 from source since Debian stable does not support apache 2 but I'm having trouble with some of the scripts that were being executed as CGI on the old RH 7.

[PHP] How to make the value updated always?

2004-01-27 Thread Radwan Aladdin
Hello.. How to make the PHP file (Login page) to update a value every 5 seconds for example from the database.. So if the connection is alive it will update the value. But if the connection diconnected with the database then it will stop doing that.. then in the comming login it will do the sa

Re: [PHP] Re: Regex Help

2004-01-27 Thread karthikeyan.balasubramanian
Hi Ben, Your code works but If i remove the delimter [] which I gave so that you could capture the data which needs to be picked it doesnt work?. Any help? Karthikeyan B - Original Message - From: "Ben Ramsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Karthikeyan" <[EMAIL PROTECTED

[PHP] Re: COM objects

2004-01-27 Thread pete M
I personally abandoned using any com object a few months ago as maintaining and identifying similar problems took mmore time that writing effective code to make the system steady... C C wrote: Hi, I am running PHP 4.3.4 on Windows 2000 server with Apache 2.0.48. I am using COM objects in some o

Re: [PHP] handling .zip and .sit files

2004-01-27 Thread David O'Brien
At 12:39 PM 1/27/2004, John Nichel wrote: Joey Manley wrote: I'm working on an application which allows cartoonists to upload and schedule comic strips at webcomicsnation.com. this for me? Zip files are a breeze if php is compiled with "--with-zip". However, I don't know of any way to handle .si

Re: [PHP] handling .zip and .sit files

2004-01-27 Thread John Nichel
Joey Manley wrote: I'm working on an application which allows cartoonists to upload and schedule comic strips at webcomicsnation.com. At present, the way it works is that the cartoonist uploads a strip on one page of a "wizard" style form, then enters metadata about the strip (date it should go li

Re: [PHP] Server / filename manipulation

2004-01-27 Thread Shaun
One question, Do you know if this is possible with IIS? Thanks for your help "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Perfect, complicated but perfect! > > Thanks > > "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > hi, > > > >

Re: [PHP] order by

2004-01-27 Thread Brian V Bonini
On Tue, 2004-01-27 at 07:34, christian tischler wrote: > Is there a way wuth php to create a list ordered by more than one column > like in excel or access. > > something like "ORDER BY points AND score" ... ORDER BY column1, column2, etc...; -- BrianGnuPG -> KeyID: 0x04A4F0DC | URL: ww

Re: [PHP] Size of session?

2004-01-27 Thread John W. Holmes
From: "motorpsychkill" <[EMAIL PROTECTED]> > I'm not sure if this has been covered (I searched the archives) but does > anyone know if there is a size limit on what a session can store? What is > this dependant on? I think you already got your answer. I'd just like to say that if you have to as

Re: [PHP] Writing CRON jobs!

2004-01-27 Thread Brian V Bonini
On Tue, 2004-01-27 at 08:08, Hamid Hossain wrote: > Is there any good reference on how to use CRON (I mean on the net)? > The best source is the man page crontab(5) -- BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: p

Re: [PHP] sending mail with attachment problems

2004-01-27 Thread memoimyself
Hello Tony, On 27 Jan 2004 at 16:47, tony wrote: > Hi, > > i'm trying to send emails with attachment but i get an error (...) I haven't even had a look at your code, but sending e-mails with attachments can be quite tricky, so I suggest that instead of trying to re-invent the wheel you use Ri

[PHP] COM objects

2004-01-27 Thread C C
Hi, I am running PHP 4.3.4 on Windows 2000 server with Apache 2.0.48. I am using COM objects in some of the pages. My question is, how do I release them when I'm done? Right now, I'm unsetting them, but after a few days I get COM+ Errors in the Event Viewer: The COM+ Services DLL (comsvcs.dll) wa

Re: [PHP] Random questions from database

2004-01-27 Thread memoimyself
Hello Alex, On 27 Jan 2004 at 9:25, Alex Hogan wrote: > while($row = mssql_fetch_array($result)) > > { > > $id[] = $row['id']; > > $ques[] = $row['question']; > > } To keep question and id together even after shuffling the array, why don't you build an array of arrays like this

Re: [PHP] Unix-Apache: running apache as different user

2004-01-27 Thread BAO RuiXian
Eli Hen wrote: Hello All, I have PHP installed on Apache and Unix with several vhosts so each vhost has its own user account on Unix. Now when accessing a webpage, Apache runs with user httpd.. but I want it to run as the user of the vhost account.. How can I do that? What version of Apache

[PHP] sending mail with attachment problems

2004-01-27 Thread tony
Hi, i'm trying to send emails with attachment but i get an error at $file = fread($fp, $att_size); and i don't understand why, any help is appreciated. code is below $subject = $_REQUEST['subject']; $cc = $_REQUEST['cc']; $from= $_REQUEST['from']; $message = $_REQUEST['text']; $att

[PHP] PEAR / PHP / IIS Inetinfo consuming more and more memory

2004-01-27 Thread Vincent DUPONT
Hi all, I'm developing a web appl. with PHP and PEAR, using mainly PEAR::MDB, PEAR::Config, and Smarty template engine. Under Win2000, the system seems to go slower and slower from the morning to the evening. A quick "Task Manager", and ... My inetinfo.exe process consumes most of my RAM . I

Re: [PHP] Design Languages for site design

2004-01-27 Thread Brent Baisley
UML is a universal "language" that can be used for PHP, a factory, Java, Legos, etc. I had entertained reading up on and learning UML last year, but was convinced, by friends, it wasn't worth it unless you would be using it all the time (meaning working at a large company). I think they are act

Re: [PHP] newbie issues with control structures & HTML form

2004-01-27 Thread Stuart
Jonno Agnew wrote: I wondered if I can ask you two follow-up questions? On-list, yes. Off-list, yes, at consultancy rates. (1) On Useractive's PHP environment, if ($guessnumb) { seems to work fine, but on my PHP 4.3.4 environment it doesn't. Is there some setting I need to tweak, and if so could

[PHP] Unix-Apache: running apache as different user

2004-01-27 Thread Eli Hen
Hello All, I have PHP installed on Apache and Unix with several vhosts so each vhost has its own user account on Unix. Now when accessing a webpage, Apache runs with user httpd.. but I want it to run as the user of the vhost account.. How can I do that? thanks in advnce, -Lorderon -- PHP Genera

Re: [PHP] Using unset with $_SESSION

2004-01-27 Thread trlists
On 27 Jan 2004 Stuart wrote: > In that case, try this... > > foreach (array_keys($_SESSION) as $key) > unset($_SESSION[$key]); Yes, I had tried that but forgot to mention it. It does work. However, I'm still mystified as to why unset($_SESSION) not only doesn't remove old data from the s

Re: [PHP] Re: Stupid newbie question = Why don't I need a ; after this line?

2004-01-27 Thread -{ Rene Brehmer }-
I always use them ... but it's mainly 'cause if I ever need to expand the code, I won't have to remember to add them ... it's for the same reason I always use the braces '{ ... }' even though the short form would work just as well in many cases ... I tend to expand my code alot with time (as I ma

Re: [PHP] Using unset with $_SESSION

2004-01-27 Thread Stuart
[EMAIL PROTECTED] wrote: On 27 Jan 2004 Stuart wrote: I am trying to find a reliable method to clean out all session variables and start clean. http://php.net/session_destroy That destroys the file but (at least the docs say) does not clean out the global variables, and does not seem to work in

Re: [PHP] Using unset with $_SESSION

2004-01-27 Thread trlists
On 27 Jan 2004 Stuart wrote: > > I am trying to find a reliable method to clean out all session > > variables and start clean. > > http://php.net/session_destroy That destroys the file but (at least the docs say) does not clean out the global variables, and does not seem to work in my example.

Re: [PHP] How to echo something if not exist?

2004-01-27 Thread "Miguel J. Jiménez"
Radwan Aladdin wrote: Hi all.. I want to echo something if the GET value was not exist in the database.. So for example : The user enters his email address and if this email was not found in the field of the email addresses in the table.. then echo "Invalid Email Address" So how to do it? Regar

Re: [PHP] Using unset with $_SESSION

2004-01-27 Thread Stuart
[EMAIL PROTECTED] wrote: I am trying to find a reliable method to clean out all session variables and start clean. http://php.net/session_destroy -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing CRON jobs!

2004-01-27 Thread Ray
On Tuesday 27 January 2004 07:13, Stuart wrote: > Hamid Hossain wrote: > > Is there any good reference on how to use CRON (I mean on the > > net)? > > > > I need to fire some PHP pages at scheduled time daily or weekly, > > ... so on. > > http://www.google.com/search?q=cron+tutorial+php depending

[PHP] Re: Stupid newbie question = Why don't I need a ; after this line?

2004-01-27 Thread Paul
Thanks guys. Duhhh. I was taught to always put ;'s and any dev software that writes it's own code does the same. I also remember adding them because I was getting error's at some point, perhaps PHP3. Is it considered better practice to use them? Otherwise I've been wasting keystrokes. I only notic

[PHP] Using unset with $_SESSION

2004-01-27 Thread trlists
I am trying to find a reliable method to clean out all session variables and start clean. Running PHP 4.3.1 on Win2K developing a web app to run on Linux. Session cookies are enabled, register globals is off. I access all session variables with $_SESSION. What I have found is that if I use u

[PHP] Design Languages for site design

2004-01-27 Thread Daniel Brown
Not sure if this is off topic or not, apologises in advance if it is. Does anyone here use any software design languages (is that the right term?) like UML when they are designing Php driven web sites? As I am looking to start a new site/project and I want to design it properly instead of making

Re: [PHP] su idn't working from within php

2004-01-27 Thread Jas
Marek Kilimajer wrote: You need to edit /etc/sudoers file and allow apache to execute . And you also need to be carefull what you are doing or you will create a security hole. Nitin Mehta wrote: but how would i store keys for apache? - Original Message - From: "Marek Kilimajer" <[EMAI

[PHP] How to echo something if not exist?

2004-01-27 Thread Radwan Aladdin
Hi all.. I want to echo something if the GET value was not exist in the database.. So for example : The user enters his email address and if this email was not found in the field of the email addresses in the table.. then echo "Invalid Email Address" So how to do it? Regards..

RE: [PHP] Script timeout?

2004-01-27 Thread jon roig
Two ways we deal with long running scripts like this are: 1) Run it from the command line. Usually, PHP drives web pages... But it can be used as a scripting language just like perl. Beginning the script with set_time_limit(0) kills the timeout. Also, running from the command line gets around all t

[PHP] handling .zip and .sit files

2004-01-27 Thread Joey Manley
I'm working on an application which allows cartoonists to upload and schedule comic strips at webcomicsnation.com. At present, the way it works is that the cartoonist uploads a strip on one page of a "wizard" style form, then enters metadata about the strip (date it should go live, description, ti

[PHP] Random questions from database

2004-01-27 Thread Alex Hogan
Hi All, I want to have a series of questions that are randomized for a particular lesson. This part is easy. I have taken the results from the db and put it in an array and then used shuffle() to randomize the questions. while($row = mssql_fetch_array($result)) { $id[] =

Re: [PHP] su idn't working from within php

2004-01-27 Thread Marek Kilimajer
You need to edit /etc/sudoers file and allow apache to execute . And you also need to be carefull what you are doing or you will create a security hole. Nitin Mehta wrote: but how would i store keys for apache? - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Nitin

RE: [PHP] MS SQL / PHP

2004-01-27 Thread Enda Nagle
Got it! The rs objects need to be written as follows: to give the following code: $list2 = $conn->Execute("SELECT * FROM elive.registration") or DIE($conn->ErrorMsg()); while (!$list2->EOF){ $Msku = $list2->Fields("sku"); $Mname = $list2->Fields("name"); $Memailaddress = $list2->Fields("

Re: [PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
I'm running PHP 5.0 beta 3, and I have seen script timeout errors before. It's just odd that I wasn't receiving them this time. Increasing the timeout helped, but didn't fully correct the problem. I just kept changing the SQL statement to "WHERE user_key >= [id number where it left off]" so t

Re: [PHP] Googlebot

2004-01-27 Thread Stuart
Frank Tudor wrote: Anyone have a more thought provoking answer? Do some minimal research (Google is good for this) and you would find the answers yourself. Hartley, Matt wrote: Is Googlebot (or any other bot) able to follow links that are php? Yes. Most spiders will crawl over most types of URL.

Re: [PHP] Script timeout?

2004-01-27 Thread Marek Kilimajer
You should. I know I did in older version of php, now I don't. Ben Ramsey wrote: Ah... I was trying to lookup the word "timeout," which was giving me nothing. Thanks! Also, shouldn't I be receiving an error message if the script is, in fact, timing out? I have checked "display_errors" and i

Re: [PHP] su idn't working from within php

2004-01-27 Thread Nitin Mehta
but how would i store keys for apache? - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Nitin Mehta" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 27, 2004 4:03 PM Subject: Re: [PHP] su idn't working from within php > Why do you need su? Set up

Re: [PHP] Googlebot

2004-01-27 Thread Ben Ramsey
Perhaps this link will help: http://www.google.com/webmasters/ Frank Tudor wrote: That's not very helpful. I am also curious about this. Anyone have a more thought provoking answer? Frank --- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: If you read the pages on google you will know the answ

Re: [PHP] Googlebot

2004-01-27 Thread Frank Tudor
That's not very helpful. I am also curious about this. Anyone have a more thought provoking answer? Frank --- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > If you read the pages on google you will know the answer. > > Hartley, Matt wrote: > > >Is Googlebot (or any other bot) able to follow

Re: [PHP] Script timeout?

2004-01-27 Thread Marek Kilimajer
set_time_limit() This function has no effect in safe mode, you will need another workaround, for example send fisrt 400 emails and redirect the browser to send next 400 emails and so on untill you are done. Ben Ramsey wrote: I'm trying to run a query against a database with a PHP script that

  1   2   >