[PHP] Auto update feature from PHP app - like antivirus definitions

2004-01-27 Thread Terence
Hi, Has anyone ever tried to produce an auto-update feature for your PHP application? Say a client downloads version 1, and a month later version 1.1 is available, which makes changes to a few scripts say, add_user.php, modify_user.php and display_users.php Does anyone have a method or way in

RE: [PHP] Auto update feature from PHP app - like antivirus definitions

2004-01-27 Thread Vincent DUPONT
Maybe a PEAR package do do the trick. Have a look at PEAR_PackageFileManager on http://pear.php.net/package/PEAR_PackageFileManager I never used it, but plan to do. I you use it, please keep me informed Maybe you could have something more trivial if you just need to download a single file.

[PHP] su idn't working from within php

2004-01-27 Thread Nitin Mehta
hi all i was trying to execute some commands as an authorized user from within my php script with exec (su username -c \sudo command\ 21;, $output); but it gives me standard in must be a tty how can i make it work? it runs perfectly at command prompt I even tried to ssh, but the problem is

[PHP] String value modified on replace

2004-01-27 Thread Sheni R. Meledath
Hello: I have a string variable with the following value $httppath = http://www.mysite.org;; This variable is stored in an include file. When I use this variable in another document, where the setting file is included, the value of the above variable is getting replaced with: http:/!

[PHP] Size of session?

2004-01-27 Thread motorpsychkill
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? Thanks! -m -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php document management systems

2004-01-27 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Anyone know of any php document management systems? if its open source that would be even better. TIA http://www.google.com/search?q=php+document+management+systems should give you a few pointers -- Quod subigo farinam A: Because

Re: [PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-27 Thread Adam i Agnieszka Gasiorowski FNORD
Pablo Gosse wrote: Hi all. Quick quesiton about PCRE vs. POSIX-extended regular expressions. How much of a difference is there between these two types of regular expressions. I know I've read that PCRE is faster, but is it that much of a difference? PCRE are _way_ more advanced,

[PHP] Re: help with mysql

2004-01-27 Thread Krit Kanrat
Hi, Are you sure that you already enable mysql function on your web server ? Krit Kanrat Tom Flood [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am just beginning my learning of php and its uses with mysql. I wrote a small program to add information into a mysql

Re: [PHP] Size of session?

2004-01-27 Thread Marek Kilimajer
php memory limit if php has been compiled with --enable-memory-limit and the limit is enabled, else it is limited by the platform php runs on motorpsychkill wrote: 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

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

2004-01-27 Thread Marek Kilimajer
Why do you need su? Set up sudo for apache user. Nitin Mehta wrote: hi all i was trying to execute some commands as an authorized user from within my php script with exec (su username -c \sudo command\ 21;, $output); but it gives me standard in must be a tty how can i make it work? it runs

RE: [PHP] Re: Can we make .exe programs with php?

2004-01-27 Thread Jay Blanchard
[snip] Depending upon why you want an executable, if its to run on a client machine as an app then check out php-gtk. [/snip] There is also a thing called PriadoBlender, haven't really tried it though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Let openbasedir limited folks use system-wide includes

2004-01-27 Thread MIKE YRABEDRA
Hello, I use php admin flags to give each of my clients different permissions. All of them , by default, are limited to their directory using openbasedir parameter. I also have phpmailer set up so everyone can use it as an include or require function. The only problem is, the folks locked

[PHP] tourico holidays

2004-01-27 Thread Diana Castillo
Is there anyone out there using XML with php to connect to Tourico Holidays? If so I need your help. thanks. -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com

[PHP] Re: Verify cCPIGgLq for robleyd@ozemail.com.au

2004-01-27 Thread David Robley
On 27 Jan 2004 at 20:46, Piers Lauder wrote: Hi! Your message has been received, but it hasn't been delivered to me yet. As I don't have any record of you sending me mail from this address before, I need to verify that you're not a spammer. Please reply and alter the Subject line to

RE: [PHP] Seems Simple enough

2004-01-27 Thread Ford, Mike [LSS]
On 26 January 2004 16:56, Christopher J. Crane wrote: Ok here is the wierd thing. I pasted more code, it seems to not work because of me changing the number format. This works ... if($Balance = 10001) { $Balance = number_format($Balance,2,'.',','); echo font

Re: [PHP] Let openbasedir limited folks use system-wide includes

2004-01-27 Thread Jason Wong
On Tuesday 27 January 2004 18:59, MIKE YRABEDRA wrote: The only problem is, the folks locked into their directories cannot use it. It gives an openbase directory error every time. Does anyone know of a solution for this without compromising security? safe_mode_include_dir -- Jason Wong -

Re: [PHP] can't figure out this mysql error

2004-01-27 Thread Jason Wong
On Tuesday 27 January 2004 02:23, Chris W. Parker wrote: If I put the two functions mysql functions within the query method I created I get an error on those two lines BUT the program continues as normal WITH the data being printed to the page just as I want it to. Clearly the mysql resource

Re: [PHP] Repost - Form/Session Problem with sample code = Probably easy question - Thanks for any help!

2004-01-27 Thread Jason Wong
On Monday 26 January 2004 05:11, Paul wrote: I am trying to use a back button to allow a user to change submitted form values. The problem I am having is that when they submit the form a second time, regardless of what is entered, the variable $test does not change and keeps only the first

RE: [PHP] unexpected include parse error

2004-01-27 Thread Ford, Mike [LSS]
On 27 January 2004 05:50, Paul Furman wrote: Shawn McKenzie wrote: I've noticed in both of your posts that you aren't terminating the line before the include with a ; Yup, thanks! Then I fixed my global problem without bugging you guys too. Actually, no you didn't -- you just bypassed

RE: [PHP] unexpected include parse error

2004-01-27 Thread Ford, Mike [LSS]
On 27 January 2004 05:18, Shawn McKenzie wrote: PS I'm on my windows apache server but the forward slash seems to work in php that keeps it portable. I tried it both ways. Yes -- PHP internally translates between / and \ on Windows, precisely for portability reasons. Thus, you can

[PHP] PDF and dynamic PNG

2004-01-27 Thread Dominik Heeb
Hello, I succeed in creating PDF files dynamically with PHP (including inserting static PNG images), and also succeed in creating PNG images dynamically. However, I can't insert dynamically created PNG images into PDF files, neither with pdf_open_image_file, nor with pdf_open_png. Is this

[PHP] ILQWPNMPY

2004-01-27 Thread rasmus
The message contains Unicode characters and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Remove Dynamic String between StringA and StringB

2004-01-27 Thread Jack Bauer
Hi :), i tried your code zu replace some parts of a string, the problem is that this method only replaces when there is only 1 word between stringA and stringB. i got the problem that the part between both strings is a dynamic one and much larger then 1 word. i really tried to use the php manual

[PHP] MS SQL / PHP

2004-01-27 Thread Enda Nagle
I have a potentially stupid problem with PHP and MSSQL on a Windows server... I can connect to the database and insert data to the tables etc but cannot retrieve data... This is the code I'm using: //--- $list2 = $conn-Execute(SELECT * FROM

[PHP] order by

2004-01-27 Thread christian tischler
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] order by

2004-01-27 Thread Stuart
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 Use http://php.net/usort and use both 'columns' in the comparison function. -- Stuart -- PHP General Mailing List

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-27 Thread Martin Luethi
$pattern = /$stringA.*?$stringB/; .*? - matches everything between $stringA and $stringB the ? means: stop matching after the first occurence of $stringB (quantifier minimizer). otherwise .* would match everything between the first occurence of $stringA and the last

[PHP] Writing CRON jobs!

2004-01-27 Thread Hamid Hossain
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. Regards, Hamid _ Add photos to your e-mail with MSN 8. Get 2 months FREE*.

RE: [PHP] Writing CRON jobs!

2004-01-27 Thread Jay Blanchard
[snip] 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. [/snip] http://www.unixgeeks.org/security/newbie/unix/cron-1.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Writing CRON jobs!

2004-01-27 Thread Stuart
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 -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Googlebot

2004-01-27 Thread Hartley, Matt
Is Googlebot (or any other bot) able to follow links that are php? e.g. a href=Contact.phpContact Us/a a href=Product.phpimg src=Images/product.jpg width=110 height=111 border=0/a Is there a way to invite bots to your site? Thanks Matt

RE: [PHP] order by

2004-01-27 Thread Thomas Svenson
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 You might want to look at GROUP BY command too http://www.mysql.com/doc/en/Group_by_functions_and_modifiers.html /T -- PHP

[PHP] Re: Using templates (Code User Interface)

2004-01-27 Thread Skrol29
Hi, Always I have a problem that I don't know how to make my code away from the user interface files. I tried to use some template classes, but I did'nt like what I tired because some if statments are used inside the template. I have to react to this. TinyButStrong is a PHP Template Engine that

Re: [PHP] Googlebot

2004-01-27 Thread Stuart
Hartley, Matt wrote: Is Googlebot (or any other bot) able to follow links that are php? e.g. a href=Contact.phpContact Us/a a href=Product.phpimg src=Images/product.jpg width=110 height=111 border=0/a Yes. Is there a way to invite bots to your site? For most, yes. -- Stuart -- PHP General

[PHP] Re: help with mysql

2004-01-27 Thread Tom Flood
Thank you both, here is the entire code : 1html 2head 3titleUntitled Document/title 4meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 5/head 6 7body 8?php 9 $name = $_GET[name]; 10 $address = $_GET[address]; 11$city = $_GET[city]; 12print Name is $namebr\n; 13print Address is

Re: [PHP] Re: help with mysql

2004-01-27 Thread Martin Luethi
line 16: mysql_connect(tflood, thomas91); I think you mean: mysql_connect(localhost, tflood, thomas91); otherwise mysql_connect takes tflood as Server and thomas91 as Username (if so, its better to replace passwords with * before posting) - http://ch.php.net/mysql_connect after connecting you

Re: [PHP] order by

2004-01-27 Thread Marek Kilimajer
... ORDER BY points [DESC|ASC], score [DESC|ASC] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] MS SQL / PHP

2004-01-27 Thread Marek Kilimajer
try print_r($Msku) and see what comes out Enda Nagle wrote: I have a potentially stupid problem with PHP and MSSQL on a Windows server... I can connect to the database and insert data to the tables etc but cannot retrieve data... This is the code I'm using:

RE: [PHP] MS SQL / PHP

2004-01-27 Thread Enda Nagle
Hi Marek, Thanks for your reply. Tried that and got the following output: COM Object ( [0] = Resource id #3 ) COM Object ( [0] = Resource id #9 ) COM Object ( [0] = Resource id #15 ) COM Object ( [0] = Resource id #21 ) There are 4 records in the table at the moment, and its performing the loop

[PHP] Tip For The Day

2004-01-27 Thread Jay Blanchard
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 ', 'KJONES HOUSE ', --- 16 characters wide, or is it?

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-27 Thread memoimyself
On 27 Jan 2004 at 13:25, Jack Bauer wrote: i tried your code zu replace some parts of a string, the problem is that this method only replaces when there is only 1 word between stringA and stringB. Of course. \w* will match alphanumeric characters, but not whitespace, and word boundaries are

[PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
I'm trying to run a query against a database with a PHP script that cycles through each record (about 4,000+) and sends and e-mail to them if they have an e-mail address present. The problem is that everytime I do this, it processes about 430 records and stops. There is no error message

Re: [PHP] MS SQL / PHP

2004-01-27 Thread Marek Kilimajer
You need to find out what $list2-Fields(sku); returns. This is not php anymore, check COM reference. Enda Nagle wrote: Hi Marek, Thanks for your reply. Tried that and got the following output: COM Object ( [0] = Resource id #3 ) COM Object ( [0] = Resource id #9 ) COM Object ( [0] = Resource

Re: [PHP] Googlebot

2004-01-27 Thread Raditha Dissanayake
If you read the pages on google you will know the answer. Hartley, Matt wrote: Is Googlebot (or any other bot) able to follow links that are php? e.g. a href=Contact.phpContact Us/a a href=Product.phpimg src=Images/product.jpg width=110 height=111 border=0/a Is there a way to invite bots to

Re: [PHP] Script timeout?

2004-01-27 Thread memoimyself
Hello Ben, On 27 Jan 2004 at 9:27, Ben Ramsey wrote: I'm trying to run a query against a database with a PHP script that cycles through each record (about 4,000+) and sends and e-mail to them if they have an e-mail address present. The problem is that everytime I do this, it processes

Re: [PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
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 it is turned on. [EMAIL PROTECTED] wrote: Hello Ben, On 27 Jan 2004 at 9:27, Ben

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

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 links

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

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 sudo for

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 it

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

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(emailadd);

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

[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[] =

[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,

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

[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] 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 command. 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

[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

[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

[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

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 on how you

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] How to echo something if not exist?

2004-01-27 Thread Miguel J. Jimnez
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?

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

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

[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

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

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

[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

[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

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

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: $i =

[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)

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

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:

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 ask this

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:

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, If i understand you

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

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

[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

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] Sent:

[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

[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

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 ',

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;

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

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
--- 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] 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 your file

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

[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. :) -

Re: [PHP] Tip For The Day

2004-01-27 Thread John Nichel
Chris Shiflett wrote: snip 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

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

[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 SELECT ? include(includes/db.php); MYSQL_CONNECT(HOST,USER,PASS) OR DIE(Unable to connect

  1   2   >