php-general Digest 9 Mar 2001 11:47:21 -0000 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: kaab kaoutar Re: Qmail problem 43095 by: David Robley 43096 by: Rich Cavanaugh 43127 by: Nick Davies RNV PHP=o.k.....Apache=o.k..... So... What the "#$$% : ) 43097 by: Rodolfo NAva 43098 by: Jerry Lake Re: Sessions, and timeout 43099 by: Yasuo Ohgaki Re: external data saving 43100 by: Andrew Halliday demo application suggestions 43101 by: Chad Cunningham 43102 by: Clayton Dukes HTML book recommendation 43103 by: Michael George 43104 by: Jeff Oien 43117 by: Brian White Re: HELP with Multi Dimensional Array Problem 43105 by: CC Zona can't load extension 43107 by: Christian Dechery Graph Functions 43108 by: Fabian Fabela Replace a string in array then re-write line. 43109 by: enthalpy 43111 by: Jaxon 43113 by: enthalpy 43114 by: andrew 43118 by: enthalpy oohform validation help 43110 by: Christopher Cheng Re: validating fields 43112 by: W.D. 43115 by: Simon Garner 43116 by: Philip Olson Re: sending SMS messages via PHP 43119 by: Greig, Euan 43120 by: Simon Ould pipes and PHP (CGI/shell) 43121 by: Cymen Vig 43128 by: Cymen Vig unsuscribe me 43122 by: Emmerson Rafael Miranda Ramirez 43125 by: Dominick Vansevenant 43126 by: Christian Jørgensen Calling DB2 Stored Procedures 43123 by: Jens Kisters twig 43124 by: Kevin Cawthorne How to insert a BLOB in mysql? 43129 by: Daniele Memory use 43130 by: Thierry Coopman Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
mysql_query($sql) or die("there was an error: ".mysql_error()); -aaron At 3:16 PM -0800 3/8/01, Dennis Gearon wrote: >I do an insert using phpadmin, and i get back the error message (or >maybe it's a warning?) The insert is of a duplicate on a unique field. I >expected an error, but when I do mysql_error() or mysql_errno(), nothing >comes back(and I do it the next line in the script). the >'mysql_query($sql, $link)' function DOES insert when the value is >unique, DOES return false, but I'd like to inform the user what the >error was. PHP Admin can get the 'error' why can't I? > >Please reply to me as well, OK? I'm trying to finish this script at work >today. >[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 PROTECTED]
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dennis Gearon) wrote: > I do an insert using phpadmin, and i get back the error message (or > maybe it's a warning?) The insert is of a duplicate on a unique field. I > expected an error, but when I do mysql_error() or mysql_errno(), nothing > comes back(and I do it the next line in the script). the > 'mysql_query($sql, $link)' function DOES insert when the value is > unique, DOES return false, but I'd like to inform the user what the > error was. PHP Admin can get the 'error' why can't I? Where are the calls placed? mysql_error() or mysql_errno() can only be used after a valid mysql connection has been established, so for instance this will not return an error message from mysql: mysql_connect(stuff) or die(mysql_error()); -- CC
put ob_start() at the beginning of your script. at the end put: mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents()); ob_end_flush(); -aaron At 11:48 PM +0000 3/8/01, kaab kaoutar wrote: >Hi >I've tried what, one of u, has kindly suggested, to send the whole >html page as email : >i put at the beginning of the page ><?mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents()); ?> >and at the end, after </html> ><? ob_end_flush();?> >but i receive a blank email >Can u please help ! >THANKS >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > >-- >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]
OH! THANKS A LOT!!!!!!!!!! IT WORKS ! >From: Aaron Tuller <[EMAIL PROTECTED]> >To: "kaab kaoutar" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: Re: [PHP] how to use ob_get_contents() to send a page as email >Date: Thu, 8 Mar 2001 15:51:42 -0800 > >put ob_start() at the beginning of your script. > >at the end put: > >mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents()); >ob_end_flush(); > >-aaron > >At 11:48 PM +0000 3/8/01, kaab kaoutar wrote: >>Hi >>I've tried what, one of u, has kindly suggested, to send the whole >>html page as email : >>i put at the beginning of the page >><?mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents()); ?> >>and at the end, after </html> >><? ob_end_flush();?> >>but i receive a blank email >>Can u please help ! >>THANKS >>_________________________________________________________________________ >>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. >> >> >>-- >>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] > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
On Fri, 9 Mar 2001 03:43, pete collins wrote: > I keep getting: > qmail-inject: fatal: read error > > I've tried everything. > > Sendmail is symlinked to /var/qmail/bin/sendmail wrapper > > $ ls -l /usr/lib/sendmail > lrwxrwxrwx 1 root root 28 Aug 25 2000 > /usr/lib/sendmail -> ../../var/qmail/bin/sendmail > > $ ls -l /usr/sbin/sendmail > lrwxrwxrwx 1 root root 28 Aug 25 2000 > /usr/sbin/sendmail -> ../../var/qmail/bin/sendmail > > > I have tried every permutation for my sendmail_path in php.ini > > I tested the php code i'm using from my FreeBSD box which uses sendmail > and it all works fine. > > I can use qmail fine from perl. > > Does anyone have any ideas? This is down right silly. ;-) > > Thanks > > --pete For me, on Slackware, this works: ~$ ls -l /usr/sbin/sendmail lrwxrwxrwx 1 root root 23 Aug 28 2000 /usr/sbin/sendmail -> /var/qmail/bin/sendmail* ~$ ls -l /usr/lib/sendmail lrwxrwxrwx 1 root root 18 Jul 12 2000 /usr/lib/sendmail -> /usr/sbin/sendmail* sendmail_path = /usr/sbin/sendmail -t -i ;for unix only, may supply arguments as well (default is sendmail -t) Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
Or you could try this: sendmail_path = /var/qmail/bin/qmail-inject Obviously you'll want to put in your correct path to qmail-inject, but that works fine for me. -- rich -----Original Message----- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 7:24 PM To: pete collins; [EMAIL PROTECTED] Subject: Re: [PHP] Qmail problem On Fri, 9 Mar 2001 03:43, pete collins wrote: > I keep getting: > qmail-inject: fatal: read error > > I've tried everything. > > Sendmail is symlinked to /var/qmail/bin/sendmail wrapper > > $ ls -l /usr/lib/sendmail > lrwxrwxrwx 1 root root 28 Aug 25 2000 > /usr/lib/sendmail -> ../../var/qmail/bin/sendmail > > $ ls -l /usr/sbin/sendmail > lrwxrwxrwx 1 root root 28 Aug 25 2000 > /usr/sbin/sendmail -> ../../var/qmail/bin/sendmail > > > I have tried every permutation for my sendmail_path in php.ini > > I tested the php code i'm using from my FreeBSD box which uses sendmail > and it all works fine. > > I can use qmail fine from perl. > > Does anyone have any ideas? This is down right silly. ;-) > > Thanks > > --pete For me, on Slackware, this works: ~$ ls -l /usr/sbin/sendmail lrwxrwxrwx 1 root root 23 Aug 28 2000 /usr/sbin/sendmail -> /var/qmail/bin/sendmail* ~$ ls -l /usr/lib/sendmail lrwxrwxrwx 1 root root 18 Jul 12 2000 /usr/lib/sendmail -> /usr/sbin/sendmail* sendmail_path = /usr/sbin/sendmail -t -i ;for unix only, may supply arguments as well (default is sendmail -t) Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- 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]
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 wrote: > > I keep getting: > qmail-inject: fatal: read error > > I've tried everything. > > Sendmail is symlinked to /var/qmail/bin/sendmail wrapper > > $ ls -l /usr/lib/sendmail > lrwxrwxrwx 1 root root 28 Aug 25 2000 /usr/lib/sendmail > -> ../../var/qmail/bin/sendmail > > $ ls -l /usr/sbin/sendmail > lrwxrwxrwx 1 root root 28 Aug 25 2000 > /usr/sbin/sendmail -> ../../var/qmail/bin/sendmail > > > I have tried every permutation for my sendmail_path in php.ini > > I tested the php code i'm using from my FreeBSD box which uses sendmail > and it all works fine. > > I can use qmail fine from perl. > > Does anyone have any ideas? This is down right silly. ;-) > > Thanks > > --pete > >
Hi. I installed Apache... no problem... the classic MSDOS window with... Apache running.... and the path for Php4. Php installed, I made a <body><head><title>Hola</Title> <body> <? php phpinfo(); ?> </body> and saved it as test.php then... I went to MsDos... c: php test.php [Enter] I got a large list with html tags... ok... so PHP running well.... But if I want to run it from windows... I mean, two clicks to test.php.... then comes that hateful window with... with which program would you like to open this file? So I can´t get an answer of html.... What´s wrong...I changed the httpd.conf file... something wrong there? I hope you can help me... if I can make this thing working... maybe I will hold my job and maybe my boss's job... :0) thank you. Rodolfo Nava __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
view the php file through localhost on your browser with apache running http://localhost/whateverfile.php make sure the file is somewhere in your document root. Jerry Lake - [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -----Original Message----- From: Rodolfo NAva [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: [PHP] RNV PHP=o.k.....Apache=o.k..... So... What the "#$$% : ) Hi. I installed Apache... no problem... the classic MSDOS window with... Apache running.... and the path for Php4. Php installed, I made a <body><head><title>Hola</Title> <body> <? php phpinfo(); ?> </body> and saved it as test.php then... I went to MsDos... c: php test.php [Enter] I got a large list with html tags... ok... so PHP running well.... But if I want to run it from windows... I mean, two clicks to test.php.... then comes that hateful window with... with which program would you like to open this file? So I can´t get an answer of html.... What´s wrong...I changed the httpd.conf file... something wrong there? I hope you can help me... if I can make this thing working... maybe I will hold my job and maybe my boss's job... :0) thank you. Rodolfo Nava __________________________________________________ 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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
It looks it would not cause too short expiration of session. (Expire is not set for cookie. This is not what you want probably, but this should not cause expiration of cookie within 10 or 20 min. You changes session.cache_expire, but set Expire: and no cache headers. I think you don't need to do both. It probably written for in case you want browsers to cache document, though.) These are what I'm look for next. Assuming you lost session data, but not session id. What is your session handler? file/mm/user? If user, is your gc function working as it should? Global value of session.gc_maxlifetime and others are set to low number in previous mail, change this to see if it fixes. [I forgot when garbage collection is performed, but if gc is done before/after session_read(), changes made by ini_set() - gc_maxlifetime - will not make any difference. If gc is done before/after session_write(), should work as expected] Do you have any code that uses session w/o changing gc_maxlifetime settings? [Change made by ini_set()/ini_alter() is local, would not change other connection's setting] If you lost session id stored in cookie, but session data exists on server. I have no idea what's wrong or what you need to look for. By the way, following line is redundant as I mentioned at first. ini_alter("session.cache_expire", "172800"); This will not affect, since you have Expire: and no cache header. There is other issue with this line. i.e. 172800 minutes for document expiration is too long. From my php.ini ;session.cache_expire = 180 ; document expires after n minutes Hope this helps. Yasuo Ohgaki == original msg === > Then how about check the server's response headers that sent to client? You > can view headers using wget or like. PHP might be sending global ini > var(which is set to small number) to client for some reason. Ok, this is the header information I get. HTTP/1.1 200 OK Date: Thu, 08 Mar 2001 11:52:37 GMT Server: Apache/1.3.14 (Unix) (Red-Hat/Linux) mod_ssl/2.7.1 OpenSSL/0.9.5a PHP/4.0.4pl1 mod_perl/1.24 X-Powered-By: PHP/4.0.4pl1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Last-Modified: Thu, 08 Mar 2001 11:52:37GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: PHPSESSID=784c532834c6a36451f91c235ee44aa4; path=/ Connection: close Content-Type: text/html;charset=iso-8859-1 Code snippet from the script: ------------------ // Disable page chacing. Could this interfer with sessions?? : header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); // Turn on output buffering ob_start(); // start session handling session_start(); // settings for sessions ini_alter("session.gc_maxlifetime", "172800"); ini_alter("session.entropy_file","/dev/urandom"); ini_alter("session.entropy_length", "512"); ini_alter("session.cache_expire", "172800"); // set the session variable (inside a class): session_register( "eZSession" ); $GLOBALS["eZSession"] =& $this->Hash; // fetches the session information: $hash = $GLOBALS["eZSession"]; // flush buffer ob_end_flush(); ----- For more code (full class listing) you can check out: http://doc.ez.no/ezsession.src.html#1 That should be straight forward right? I have no idea why it times out. I've tested quite alot of things now:) I've tested with Konqueror, Netscape and Opera. Every browser times out. Also with cookieless sessions. > Do you mean just like trans-sid? I think you cannot as far as I know. PHP > Programmers/HTML designer have to write code manually to add query string. > Anyone?? Yes, I would like that trans-sid. Like if I could have code like. php_auto_append_variable( "MyVar", "foo bar" ); ( Of course that makes no sense when I get the sessions up and running. ) Regards, -- Bård Farstad Systems developer ez.no | developer.ez.no | zez.org
This could be done in one of several ways: - form : what you sound like you want to do seems prettey simple - why is it not doable with a form? - file upload : this seems more like what you are looking for ... use the commands in Chapter 19 (File Uploads) of the PHP manual The advantage with a form is that you can send it straight to the database...as opposed to uploading a file, which is a lot more fiddly. You have to upload the file, recover it from the temporary area, and then resumably you are going to want to parse it - which is where the effort factor can get ugly :) More specs on what you wanted would be good. AndrewH ----- Original Message ----- From: "Petr Jůza" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 09, 2001 9:42 AM Subject: [PHP] external data saving > Hi, > I have one question, please. Can anybody help me with external data saving? > I require to save the user data (I suppose data will be in the text format) > from user (from his computer) to a database server. And I want not use > ActiveX technology because it must run even under Netscape. Are there > functions for work with files in Javascript? > > Thank you very much. > Lot of regards, PETER > > > > -- > 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] >
I am going to be manning a booth on apache at a Linux trade show, and I'm looking for suggestions on a good php app to show off. Seeing as a webserver alone is not too exciting, I thought it would be better off to show off what you can do with the apache platform and some of the modules available. If anyone has any suggestions on any php apps that would impress business types, please let me know. I might as well try and drum up some interest in PHP while I'm there :) -- Chad Cunningham [EMAIL PROTECTED] "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is bad! Oh beware the other head of science, Arthur, it bites!"
Try IMP webmail ----- Original Message ----- From: Chad Cunningham <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 08, 2001 8:30 PM Subject: [PHP] demo application suggestions > > I am going to be manning a booth on apache at a Linux trade show, and I'm > looking for suggestions on a good php app to show off. Seeing as a > webserver alone is not too exciting, I thought it would be better off to > show off what you can do with the apache platform and some of the modules > available. If anyone has any suggestions on any php apps that would > impress business types, please let me know. I might as well try and drum > up some interest in PHP while I'm there :) > > -- > > Chad Cunningham > [EMAIL PROTECTED] > > "Well, once again my friend, we find that science is a two-headed beast. One > head is nice, it gives us aspirin and other modern conveniences,...but the > other head of science is bad! Oh beware the other head of science, Arthur, it > bites!" > > > -- > 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]
This is a bit off-topic, but I'm curious what you PHP'ers would recommend as a good HTML book. I think I need to learn some stylesheet stuff and the tutorial I've got covers the basics, but I'd like some more in-depth info on the commands. Is the O'Reilley(sp?) book the best, or are there better out there? -Michael -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816
This is something I happened to come across. I have no idea how it compares to others, just giving you the link. http://wdvl.internet.com/Authoring/Style/Sheets/Book.html Jeff Oien > This is a bit off-topic, but I'm curious what you PHP'ers would recommend as > a good HTML book. I think I need to learn some stylesheet stuff and the > tutorial I've got covers the basics, but I'd like some more in-depth info on > the commands. > > Is the O'Reilley(sp?) book the best, or are there better out there? > > -Michael > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > 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] >
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 because it is well indexed and has useful lists of what elements there are, what attributes they have, what values they can have etc. However, I am not really in a position to judge how good it is to "learn" from. Regs Brian White > > This is a bit off-topic, but I'm curious what you PHP'ers would > recommend as > > a good HTML book. I think I need to learn some stylesheet stuff and the > > tutorial I've got covers the basics, but I'd like some more in-depth > info on > > the commands. ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Yev) wrote: > So, it sees $name="field[text][email]", and attempts to retrieve the > value, so in essense $HTTP_GET_VARS[$name] should return > "[EMAIL PROTECTED]", but it doesn't work.. > However, if i try to access $HTTP_GET_VARS[field][text][email] that > properly returns "[EMAIL PROTECTED]". The reason "it doesn't work" is because these are not the same reference. $HTTP_GET_VARS[$name] expands to: $HTTP_GET_VARS[field[text][email]] Which, as you can see, is not the same as: $HTTP_GET_VARS[field][text][email] Since you're apparently trying to access the data submitted in > <input type=text name="field[text][email]" value="[EMAIL PROTECTED]"> > <input type=text name="field[text][url]" value="http://www.email.com"> How about using something like: extract($HTTP_GET_VARS['field']['text']); //note that index names are quoted echo $email; echo $url; ? Otherwise, if you want to stick with the original method, I believe you would use something like: $name="['field']['text']['email']"; //index names quoted, brackets added echo $HTTP_GET_VARS$name; //brackets dropped -- CC
I had Apache 1.3.12 here with php 4.0.3 and all was working fine. I decided to upgrade to 1.3.17 and all came down, I spent hours bringing it all back... when I finally did it, there's still something that WON'T work... I can't load php_mssql70.dll... it simply does not load. I've set extenstion_dir (php.ini) correctly (I tried every combination possible : "c:\php4\extensions", "c:\php4\extensions\", "c:/php4/extensions", "c:/php4/extensions/", and all of those without qutoes). The file is there, were it always was... why does it gives me that error msg (in the log): "PHP Warning: Unable to load dynamic library 'c:/php4/extensions/php_mssql70.dll' - Não é possível encontrar um dos arquivos de biblioteca necessário para executar esse aplicativo. (translating: Can't find one of the library files needed to run this application [something like that, doesn't really matter]) in Unknown on line 0" why? why? whyyyyyyyyyy? ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer
Hello. Which is the easiest way to graph funcitions in php, like f(x)=sin(2x) thank you Fabian Fabela [EMAIL PROTECTED] www.vacagorda.com
ok so im using fopen to read a file split each line in to an array. Check those variables against the same situation with a different file. Replace a string in the second file with a string in the first file. Then rewrite the line with the new variable. here is a small example of how im opening and exploding the lines $fpoint1 = fopen ($newfile,"r") or die("couldnt open working file"); while ($data = fgetcsv ($fpoint1, $newfilesize, " ")) { $num = count ($data); echo "$num fields in line $row: \n"; for ($c=0; $c<$num; $c++) { } im opening the second file the same way and if data[0] and data2[0] are = then it will replace the strings. anyway if i made any sense at all i think you will know what im talking about. <-----CoreComm-Internet-Services---http://core.com-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org-------------http://enthalpy.org-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------>
Jon, I've done something similar with strtr(), pulling the array from a database and swapping the result set into a file. $fd = fopen ($file, "r"); $string = fread ($fd, filesize ($template)); fclose ($fd); $array = mysql_fetch_array($result, MYSQL_ASSOC); echo (strtr($string, $array)); just my .02: regards, jaxon On 3/8/01 10:53 PM, "enthalpy" <[EMAIL PROTECTED]> wrote: > > ok so im using fopen to read a file split each line in to an array. Check > those variables against the same situation with a different file. Replace > a string in the second file with a string in the first file. Then rewrite > the line with the new variable. > > here is a small example of how im opening and exploding the lines > > $fpoint1 = fopen ($newfile,"r") or die("couldnt open working file"); > while ($data = fgetcsv ($fpoint1, $newfilesize, " ")) { > $num = count ($data); > echo "$num fields in line $row: \n"; > for ($c=0; $c<$num; $c++) { > > } > > im opening the second file the same way and if data[0] and data2[0] are = > then it will replace the strings. > > anyway if i made any sense at all i think you will know what im talking > about. > > <-----CoreComm-Internet-Services---http://core.com-----> > (Jon Marshall CoreComm Services Chicago) > ([EMAIL PROTECTED] Systems Engineer II) > ([EMAIL PROTECTED] Network Operations) > <-----Enthalpy.org-------------http://enthalpy.org-----> > ([EMAIL PROTECTED] The World of Nothing) > <------------------------------------------------------> >
im just using 2 flat files. is there any kind of freplace? or can i use str_replace to re-write the line? <-----CoreComm-Internet-Services---http://core.com-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org-------------http://enthalpy.org-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------> On Thu, 8 Mar 2001, Jaxon wrote: > Jon, > > I've done something similar with strtr(), pulling the array from a database > and swapping the result set into a file. > > $fd = fopen ($file, "r"); > $string = fread ($fd, filesize ($template)); > fclose ($fd); > > $array = mysql_fetch_array($result, MYSQL_ASSOC); > echo (strtr($string, $array)); > > just my .02: > > regards, > jaxon > > > > > On 3/8/01 10:53 PM, "enthalpy" <[EMAIL PROTECTED]> wrote: > > > > > ok so im using fopen to read a file split each line in to an array. Check > > those variables against the same situation with a different file. Replace > > a string in the second file with a string in the first file. Then rewrite > > the line with the new variable. > > > > here is a small example of how im opening and exploding the lines > > > > $fpoint1 = fopen ($newfile,"r") or die("couldnt open working file"); > > while ($data = fgetcsv ($fpoint1, $newfilesize, " ")) { > > $num = count ($data); > > echo "$num fields in line $row: \n"; > > for ($c=0; $c<$num; $c++) { > > > > } > > > > im opening the second file the same way and if data[0] and data2[0] are = > > then it will replace the strings. > > > > anyway if i made any sense at all i think you will know what im talking > > about. > > > > <-----CoreComm-Internet-Services---http://core.com-----> > > (Jon Marshall CoreComm Services Chicago) > > ([EMAIL PROTECTED] Systems Engineer II) > > ([EMAIL PROTECTED] Network Operations) > > <-----Enthalpy.org-------------http://enthalpy.org-----> > > ([EMAIL PROTECTED] The World of Nothing) > > <------------------------------------------------------> > > > >
You should look at strtr - http://www.php.net/manual/en/function.strtr.php either swap string into 'nother string according to target, or swap array into string, using array fields as target. Also, check preg_replace: http://www.php.net/manual/en/function.preg-replace.php regards, jaxon On 3/8/01 11:32 PM, "enthalpy" <[EMAIL PROTECTED]> wrote: > > im just using 2 flat files. is there any kind of freplace? or can i use > str_replace to re-write the line? > > <-----CoreComm-Internet-Services---http://core.com-----> > (Jon Marshall CoreComm Services Chicago) > ([EMAIL PROTECTED] Systems Engineer II) > ([EMAIL PROTECTED] Network Operations) > <-----Enthalpy.org-------------http://enthalpy.org-----> > ([EMAIL PROTECTED] The World of Nothing) > <------------------------------------------------------> > > On Thu, 8 Mar 2001, Jaxon wrote: > >> Jon, >> >> I've done something similar with strtr(), pulling the array from a database >> and swapping the result set into a file. >> >> $fd = fopen ($file, "r"); >> $string = fread ($fd, filesize ($template)); >> fclose ($fd); >> >> $array = mysql_fetch_array($result, MYSQL_ASSOC); >> echo (strtr($string, $array)); >> >> just my .02: >> >> regards, >> jaxon >> >> >> >> >> On 3/8/01 10:53 PM, "enthalpy" <[EMAIL PROTECTED]> wrote: >> >>> >>> ok so im using fopen to read a file split each line in to an array. Check >>> those variables against the same situation with a different file. Replace >>> a string in the second file with a string in the first file. Then rewrite >>> the line with the new variable. >>> >>> here is a small example of how im opening and exploding the lines >>> >>> $fpoint1 = fopen ($newfile,"r") or die("couldnt open working file"); >>> while ($data = fgetcsv ($fpoint1, $newfilesize, " ")) { >>> $num = count ($data); >>> echo "$num fields in line $row: \n"; >>> for ($c=0; $c<$num; $c++) { >>> >>> } >>> >>> im opening the second file the same way and if data[0] and data2[0] are = >>> then it will replace the strings. >>> >>> anyway if i made any sense at all i think you will know what im talking >>> about. >>> >>> <-----CoreComm-Internet-Services---http://core.com-----> >>> (Jon Marshall CoreComm Services Chicago) >>> ([EMAIL PROTECTED] Systems Engineer II) >>> ([EMAIL PROTECTED] Network Operations) >>> <-----Enthalpy.org-------------http://enthalpy.org-----> >>> ([EMAIL PROTECTED] The World of Nothing) >>> <------------------------------------------------------> >>> >> >> > >
ok that will work for swaping the elements in the array. however rewriting the old line blah:blah:blah to blah:foo:blah its 2 flat files that im opening with fopen obviously. perhaps im talking in circles <-----CoreComm-Internet-Services---http://core.com-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org-------------http://enthalpy.org-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------> On Thu, 8 Mar 2001, andrew wrote: > You should look at strtr - > http://www.php.net/manual/en/function.strtr.php > > either swap string into 'nother string according to target, or swap array > into string, using array fields as target. > > Also, check preg_replace: > http://www.php.net/manual/en/function.preg-replace.php > > regards, > jaxon > > On 3/8/01 11:32 PM, "enthalpy" <[EMAIL PROTECTED]> wrote: > > > > > im just using 2 flat files. is there any kind of freplace? or can i use > > str_replace to re-write the line? > > > > <-----CoreComm-Internet-Services---http://core.com-----> > > (Jon Marshall CoreComm Services Chicago) > > ([EMAIL PROTECTED] Systems Engineer II) > > ([EMAIL PROTECTED] Network Operations) > > <-----Enthalpy.org-------------http://enthalpy.org-----> > > ([EMAIL PROTECTED] The World of Nothing) > > <------------------------------------------------------> > > > > On Thu, 8 Mar 2001, Jaxon wrote: > > > >> Jon, > >> > >> I've done something similar with strtr(), pulling the array from a database > >> and swapping the result set into a file. > >> > >> $fd = fopen ($file, "r"); > >> $string = fread ($fd, filesize ($template)); > >> fclose ($fd); > >> > >> $array = mysql_fetch_array($result, MYSQL_ASSOC); > >> echo (strtr($string, $array)); > >> > >> just my .02: > >> > >> regards, > >> jaxon > >> > >> > >> > >> > >> On 3/8/01 10:53 PM, "enthalpy" <[EMAIL PROTECTED]> wrote: > >> > >>> > >>> ok so im using fopen to read a file split each line in to an array. Check > >>> those variables against the same situation with a different file. Replace > >>> a string in the second file with a string in the first file. Then rewrite > >>> the line with the new variable. > >>> > >>> here is a small example of how im opening and exploding the lines > >>> > >>> $fpoint1 = fopen ($newfile,"r") or die("couldnt open working file"); > >>> while ($data = fgetcsv ($fpoint1, $newfilesize, " ")) { > >>> $num = count ($data); > >>> echo "$num fields in line $row: \n"; > >>> for ($c=0; $c<$num; $c++) { > >>> > >>> } > >>> > >>> im opening the second file the same way and if data[0] and data2[0] are = > >>> then it will replace the strings. > >>> > >>> anyway if i made any sense at all i think you will know what im talking > >>> about. > >>> > >>> <-----CoreComm-Internet-Services---http://core.com-----> > >>> (Jon Marshall CoreComm Services Chicago) > >>> ([EMAIL PROTECTED] Systems Engineer II) > >>> ([EMAIL PROTECTED] Network Operations) > >>> <-----Enthalpy.org-------------http://enthalpy.org-----> > >>> ([EMAIL PROTECTED] The World of Nothing) > >>> <------------------------------------------------------> > >>> > >> > >> > > > > > >
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.
Actually I tried a variation of what you gave me before and it didnt work. I couldnt get yours to validate thanks. heres what I used <?php if (getenv("REQUEST_METHOD") == "POST") { if ( eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email) && eregi("^[a-z0-9]$", $FirstName) && eregi("^[a-z0-9]$", $LastName) ) { echo "thanks"; } else { echo "error!"; } } ?> This is directly after the form using the registered vars $Email, $FirstName, $LastName. So I dunno whats wrong.. > From: "W.D." <[EMAIL PROTECTED]> > > > I dont know how to do this, but Ive tried several things with no success. > I > > need to validate several form fields and here is the script I'm working > > with... > > > > <?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") > > { > > (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? > > header("Location: http://www.site.com/thanks.php"): > > header("Location: http://www.site.com/error.php"); > > } > > ;?> > > > > I need to check at least two more fields, possibly 3 but I keep getting > > errors when trying to loop through a bunch of if statements. The above > works > > fine but I need to check eregi() against more strings from fields which > then > > redirects as shown above. Anyone? > > > > > <?php > if (getenv("REQUEST_METHOD") == "POST") > { > if ( > eregi("pattern1", $field1) > && eregi("pattern2", $field2) > && eregi("pattern3", $field3) > ) > { > echo "thanks"; > } > else > { > echo "error!"; > } > } > ?> > > > Or if you want better error reporting: > > > <?php > if (getenv("REQUEST_METHOD") == "POST") > { > $errors = array(); > > if (!eregi("pattern1", $field1)) > { > $errors[] = "field1 is not right"; > } > if (!eregi("pattern2", $field2)) > { > $errors[] = "field2 is not right"; > } > if (!eregi("pattern3", $field3)) > { > $errors[] = "field3 is not right"; > } > > if (count($errors) > 0) > { > echo "Sorry, " . count($errors) . " errors occurred, please try > again.\n<ul>"; > foreach ($errors as $err) > { > echo "<li>$err\n"; > } > echo "</ul>"; > } > } > ?> > > > -- > 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] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
From: "W.D." <[EMAIL PROTECTED]> > Actually I tried a variation of what you gave me before and it didnt work. I > couldnt get yours to validate thanks. heres what I used > <?php > if (getenv("REQUEST_METHOD") == "POST") > { > if ( > eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email) > && eregi("^[a-z0-9]$", $FirstName) > && eregi("^[a-z0-9]$", $LastName) > ) > { > echo "thanks"; > } > else > { > echo "error!"; > } > } > ?> > > This is directly after the form using the registered vars $Email, > $FirstName, $LastName. So I dunno whats wrong.. > Your regular expressions are incorrect. Try: if ( eregi("^[a-z0-9\._-]+@[a-z0-9\.-]+\.[a-z]{2,3}$", $Email) && eregi("^[a-z0-9]+$", $FirstName) && eregi("^[a-z0-9]+$", $LastName) ) Cheers Simon Garner
Consider seperating the checks and tell the user what they did and didn't do correctly as that way you can put the incorrect fields in bold and red fonts! Users LOVE that. And little custom messages like "Yo, your email of $email is incorrect and what kind of first name is $firstname?!" And maybe even tell them "You answered 85% of the fields correctly, all you have are 15% more to go!" Ahem. Something like that :) (hint: like an array to hold errors and if errors is_array then share this unfortunate news with the user, in a creative and useful manner.) Regards, Philip On Fri, 9 Mar 2001, Simon Garner wrote: > From: "W.D." <[EMAIL PROTECTED]> > > > Actually I tried a variation of what you gave me before and it didnt work. > I > > couldnt get yours to validate thanks. heres what I used > > <?php > > if (getenv("REQUEST_METHOD") == "POST") > > { > > if ( > > eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email) > > && eregi("^[a-z0-9]$", $FirstName) > > && eregi("^[a-z0-9]$", $LastName) > > ) > > { > > echo "thanks"; > > } > > else > > { > > echo "error!"; > > } > > } > > ?> > > > > This is directly after the form using the registered vars $Email, > > $FirstName, $LastName. So I dunno whats wrong.. > > > > > Your regular expressions are incorrect. > > Try: > > if ( > eregi("^[a-z0-9\._-]+@[a-z0-9\.-]+\.[a-z]{2,3}$", $Email) > && eregi("^[a-z0-9]+$", $FirstName) > && eregi("^[a-z0-9]+$", $LastName) > ) > > > Cheers > > Simon Garner > > > -- > 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] >
>> 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 the response document is so simple in structure that you could probably get by without an xml parser to interpret it. >Does it cost anything? >Do you need to be registered? >Are there similar services? Apologies for imprecise answers, the facility was arranged for us by another department in our company. Yes it does cost, but I don' t know how much. You do have to register. I suggest you visit the site for further info. I don't specifically know of any similar sites, but they must exist. Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997 ************************************************************************** Any opinions expressed in this email are those of the individual and not necessarily the Company. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from the Company, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. **************************************************************************
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 to be able to receive text messages. Regards Simon. > -----Original Message----- > From: Greig, Euan [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 09:24 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [PHP] RE: sending SMS messages via PHP > > > >> 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 the response document is so simple in structure that you > could probably > get by without an xml parser to interpret it. > > > >Does it cost anything? > >Do you need to be registered? > > >Are there similar services? > > Apologies for imprecise answers, the facility was arranged > for us by another department in our company. > > Yes it does cost, but I don' t know how much. You do have to > register. I suggest you visit the site for further info. I > don't specifically know of any similar sites, but they must exist. > > Euan Greig > Technical Consultant > BRANN DATA > [EMAIL PROTECTED] > 01285 645997 > > > > > > ************************************************************** > ************ > Any opinions expressed in this email are those of the individual and > not necessarily the Company. This email and any files > transmitted with > it, including replies and forwarded copies (which may contain > alterations) > subsequently transmitted from the Company, are confidential > and solely for > the use of the intended recipient. If you are not the > intended recipient > or the person responsible for delivering to the intended > recipient, be > advised that you have received this email in error and that > any use is > strictly prohibited. > > ************************************************************** > ************ > > -- > 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] >
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 = fopen( "$in", "r" ); results in: [09-Mar-2001 04:17:10] PHP Warning: fopen("php://4","r") - Inappropriate ioctl for device in... I noticed: "posix_mkfifo - Create a fifo special file (a named pipe)" Is this what I want (once it is written)? Or is there something that can already do this? Here is my PHP script for reference (if you get worried about the top couple lines being executed don't be - they do execute properly, vgetty runs this shell script which spawns a "vm shell" which executes php with $0 which finally runs the php script - everything appears to be running just fine other than pipes): #!/usr/bin/vm shell exec /usr/bin/php -q $0 #!/usr/bin/php4 -q <?php //#! /usr/bin/vm shell //exec /usr/bin/php -q $0 // make use binary fread compatible... set_magic_quotes_runtime(0); function voice_receive( $fd_in, $fd_log ) { $line = fread( $fd_in, 10000 ); trim( $line ); fwrite( "VM: $line\n", $fd_log ); return $line; } function voice_send( $fd_out, $output, $fd_log ) { fwrite( "VM: $input\n", $fd_log ); fwrite( $fd_out, $output . "\n" ); } $in = "php://" . getenv( "VOICE_INPUT" ); $out = "php://" . getenv( "VOICE_OUTPUT" ); $fd_in = fopen( "$in", "r" ); $fd_out = fopen( "$out", "w" ); #$fd_in = fopen( "php://stdin", "r" ); #$fd_out = fopen( "php://stdout", "w" ); $fd_cid = fopen( "/tmp/cid.log", "a" ); $fd_log = fopen( "/tmp/vm.log", "a" ); $vm_pid = getenv( "VOICE_PID" ); voice_send( $fd_out, "HELLO VOICE PROGRAM", $fd_log ); $answer = voice_receive( $fd_in, $fd_log ); $name = getenv( "CALLER_NAME" ); $number = getenv ( "CALLER_ID" ); $tmp = "voice input: " . getenv( "VOICE_INPUT" ) . "\n"; $tmp .= "voice output: " . getenv( "VOICE_OUTPUT" ) . "\n"; $tmp .= "answer: " . $answer . "\n"; fwrite( $fd_log, $tmp . "\n" ); fwrite( $fd_cid, $number . "\n" ); fclose( $fd_in ); fclose( $fd_out ); fclose( $fd_cid ); fclose( $fd_log ); ?> Please CC me on replies if possible as I'm not on the lists due to moving mail servers around... I'll watch archives though of course :). Thanks! Cymen Vig [EMAIL PROTECTED]
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 = fopen( "$in", "r" ); results in: [09-Mar-2001 04:17:10] PHP Warning: fopen("php://4","r") - Inappropriate ioctl for device in... I noticed: "posix_mkfifo - Create a fifo special file (a named pipe)" Is this what I want (once it is written)? Or is there something that can already do this? Here is my PHP script for reference (if you get worried about the top couple lines being executed don't be - they do execute properly, vgetty runs this shell script which spawns a "vm shell" which executes php with $0 which finally runs the php script - everything appears to be running just fine other than pipes): #!/usr/bin/vm shell exec /usr/bin/php -q $0 #!/usr/bin/php4 -q <?php //#! /usr/bin/vm shell //exec /usr/bin/php -q $0 // make use binary fread compatible... set_magic_quotes_runtime(0); function voice_receive( $fd_in, $fd_log ) { $line = fread( $fd_in, 10000 ); trim( $line ); fwrite( "VM: $line\n", $fd_log ); return $line; } function voice_send( $fd_out, $output, $fd_log ) { fwrite( "VM: $input\n", $fd_log ); fwrite( $fd_out, $output . "\n" ); } $in = "php://" . getenv( "VOICE_INPUT" ); $out = "php://" . getenv( "VOICE_OUTPUT" ); $fd_in = fopen( "$in", "r" ); $fd_out = fopen( "$out", "w" ); #$fd_in = fopen( "php://stdin", "r" ); #$fd_out = fopen( "php://stdout", "w" ); $fd_cid = fopen( "/tmp/cid.log", "a" ); $fd_log = fopen( "/tmp/vm.log", "a" ); $vm_pid = getenv( "VOICE_PID" ); voice_send( $fd_out, "HELLO VOICE PROGRAM", $fd_log ); $answer = voice_receive( $fd_in, $fd_log ); $name = getenv( "CALLER_NAME" ); $number = getenv ( "CALLER_ID" ); $tmp = "voice input: " . getenv( "VOICE_INPUT" ) . "\n"; $tmp .= "voice output: " . getenv( "VOICE_OUTPUT" ) . "\n"; $tmp .= "answer: " . $answer . "\n"; fwrite( $fd_log, $tmp . "\n" ); fwrite( $fd_cid, $number . "\n" ); fclose( $fd_in ); fclose( $fd_out ); fclose( $fd_cid ); fclose( $fd_log ); ?> Please CC me on replies if possible as I'm not on the lists due to moving mail servers around... I'll watch archives though of course :). Thanks! Cymen Vig [EMAIL PROTECTED]
this is the 5th request "UNSUSCRIBE ME"
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 5th request "UNSUSCRIBE ME"
-----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 Jørgensen
Are there any problems calling DB2's stored procedures from PHP once the connection to is set up? -- Grüße aus dem schönen Kleve Jens Kisters rosomm et partner Agentur für neue Medien GmbH Dienstleistungszentrum am Weißen Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau Telefon: 02821 - 97856-20 Telefax: 02821 - 97856-77 [EMAIL PROTECTED] http://www.rosomm-partner.de
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 "Loaded Modules" of phpinfo(), as well as an entry under imap of; IMAP Support enabled IMAP c-Client Version 4.1 Can anyone shed some light on this for me? Kevin Cawthorne
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 works fine. thanks!! daniele
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 up to 60MB, and this memory stays in use vene after the script is finished. Do I need to free up the memory??? Can I do that, would it be better to run this from command line and have the process quit after it finished the job, and how do you pass arguments to a PHP script on the command line (like ?pid=6&name=blah)??? -- Thierry Coopman - [EMAIL PROTECTED] My opinions are personal, and have really nothing or nothing to do with Keytrade! Democracy: Three wolves and one sheep voting on what to have for supper.