[PHP-CVS] cvs: php4 /pear/Experimental README /pear/Experimental/HTML Menu.php

2001-03-09 Thread Ulf Wendel
uw Fri Mar 9 00:54:01 2001 EDT Added files: /php4/pear/Experimental README /php4/pear/Experimental/HTMLMenu.php Log: Added a directory Experimental/ as no one said "no" on the PEAR list... - added a PHPlib menu2.inc rewrite -

[PHP] RE: sending SMS messages via PHP

2001-03-09 Thread Greig, Euan
We send SMS messages from Oracle, but the method could be used in php I think. We use www.quios.com. They accept SMS messages as XML documents which you simply post to their site using http. The response, also by http, is an xml document. It is very easy to build your outgoing xml document, and

RE: [PHP] sending SMS messages via PHP

2001-03-09 Thread Simon Ould
Have you tried www.deltica.com ? I haven't used them myself but am planning to in the near future - as soon as I get the site finished. You buy messages in blocks: 100 msgs 8.00 1,000 msgs 70.00 10,000 msgs 500.00 They also have a trial service where you get 4 free messages. You don't appear

[PHP] unsuscribe me

2001-03-09 Thread Emmerson Rafael Miranda Ramirez
this is the 5th request "UNSUSCRIBE ME"

[PHP] Calling DB2 Stored Procedures

2001-03-09 Thread Jens Kisters
Are there any problems calling DB2's stored procedures from PHP once the connection to is set up? -- Gre aus dem schnen Kleve Jens Kisters rosomm et partner Agentur fr neue Medien GmbH Dienstleistungszentrum am Weien Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau Telefon: 02821

[PHP] pipes and PHP (CGI/shell)

2001-03-09 Thread Cymen Vig
How can I get PHP to talk to pipes? I know fopen can use php://stdin but can it also use named pipes (I think I want named pipes, not positive though)? Perl: $voice_rfd = new IO::Handle; $voice_rfd-fdopen( $ENV{VOICE_INPUT}, "r" ); PHP: $in = "php://" . getenv( "VOICE_INPUT" ); $fd_in =

[PHP] twig

2001-03-09 Thread Kevin Cawthorne
Hi, Ive just got twig(IMAP mail program) installed, and after a few PHP4 malarkies, got it working - except that the mail screen is blank apart from the menu! I know people might say that this is because I haven't installed IMAP support for PHP4, but I have done this and mod_imap appears under

RE: [PHP] unsuscribe me

2001-03-09 Thread Dominick Vansevenant
I think this is the best proof you don't have to be a genius to program PHP :-) Dominick -Original Message- From: Emmerson Rafael Miranda Ramirez [mailto:[EMAIL PROTECTED]] Sent: vrijdag 9 maart 2001 12:01 To: [EMAIL PROTECTED] Subject: [PHP] unsuscribe me Importance: High this is the

RE: [PHP] unsuscribe me

2001-03-09 Thread Christian Jørgensen
-Original Message- From: Emmerson Rafael Miranda Ramirez [mailto:[EMAIL PROTECTED]] Sent: 9. marts 2001 12:01 To: [EMAIL PROTECTED] Subject: [PHP] unsuscribe me Importance: High this is the 5th request "UNSUSCRIBE ME" To unsubscribe, e-mail: [EMAIL PROTECTED] Regards, Christian

Re: [PHP] Qmail problem

2001-03-09 Thread Nick Davies
Technically you shouldn't need to change anything if the sendmail symlink is in the same place as the original sendmail. It looks like you have a problem with your qmail configuration. Can you telnet to port 25 of your box and get the qmail blurf? Nick. On Thu, 8 Mar 2001, pete collins

[PHP] pipes and PHP (CGI/shell)

2001-03-09 Thread Cymen Vig
How can I get PHP to talk to pipes? I know fopen can use php://stdin but can it also use named pipes (I think I want named pipes, not positive though)? Perl: $voice_rfd = new IO::Handle; $voice_rfd-fdopen( $ENV{VOICE_INPUT}, "r" ); PHP: $in = "php://" . getenv( "VOICE_INPUT" ); $fd_in =

[PHP] How to insert a BLOB in mysql?

2001-03-09 Thread Daniele
A friend ask me how to insert image and other binary in his mysql db. He don't want to insert the link to the file, he want insert the file itself.. I looking for some tutorial but i don't find anything... I would like to know how i can do it in php and with the shell of mysql...and if this

[PHP] Memory use

2001-03-09 Thread Thierry Coopman
Hi, I use Solaris 7 with Apache 1.3.14 and PHP 4.0.3pl1. I have a rather compex script that fetches historic quote data from a database and makes calculations on that. My data structures get quite big, but the script runs wel. I noticed that the amount of memory the apache process takes goes

php-general Digest 9 Mar 2001 11:47:21 -0000 Issue 556

2001-03-09 Thread php-general-digest-help
php-general Digest 9 Mar 2001 11:47:21 - Issue 556 Topics (messages 43092 through 43130): Re: Error codes from 'mysql_error()' 43092 by: Aaron Tuller 43106 by: CC Zona Re: how to use ob_get_contents() to send a page as email 43093 by: Aaron Tuller 43094 by:

[PHP] Send Receive SMS from handphone from/to PC

2001-03-09 Thread toto
First of all, i'm sorry if my email is OOT. I want to connect my pc to handphone, say siemens c25. What kind of hardware should i have to build this application ? do i need to use GSM Modem/PC Card ? or there is/are other way to do that more easily ? BTW, i've try to install gsmlib downloaded

FW: [PHP] HTML book recommendation

2001-03-09 Thread Greig, Euan
-Original Message- From: Brian White [mailto:[EMAIL PROTECTED]] Sent: 09 March 2001 06:07 To: PHP Subject: RE: [PHP] HTML book recommendation I "learnt" SGML long before I learnt HTML, so all I've ever needed is a a good reference. So: I think the O'Reilly Koala Book is excellent

[PHP] How do I detect how many people are using a port?

2001-03-09 Thread Cybercandy Ltd
I've just installed an IRCdaemon on our server and would like to be able to show on a webpage a snapshot of how many people are logged in to the IRC server. Can anyone think of a simple way to access this information? I wondered whether there's a way, within PHP, to determine this information.

[PHP-CVS] cvs: php4 /ext/midgard article.c

2001-03-09 Thread David Guerizec
davidg Fri Mar 9 04:06:27 2001 EDT Modified files: /php4/ext/midgard article.c Log: Fixed typo. Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.12 php4/ext/midgard/article.c:1.13 --- php4/ext/midgard/article.c:1.12 Thu Mar 8

[PHP] Multiple Inserts

2001-03-09 Thread Website4S
Hi, I am trying to do some multiple inserts using the following code but it doesn`t seem to work, it inserts the first one but then the second is inserted as blank. Where the value being passed is $Emails="[EMAIL PROTECTED], [EMAIL PROTECTED]"; ? // Get Login info require("blah..."); //

[PHP-CVS] cvs: php4 /ext/midgard article.c

2001-03-09 Thread David Guerizec
davidg Fri Mar 9 04:16:58 2001 EDT Modified files: /php4/ext/midgard article.c Log: still a typo Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.13 php4/ext/midgard/article.c:1.14 --- php4/ext/midgard/article.c:1.13 Fri Mar 9

Re: [PHP] Multiple Inserts

2001-03-09 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: $SQLStatement = "INSERT INTO Members (Email) VALUES ('".$GetEmails[$a] ."')" or die ("Problem"); $db = mysql_select_db($dbase, $connection); $SQLResult = mysql_query($SQLStatement); Whoa, you're mixing apples with oranges. Try: $db =

Re: [PHP] Multiple Inserts

2001-03-09 Thread Website4S
In a message dated 09/03/2001 12:38:08 GMT Standard Time, [EMAIL PROTECTED] writes: Whoa, you're mixing apples with oranges. Try: $db = mysql_select_db($dbase, $connection); $SQLStatement = "INSERT INTO Members (Email) VALUES ('" . $GetEmails[$a] . "')"; //removed the 'or die' portion

[PHP] Concurent requests

2001-03-09 Thread Daniel B I
Please, any idea how to manage concurent requests, for example like in a shopping cart? Scenario: 1. I have a counter A (a field in a database row), set to 1, so A=1 2. A client wants 1 unit from A , it checks and it's OK, there is available. 3. Another client wants 1 unit from A, it

Re: [PHP] Multiple Inserts

2001-03-09 Thread Phil Driscoll
The trick here is to do some debugging :) Firstly make sure that your error reporting level is set to E_ALL in php.ini - then you've got some chance of seeing error and warning messages. Secondly, while there are probably loads of ways of doing what you are trying to do, all the correct ones

[PHP] REDIRECT_SCRIPT_URI What/How'd I do this?

2001-03-09 Thread Paul Warner
OK, seems I have created some unintended results in PHP. A few weeks ago I was trying to split some common code out into an include file. I was running into problems with an image when the calling file was not in the root of the web directory and was experimenting with various ways to ensure

[PHP] Socket trouble

2001-03-09 Thread pallmall
I have written a browser class, and while the connect method seems to work ok (it times out after 10 seconds, as desired), I'm having problems with actually writing to the socket. For unreliable servers, it has taken up to 15 minutes to write to the socket, whereas I would like the script to

RE: [PHP] Memory use

2001-03-09 Thread Marko Perich
I had the same problem with Linux-Apache-PHP4-Informix. When PHP is loaded as a module it doesn't close the connection automaticaly, so I have to close it manualy to free the memory. Hope it helps. Marko. -Mensaje original- De: Thierry Coopman [EMAIL PROTECTED] Para: [EMAIL PROTECTED]

[PHP] Tree menu

2001-03-09 Thread Rosen
Hi, can someone tell me where I can get some Tree Menu ? Thanks, Rosen Marinov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] displaying information

2001-03-09 Thread Jason Stechschulte
On Thu, Mar 08, 2001 at 09:32:25PM -, george wrote: I am building a site which pulls FAQ's out of the database onto a page,but having just finished reading the FAQ's I realise that they will have to be spread over a few pages, how to I get the new page to take over where the old page

Re: [PHP] displaying information

2001-03-09 Thread Nick Davies
On Fri, 9 Mar 2001, Jason Stechschulte wrote: On Thu, Mar 08, 2001 at 09:32:25PM -, george wrote: I am building a site which pulls FAQ's out of the database onto a page,but having just finished reading the FAQ's I realise that they will have to be spread over a few pages, how to I

Re: [PHP] Qmail problem

2001-03-09 Thread pete collins
Can you telnet to port 25 of your box and get the qmail blurf? Sure. -- $ telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. 220 mozdev.org ESMTP HELO localhost 250 mozdev.org MAIL

[PHP] PHP problem

2001-03-09 Thread Knotek Vlastimil
Hi all, I have following problem. I have 2 computers: 1. Win98, IIS4, PHP4.04pl1 2. Win2000, IIS4, PHP4.04pl1 with same php.ini When I am tried to execute my page on the first one, everything works well. When I am tried to execute it on the second one following error appears: FATAL:

Re: [PHP] Tree menu

2001-03-09 Thread Dominique Paquin
http://www.webreference.com/dhtml/hiermenus/instructions/noframes/step4.html It's client side javascript and very as a beautifull look. Dominique Paquin ""Rosen"" [EMAIL PROTECTED] wrote in message 98akm9$poe$[EMAIL PROTECTED]">news:98akm9$poe$[EMAIL PROTECTED]... Hi, can someone tell me

Re: [PHP] unsuscribe me

2001-03-09 Thread Dominique Paquin
LoL! PHP is open source and, thus, accessible to everyone without condition. But it help me a lot to see funny replies like this from time to time. Thanks Dominick Dominique Paquin ""Dominick Vansevenant"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I

Re: [PHP] displaying information

2001-03-09 Thread py
Hello, if you use mysql as a database, see the function Limit For exemple: if ( !isset( $start ){ $start = 0; } $total = 10; // total amount to grab in database $sql = "SELECT * FROM my_table ORDER BY field Limit $start, $total"; $start += 10; // increment your start You display those

[PHP] Fields into Combo Box

2001-03-09 Thread RealGM
Hi, I just have a couple of questions that I hope some people will know the answers to. 1. I am hoping to read the entire range of values from a field in my MySQL table into a combo box on my form, but I am not sure how. On top of that, I want the user to select one value from this list,

[PHP] in_array() with multidimensional array

2001-03-09 Thread Christian Dechery
How can I check if a value is in a multidimensional array? like I have ?php $i=0; while($idt = mssql_fetch_row($query_result)) { //echo $idt[0]."br"; $produtos_sem_tracking[$i]['cod']=$idt[0]; $produtos_sem_tracking[$i]['idt']=$idt[1];

[PHP] How to compare db-type DATE?

2001-03-09 Thread Michal Hrtko
Hello, how can I compare in SELECT variable, that is type Date? Which type and format $var should be? example: $var = ???; $esql = ODBC_Exec("SELECT * FROM table WHERE table.mydate $var"); Thanks, Michal. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] PHP problem

2001-03-09 Thread Michael Kimsal
I didn't know you could get IIS4 on windows 98. Are you sure you don't mean PWS? Knotek Vlastimil wrote: Hi all, I have following problem. I have 2 computers: 1. Win98, IIS4, PHP4.04pl1 2. Win2000, IIS4, PHP4.04pl1 with same php.ini When I am tried to execute my page on the first

[PHP] Fwd: Re: [PHP-DEV] Header Question using WML

2001-03-09 Thread Jayme Derr
--- Yasuo Ohgaki [EMAIL PROTECTED] wrote: From: "Yasuo Ohgaki" [EMAIL PROTECTED] To: "Jayme Derr" [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Header Question using WML Date: Fri, 9 Mar 2001 10:22:51 +0900 Hello Jaymem You probably get the same message, buy anyway, This list(or new group)

[PHP] Generate Random Letters?

2001-03-09 Thread Website4S
I know it is possible to generate a random number using rand() I don`t suppose there is anyway to generate a random letter sequence that anyone knows of? Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Generate Random Letters?

2001-03-09 Thread Adam Wright
I use something like... function randString($sequence_length = 7) $possible_letters = "abcdefghijklmnopqrstuvwxzy"; $sequence = "" while ($sequence_length--) { $sequence .= $possible_letters[rand(0, strlen($possible_letters) - 1)]; } return $sequence; } To create random strings.

RE: [PHP] Generate Random Letters?

2001-03-09 Thread Nathaniel Hekman
Random lower-case letter: $randomletter = chr(rand(ord("a"), ord("z"))) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 8:13 AM To: [EMAIL PROTECTED] Subject: [PHP] Generate Random Letters? I know it is possible to generate a

Re: [PHP] Concurent requests

2001-03-09 Thread Carsten Gehling
From: "Daniel B I" [EMAIL PROTECTED] Sent: Friday, March 09, 2001 1:49 PM Please, any idea how to manage concurent requests, for example like in a shopping cart? snip Any idea how to fix this transaction problem? If A is locked by the first client in order to fix this problem, there is

[PHP] Anonymous Arrays

2001-03-09 Thread Morgan Curley
Does PHP4 have anything similar to perl's anonymous hash or array( $var = { 'some' = 'hash elements' } or $var = [ 'array', 'elements' ] ) The reason I ask is I am trying to find a way of passing a variable length list of named parameters to a function without having to use a specific order.

[PHP] Strings..

2001-03-09 Thread Ashwin Kutty
Was wondering if someone could tell me how I could do this.. I need the dynamically generated number (NUM) from a string, where the string is:- http://blah.blah.com/blah/blah?blah.com/blah=something:%3Asessionid=NUMdbname=blah Now I tried explode and split, with the '' being as the delimiter,

RE: [PHP] Anonymous Arrays

2001-03-09 Thread Boget, Chris
To make it a little cleaner I would prefer to do something like: my_func( { 'fname' = 'joe' , 'lname'='coder' , 'zip'='12345' } ); an not pollute the code with one-time vars Unless I'm misunderstanding what you are asking, you can do this: my_func( array( 'fname' =

[PHP] includes slooooooow

2001-03-09 Thread Jens Kisters
Hi, i just finished my first really big project and when it went live the servers just flipped out, 100% CPU Load. Removing all includes and pasting all libraries together seemed to do the trick, CPU went back to normal. My Question: What can i do to speed up includes, i hate working on a file

RE: [PHP] includes slooooooow

2001-03-09 Thread Andrew Hill
Replace include with include_once where you can. Best regards, Andrew -Original Message- From: Jens Kisters [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] includes slooow Hi, i just finished my first really big project

RE: [PHP] Anonymous Arrays

2001-03-09 Thread Morgan Curley
yep that works, Initially I was getting an error when I did that but my function had been setup for a pass-by-ref. thanks morgan At 10:09 AM 3/9/2001 -0600, Boget, Chris wrote: To make it a little cleaner I would prefer to do something like: my_func( { 'fname' = 'joe' ,

RE: [PHP] Strings..

2001-03-09 Thread Nathaniel Hekman
Could parse_str() help? From http://php.net/manual/en/function.parse-str.php: void parse_str (string str [, array arr]) Parses str as if it were the query string passed via an URL and sets variables in the current scope. If the second parameter arr is present, variables are stored in this

[PHP] Functional Programming Style?

2001-03-09 Thread Ted Goranson
Hello-- Is PHP suitable for programming in a Haskell-like fashion? Is there existing information on how to do this? Best, Ted _ Ted Goranson Fusecap and Sirius-Beta, Virginia Beach USA 757/426-6704 [EMAIL PROTECTED] Symmetry Conference: http://www.isis-s.unsw.edu.au -- PHP

[PHP] Word2000 .doc as email attachment

2001-03-09 Thread stout
anyone having trouble with these files getting mangled in transport? i'm using the email class from renaghan's phpop. i'm wondering if the base64 encoding might be horking things? function formatAttachmentHeader($inFileLocation, $inNiceFileName){ $outAttachmentHeader = "";

Re: [PHP] Qmail problem

2001-03-09 Thread Nuno Sa e Silva
hi, you can use the sendmail wrapper as instructed in the qmail docs. if you want to use qmail-inject try: ?php system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject [EMAIL PROTECTED]'); ? good luck, Nuno Silva - Original Message - From: "pete collins" [EMAIL PROTECTED]

Re: [PHP] Qmail problem

2001-03-09 Thread pete collins
hi, you can use the sendmail wrapper as instructed in the qmail docs. Done that. Thanks. if you want to use qmail-inject try: ?php system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject [EMAIL PROTECTED]'); ? Tired this as well. Nothing. system('echo "Subject:

Re: [PHP] in_array() with multidimensional array

2001-03-09 Thread Chris Lee
recusrion is your friend. ?php $test[0][0] = 'a'; $test[0][1] = 'b'; $test[0][2] = 'c'; $test[1][0] = 'd'; $test[1][1] = 'e'; $test[1][2] = 'f'; $test[2][0] = 'g'; $test[2][1] = 'h'; $test[2][2] = 'i'; function in_multi_array($needle, $haystack) { foreach($haystack as $pos = $val)

Re: [PHP] How to insert a BLOB in mysql?

2001-03-09 Thread Chris Lee
works great. I use it on a few sites. time.egn has a simple mtime() function and database.egn are just my sql wrappers. ?php include_once('database.egn'); include_once('time.egn'); if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND filesize($db_file)) { $db_file =

[PHP] Getting size of a TYPE

2001-03-09 Thread Natasha
Hi, How can i get size of a type like double or int ? thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Functional Programming Style?

2001-03-09 Thread Nick Davies
Argh Haskell - All the bad memories come flooding back. On Fri, 9 Mar 2001, Ted Goranson wrote: Hello-- Is PHP suitable for programming in a Haskell-like fashion? Is there existing information on how to do this? Best, Ted _ Ted Goranson Fusecap and Sirius-Beta,

Re: [PHP] oohform validation help

2001-03-09 Thread Chris Lee
using client side form verification is a bad idea anyhow, just write a simple php verify. ?php if (isset($HTTP_POST_VARS['done'])) { $people_name = @$HTTP_POST_VARS['people_name']; if ( !$HTTP_POST_VARS['people_name'] ) $form_error[] = "Name must be set"; } if(isset($form_error))

RE: [PHP] oohform validation help

2001-03-09 Thread Boget, Chris
What should I put in for the parameter jvs_name of the oohform-start? Is that a name of another javascript file? Where can I get a sample script? I would like to make sure the clients put in something in the textbox. If you are talking about Jay Bloodworth's FormClass (one of the most

[PHP] PHP4 and Apache DBM authentication

2001-03-09 Thread AK47
I'm running apache 1.3.14+Ben-SSL/1.42 and php-4.0.4pl1 on a RedHat 6.1 linux box. I'm in trouble trying to authenticate users via mod_auth_dbm. Which DBA format should I use to generate user databases? I've tried with: 1) dba and gdbm format 2) dba and ndbm format 3) dba and db2 format I

[PHP] Response 304

2001-03-09 Thread Thomas Weber
Hi, i want a script to produce a "HTTP/1.0 304 Not Modified" or "Status 304 Not Modified". Normally when i send this header after GET data to a script, it should not be loaded. (in this case: an input-frame of a chat should not be reloaded after submitting the data.). I heard the script should

[PHP] odbc_ calls and complex queries (e.g. union

2001-03-09 Thread A. Giacomelli
Hi, I have installed on an NT box a binary PHP4 installation. It seems that executing a "select" on a "composite" query in my Access database returns an error. For instance, I have noticed that this occurs for UNION queries, or joins between a query and a table etc. I get things like: "SQL

[PHP] Using PHP as a shell script

2001-03-09 Thread Alexandre Hautequest
Hi all. Can i use PHP as a shell script, like bash? Or this is inviable, impossible and/or out of question? Thanks. -- Alexandre Hautequest hquest at fesppr.br Fundao de Estudos Sociais do Paran - http://www.fesppr.br/ Centro de Administrao de Redes - CAR "Ningum melhor do que todos ns

[PHP] php4ts.dll error

2001-03-09 Thread Christian Dechery
I'm working with WinMe with apache 1.3.9 and PHP 4.04 now. And it allways worked perfectly... when I had to use the extension php_mssql70.dll, I went into php.ini changed some stuff and everything went ok, but now... everytime I run a script (whether I use mssql's functions or not) it runs and

[PHP] PHP4 CGI Problem

2001-03-09 Thread Devin Atencio
I am running PHP 4.0.4pl1 as a CGI and I have a PHP file that is something like this: #!/usr/local/bin/php4 ? passthru("/bin/ls -al /home/devin/*"); ? but for some reason it doesn't return anything in the browser, but when I run the php file from unix it works just fine, any ideas?

RE: [PHP] Graph Functions

2001-03-09 Thread Christian Jørgensen
-Original Message- From: Fabian Fabela [mailto:[EMAIL PROTECTED]] Sent: 9. marts 2001 04:34 To: [EMAIL PROTECTED] Subject: [PHP] Graph Functions Hello. Which is the easiest way to graph funcitions in php, like f(x)=sin(2x) As far as i know, there is no easy way. I once wrote some code

Re: [PHP] Generate Random Letters?

2001-03-09 Thread mjriding
You could use: select char(rand(128)); Will dispaly character with ascii value of 0 - 128. Thanks, Michael Ridinger On Fri, 9 Mar 2001 [EMAIL PROTECTED] wrote: I know it is possible to generate a random number using rand() I don`t suppose there is anyway to generate a random letter

[PHP] dynamic content again

2001-03-09 Thread george
First of all thanks to everyone who has helped me from this ng but I am afraid I have another question I am using the code below to pull FAQ out of a database but how do I stop the next link appearing when the last question is displayed TIA george if ( !isset( $start )){ $start = 0; }

[PHP] conjecate a variable to a string in a function

2001-03-09 Thread Mike
Whats wrong with this? $MaxID="select Max($Table.'ID') from $Table"; MikeP [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] email sent many times when using ob_get_contents()

2001-03-09 Thread kaab kaoutar
Hi! I have a strange problem, when i use the following in ? mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents()); ob_end_flush(); ? i receive the page many times in my email account! Any idea ? Thanks _ Get Your

Re: [PHP] Using PHP as a shell script

2001-03-09 Thread Frank Joerdens
On Fri, Mar 09, 2001 at 03:07:34PM -0300, Alexandre Hautequest wrote: Hi all. Can i use PHP as a shell script, like bash? Or this is inviable, impossible and/or out of question? There's a good tutorial at phpbuilder.com - check the archives there. Regards, Frank -- PHP General Mailing

[PHP] newbie array question

2001-03-09 Thread stas
Hello, I am trying to create an associative array dynamically. Here's what I did first: $form_val_list = "firstname,lastname,address,address2,city,state,zip,phone,email,resume"; $form_arr = explode (",", $form_val_list); while (list ($key, $val) = each ($form_arr)) { echo "$key

RE: [PHP] Developer certifications

2001-03-09 Thread Rick St Jean
Developer Certifications only mean something if you are trying to get a government job. I have only been asked for sites that I have done and been asked once for a sample of code. I would go to another recruiter if I were you. Every place I have applied looked at urls and code functionality.

RE: [PHP] newbie array question

2001-03-09 Thread Boget, Chris
I am trying to create an associative array dynamically. Here's what I did first: $form_val_list = "firstname,lastname,address,address2,city,state,zip,phone,emai l,resume"; $form_arr = explode (",", $form_val_list); while (list ($key, $val) = each ($form_arr)) { echo "$key

Re: [PHP] Qmail problem

2001-03-09 Thread pete collins
I am running this shell script from php using passthru. #!/bin/sh printf "Starting Shell script: brbr\n"; printf "command ls -l /var/qmail/bin/qmail-injectbr\n"; ls -l /var/qmail/bin/qmail-inject; printf "brbr***br\n"; printf "Subject: TESTING FROM SHELL SCRIPT" |

[PHP] php and netscape server

2001-03-09 Thread Jeff Dickison
Hello, I am having some problems with php, netscape enterprise server and solaris 2.6. I am not sure if this is a normal problem with the configuration I have or if I am missing something. But when I do something like this: $IP = getenv('REMOTE_ADDR') , I do not get the REMOTE_ADDR.

[PHP-CVS] cvs: php4 /ext/ircg ircg.c

2001-03-09 Thread Sascha Schumann
sas Fri Mar 9 10:13:29 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Add a format identifier for escaping %m, so that it can be safely used as a parameter for Javascript. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.49

Re: [PHP] crontab help

2001-03-09 Thread William N. Zanatta
Arnold, In the minutes field on crontab, you can add as many values as you want separated by a colon. Try somthing like this... 00,05,10,15,20,25 and so until 55 * * * ^ THIS IS A MINUTES FIELD WITH MANY VALUES We use it here and it does the job fine. Try

Re: [PHP] newbie array question

2001-03-09 Thread stas
Thanks, I know that, but I don't want to type out assignments manually, as my list of my form values will grow. However, I solved very simply like this: $form_val_list = "firstname,lastname,address,address2,city,state,zip,phone,email,resume"; $form_arr = explode (",", $form_val_list); while

[PHP] So whats up with that GTK... Anyone know of a site with tutorials?

2001-03-09 Thread Brandon Orther
So whats up with that GTK... Anyone know of a site with tutorials? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General

[PHP] dynamically accessing arrays at variable indexes

2001-03-09 Thread Dale Robinson
Hi, I need to access array values at varying dimensions. What I want to do is something like this: $full_index = ["op"]["view"]; print ${"HTTP_GET_VARS" . $full_index}; but that doesnt work :( A messy solution would be: function return_array_value($index1, $index2) { if ($index2) {

[PHP] PHP ide features...

2001-03-09 Thread Dan Cleveland
Hello, I am currently working on finishing up version 2.0 of PHP Studio. It's release date is March 15. It is a completely free source/ware. I was hoping to get a list of features that PHP developers would want to see. I will make an attempt to have all of these features included in

[PHP] ticks wont execute file on one server, but will on another

2001-03-09 Thread noah
is there a reason why doing something like `rm test.test` would work on one server but not another? - noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] sharing variables

2001-03-09 Thread Leo
hi i'm currently programming a php web application and i have the following problem: i need a login scheme; programmed a simple one. Whichever page the user reaches, in some i need their userid, for extra validation. so basically, i'm looking for a mechanism to share a variable between

[PHP] Not isset

2001-03-09 Thread Mike
how do I write a Not isset as in: if != isset($order) { $order=$Table."ID"; } mikep [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

RE: [PHP] Not isset

2001-03-09 Thread Boget, Chris
how do I write a Not isset as in: if != isset($order) { $order=$Table."ID"; } if( !( isset( $order ))) { } I'm big on parens. :p OR if( empty( $order )) { } Chris

RE: [PHP] Not isset

2001-03-09 Thread Brian Paulson
try if(!(isset($order))) { $order=$Table."ID"; } hth Thank you Brian Paulson Sr. Web Developer [EMAIL PROTECTED] http://www.chieftain.com 1-800-269-6397 -Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 1:34 PM To: [EMAIL

[PHP] stdin on win

2001-03-09 Thread n e t b r a i n
Hi all, anyone know if there's a similar way to read like the linux php://stdin on a windows box? I've tried to run a simple script founded on phpbuilder.com about a shell scripting and it seems to work in some way just for the first "request" ... This a "screenshoot" of my ms-dos window:

Re: [PHP] sharing variables

2001-03-09 Thread Chris Lee
sessions ?php /* http://php.net/manual/en/ref.session.php sessions with cookies - will transfer across full urls - will transfer acress full form urls - will not set SID - will not transfer across multiple domainnames sessions without cookies

Re: [PHP] ticks wont execute file on one server, but will on another

2001-03-09 Thread Chris Lee
permisions ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""noah"" [EMAIL PROTECTED] wrote in message 98be51$o3u$[EMAIL PROTECTED]">news:98be51$o3u$[EMAIL PROTECTED]... is there a reason why doing something like `rm test.test`

Re: [PHP] PHP ide features...

2001-03-09 Thread Chris Lee
I use ultraedit love it. - ftp open - line numbers and ruler - search and replace by file, highlightd text, dir - auto indent, highlight a group of text and indent or de-dent. - file::open::default dir depends on the current file open - htmltidy built in - spell check text not code. - macros -

[PHP] file upload tutorial.

2001-03-09 Thread Jerry Lake
Anyone know where I can find a file upload tutorial ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] libical

2001-03-09 Thread Mark Cheverton
Is anyone working on integrating libical ( http://softwarestudio.org/libical/index.html ) with php. This library seems to be in much more active development than libmcal and in active use by software developers. -Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] file upload tutorial.

2001-03-09 Thread Aaron Tuller
does anyone look at the manual anymore? there's TONS of info at: http://www.php.net/manual/en/features.file-upload.php -aaron At 1:10 PM -0800 3/9/01, Jerry Lake wrote: Anyone know where I can find a file upload tutorial ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa

Re: [PHP] Using PHP as a shell script

2001-03-09 Thread Chris Lee
I use a script like this, place it in cron, run it once a day to search the db and email the nescisary people the reminders they request. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""John Huggins"" [EMAIL PROTECTED] wrote

Re: [PHP] conjecate a variable to a string in a function

2001-03-09 Thread Aaron Tuller
At 1:42 PM -0500 3/9/01, Mike wrote: Whats wrong with this? $MaxID="select Max($Table.'ID') from $Table"; I assume you want to do: $MaxID="select Max($TableID) from $Table"; as long as you don't have a variable called $TableID that is. if you do then do: $MaxID="select Max(".$Table."ID)

RE: [PHP] file upload tutorial.

2001-03-09 Thread Jerry Lake
With the info in the manual (thanks) I keep getting this error Warning: Unable to create '/www/htdocs/uploads': Is a directory in /www/workbox/htdocs/upload.php on line 4 I have the directory chmoded to 777 what is my problem, aside from general idiocy... Jerry Lake- [EMAIL

Re: [PHP] PHP ide features...

2001-03-09 Thread Rick St Jean
I use a fantastic program called Textpad. I love ultraedit also but what it lacks is a clip or snippets library. The functions work well... as well as the macros. The thing that the snippets or clip library needs is the ability to have a hotkey tied to each one... the drawback of a macro

  1   2   >