[PHP] COM

2002-01-11 Thread DrouetL
Hi everybody, When i run the following script in a dos box it works fine. If i run it in a browser window i receive a Dr Watson. Anybody has an idea ? My config is Apache 1.3.20 PHP 4.0.5 Windows NT4 SP5 French The script is inspired of the following url

Re: [PHP] New to list

2002-01-11 Thread hugh danaher
try $total=((0.416 / $time) * 60) * 60); $output=number_format($total,2,'.',','); / / uses comma separators between thousands and a decimal point between the units and tenths. or $output=number_format(((0.416 / $time) * 60) * 60),2,'.',','); / / php is usually forgiving on combined operations.

[PHP] php executing system commands..

2002-01-11 Thread louie miranda
Hi, can php execute system commands like df, and then print it to html ? thanks, louie -- 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] Re: Redeclaring functions

2002-01-11 Thread Martin Wickman
Arve Bersvendsen wrote: As a small, personal, enjoy-myself-project I'd like to run a perpetual-running socket server. Problem is; I also want it to be self-modifying so I can insert, remove and change functions as the server is running. The problem is; under normal circumstances, PHP

[PHP] Re: Specific References Incident

2002-01-11 Thread Martin Wickman
Ken Kinder wrote: The $this-children attribute should be an array of (references to) objects. I think somehow in the foreach ($this-children as $child) the objects are being copied, as $child-validate(); seems not to effect the original objects. Someone just said you can use $a = $b to

[PHP] eregi and alfa numeric characters.

2002-01-11 Thread Sait Karalar
Hi all, I want a regular expression process such that, no characters except for the followings will not be allowed. 0-9 a-z A-Z ~ @ # $ % ( ) _ - + = [ ] { } ? I create a web site with membership. I have a problem. Some body uses

[PHP] Re: php executing system commands..

2002-01-11 Thread Martin Wickman
Louie Miranda wrote: Hi, can php execute system commands like df, and then print it to html ? `df`; shell (df); exec (df); etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] How to get a function backtrace?

2002-01-11 Thread Stefan Rusterholz
Im not sure if function-backtrace is the correct word for what I need, so I'll explain: If I have for example ? a(); function a(){ b(); } function b(){ c(); } function c(){ $x = function_backtrace(); print_r($x); } ? then I want to

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Thank you Michel You;ve understand correct the question. Thank you for the removing new keyword Everything you've said is exact but using following snippet $b = array('one' = 'bla', 'two' = 'blabla', 'three' = 'blablabla'); while(list($k, $v) = each($b)) { print $k - $v; } the

Re: RE: [PHP] HTTP_X_FORWARDED_FOR?

2002-01-11 Thread TD - Sales International Holland B.V.
On Thursday 10 January 2002 19:36, [EMAIL PROTECTED] stuffed this into my mailbox: Please note that not all proxies will fill in HTTP_X_FORWARDED_FOR. Some will obscure it others will not fill it in at all, either due to privacy or to conseal things. Okay, thanks. 'Cause I mean, the

[PHP] SUMMARY: Seg fault when using SNMP on Redhat 7.x

2002-01-11 Thread Richard Ellerbrock
I have been having problems with Segmentation faults when using SNMP with PHP. This used to work just fine on my Redhat 6.2 box. Appears that the problem is related to the way the standard Redhat 7.x ucd-snmp RPM is built. Rebuilding the RPM using the latest software obtained from

RE: [PHP] quick question

2002-01-11 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 10 January 2002 15:44 I thought that $_GET[] and $_POST[] could be used in place of regular variables... that is, $sql = SELECT * FROM tablename WHERE tablename.column=$_GET['criteria_integer']; but

RE: [PHP] A variable with a variable

2002-01-11 Thread Ford, Mike [LSS]
-Original Message- From: Yoed [mailto:[EMAIL PROTECTED]] Sent: 10 January 2002 23:01 I never really found the trick to this one yet, and wanted to see what you guys say is the best methods to call a variable that needs a variable. Say I have variables called $Var_1_Stat,

Re: [PHP] Re: Parsing SAR output with PHP.

2002-01-11 Thread DL Neil
Or checkout the sql import facilities offered by your choice of database to 'convert' the data from log to db-tbl, then set up your analysis in PHP+SQL separately. =dn - Original Message - From: Martin Wickman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 11 January 2002 09:08 Subject:

[PHP] passing parameters from one page to another

2002-01-11 Thread Simos Varelakis
Hello everybody I want from a Form page to pass a couple of values (fooa, foob, fooc) which are not form fields when submit button pressed to the submited page... thanks in advance for your help simos

[PHP] xml dom support

2002-01-11 Thread Sandeep Murphy
hi, I am running PHPtriad on a win2k machine... when I run phpinfo() it displays XMLACTIVE but I keep getting an error Fatal error: Call to undefined function: xmldoc() in C:\apache\htdocs\example.php on line 24 What needs to installed/configured ?? TIA, sandeep -- PHP General

Re: [PHP] passing parameters from one page to another

2002-01-11 Thread val petruchek
I want from a Form page to pass a couple of values (fooa, foob, fooc) which are not form fields when submit button pressed to the submited page... Use hidden fields: input type=hidden name=fooa value='value_of_fooa' input type=hidden name=foob value='value_of_foob' input type=hidden

[PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
Hi there guys, Who's awake today then? :) What I'm trying to do is create variable variable arrays and then fill these arrays with values. The problem I have though is that the values don't appear to be getting stored - as following the assignment I have outputted a 'sizeof' command which always

Re: [PHP] passing parameters from one page to another

2002-01-11 Thread Sait Karalar
Hi, If you want some parameters which will be pass in your site, you can use "session" . for example, you have parameters, fooa, foob, fooc, ... etc.. ? session_start(); $fooa = 1; $foob = "sait"; $fooc =

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Jason Wong
On Friday 11 January 2002 20:02, Neil Freeman wrote: Hi there guys, Who's awake today then? :) Someone isn't :) Here's a snippet of the code. Any ideas guys??? ... //store children page_IDs into array for each parent $str_array = menu_array_ . $current_parent_page_ID;

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
That's done the trick. More coffee for me I think :) Cheers Jason. Jason Wong wrote: On Friday 11 January 2002 20:02, Neil Freeman wrote: Hi there guys, Who's awake today then? :) Someone isn't :) Here's a snippet of the code. Any ideas guys??? ... //store children

RE: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Ford, Mike [LSS]
-Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: 11 January 2002 12:03 Who's awake today then? :) What I'm trying to do is create variable variable arrays and then fill these arrays with values. The problem I have though is that the values don't appear to be

[PHP] Php and PDF files...

2002-01-11 Thread Sait Karalar
Hi, I want to change a PDF file into the HTML, DOC, TXT... All programs that I used is not enogh to create a good document... - HTML output is not clear enough like original PDF OR - Images inside the PDF document has been

Re: [PHP] xml dom support

2002-01-11 Thread Henning Sprang
Sandeep Murphy wrote: hi, I am running PHPtriad on a win2k machine... when I run phpinfo() it displays XMLACTIVE this means that the standart, expat based xml support ist active but I keep getting an error Fatal error: Call to undefined function: xmldoc() in

[PHP] session related

2002-01-11 Thread Mark Chin, Apoll Displays
i can't use session, give me an error when use ie 6. Warning: Cannot send session cookie - headers already sent by (output started at /home/www.apollodisplays.com/public_html/mainpage.php:10) in /home/www.apollodisplays.com/public_html/mainpage.php on line 29 Warning: Cannot send session

Re: [PHP] session related

2002-01-11 Thread Andrey Hristov
Probably 1)You do echo before session_start() 2)You have white space before the opening ?php tag The problem is in that that the server had sent some output to the browser and after that you want to sent a header - the session cookie. No output must appear before all headers are sent. You can

Re: [PHP] php executing system commands..

2002-01-11 Thread mike cullerton
on 1/11/02 1:35 AM, louie miranda at [EMAIL PROTECTED] wrote: Hi, can php execute system commands like df, and then print it to html ? http://www.php.net/manual/en/ref.exec.php -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] RTFM code snippet

2002-01-11 Thread mike cullerton
hey folks, hope the new year is treating everyone well. i was RTFMing yesterday and ran across this piece of code while (false !== ($file = readdir($handle))) { which is similar to stuff i've done while ($file = readdir($dir)) { so, what am i not catching with my code, and what is really

Re: [PHP] RTFM code snippet

2002-01-11 Thread Andrey Hristov
I'm not sure if a resource casted to numeric to be 0 - var_dump() to say :(0) resource of type !==flase assures that it is FALSE, not 0. !== is like != but makes type checking. Frequently used with strpos(). See the memos there. There is also available === operator. It is like == but also

[PHP] Re: [PHP-DEV] [PHP] Strange Java Extension Problem (fwd)

2002-01-11 Thread Xavier Noguer
Also, the value I set in the ini file for java.library is changed from libjvm.so to libjava.so. Is this suppose to happen? I was guessing as to what library I should use here, but the error I am getting indicates that it can't start the jvm, so this has me worried to. Which library is the correct

RE: [PHP] php executing system commands..

2002-01-11 Thread Matt Friedman
Try the backtick too. print pre . `ls -l` /pre; Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Friday January 11, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] Compiled PHP

2002-01-11 Thread charlesk
Are there any php compilers available for win32? Can they compile to byte code that the processor like C uses, instead of an interpreter? Charles Killmer IIS 5.0, Windows 2000 Server, PHP 4.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Compiled PHP

2002-01-11 Thread Andrey Hristov
Several months ago there were notes on few websites about phpcompiler. AFAIK it is not so good but it is something. Last week a man on php-dev said that he starts working on new php compiler but with different approach - to connect in one thing - php4ts.dll, php.exe, and the source code

[PHP] Re: Redeclaring functions

2002-01-11 Thread Arve Bersvendsen
Martin Wickman wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: I dont know what a perpetual-running socket server is, but to have a main PHP script execute different functions with the same name I guess I'm thinking about a server that can keep it's connection up running, even if I

Re: [PHP] Compiled PHP

2002-01-11 Thread Henning Sprang
Andrey Hristov wrote: Several months ago there were notes on few websites about phpcompiler. AFAIK it is not so good but it is something. Last week a man on php-dev said that he starts working on new php compiler but with different approach - to connect in one thing - php4ts.dll,

Re: [PHP] Compiled PHP

2002-01-11 Thread Andrey Hristov
I think that he uses bytecode wrongly. C is not generating a bytecode but asm instead, then translated to machine code. Bytecode is another thing. Java is bytecoded. IMO that the question is : Is there any tool which generates machine code as the C compiler does? AFAIK the encoder first

Re: [PHP] Can PHP access BIOS information?

2002-01-11 Thread Austin Gonyou
It might be possible with php of you could write a function that access lm_sensor type info. Just a thought. On Fri, 2002-01-11 at 00:03, Jason Bell wrote: as far as I know, PHP can't do that itself, however. if you had a commandline utility that did the BIOS read for you, you should be

[PHP] Using PHP to post the contents of an email to MySql database

2002-01-11 Thread Mullin, Reginald
Hi Guys, I recently read an email entitled Can a PHP program receive an e-mail and write it to a file??? in the PHP archives (see http://marc.theaimsgroup.com/?l=php-generalm=97986044121868w=2) and wanted to ask a follow up question. I'm a novice programmer, new to PHP, and unfamiliar with the

[PHP] removing an array element

2002-01-11 Thread Erik Price
A quick question: what function is used to remove an array element from an array? Like array_pop(), except one by which I can refer to the element by its associative index rather than just the last element of the array. For more detail with what I'm doing, I have two versions of a select

php-general Digest 11 Jan 2002 17:21:42 -0000 Issue 1105

2002-01-11 Thread php-general-digest-help
php-general Digest 11 Jan 2002 17:21:42 - Issue 1105 Topics (messages 80161 through 80213): Re: Can PHP access BIOS information? 80161 by: Jason Bell 80211 by: Austin Gonyou Re: Piping phpinfo(); 80162 by: Rasmus Lerdorf 80166 by: Vaccius ITsec

Re: [PHP] Using PHP to post the contents of an email to MySql database

2002-01-11 Thread [EMAIL PROTECTED]
on linux, you could simply open these 'files': /dev/stdin /dev/stdout for windows, and for portability, PHP provides the following dummy's, which can also simply be used by fopen() : php://stdin php://stdout bvr. On Fri, 11 Jan 2002 12:19:05 -0500, Mullin, Reginald wrote: Hi Guys, I

[PHP] Paging using arrays Question

2002-01-11 Thread Lerp
Hi there, I have a db with only one table in it called CONSULTANT. I'm using sqlServer and would like to do record paging, say 5 at a time. I'm aware that sqlServer doesn't support the LIMIT statement so I've decided to do it using arrays. So I've written the appropriate query statement, managed

Re: [PHP] removing an array element

2002-01-11 Thread Rasmus Lerdorf
what function is used to remove an array element from an array? Like array_pop(), except one by which I can refer to the element by its associative index rather than just the last element of the array. unset($array['index']); echo select name=\home_div_id\\n; echo option

[PHP] IMPORTANT about asking QUESTIONS

2002-01-11 Thread [EMAIL PROTECTED]
It happens a lot here that people ask questions that could easily be found by browsing the manual or searching the PHP FAQ and website. Some people really should read the FAQ and manual (php.net) when they have a question and preferrably search an archive of this list (deja.com). It really

Re: [PHP] removing an array element

2002-01-11 Thread Henning Sprang
Erik Price wrote: what function is used to remove an array element from an array? Like array_pop(), except one by which I can refer to the element by its associative index rather than just the last element of the array. For more detail with what I'm doing, I have two versions of a

Re: [PHP] IMPORTANT about asking QUESTIONS

2002-01-11 Thread Jason Wong
On Saturday 12 January 2002 01:49, [EMAIL PROTECTED] wrote: It happens a lot here that people ask questions that could easily be found by browsing the manual or searching the PHP FAQ and website. Some people really should read the FAQ and manual (php.net) when they have a question and

RE: [PHP] quick question

2002-01-11 Thread Philip Olson
$sql = SELECT * FROM tablename WHERE tablename.column=$_GET['criteria_integer']; but unfortunately, this isn't working. On a related note, outside of strings one should always surround keys with quotes, so: $arr = array('a' = 'apple', 'b' = 'banana'); print $arr['a']; // apple

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field

Re: [PHP] Q: Array

2002-01-11 Thread Ivo Stoykov
Hi again Michael: Digging documentation I found out that this behaviour (string and int keys) is native for mysql_fetch_arrow() (found into the help: 'In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field

[PHP] principiante(beginer)

2002-01-11 Thread vania
quiero conectarme con un servidor sql server 2000 y hasta ahora no he podido. lo intentado con la funcion mssql_connect(server name, user name, contraseña) y en el browser recibo el siguiente mensaje Fatal error: Call to undefined function: mssql_connect() in

Re: [PHP] principiante(beginer)

2002-01-11 Thread Nicolas Costes
Hola !!! Tienes que ins oh, sorry. ;-)) You need to install MsSQL support for PHP, by getting the right PHP module and adding it in your 'php.ini' file see this file for the exact syntax. Hasta la vista ... Le Vendredi 11 Janvier 2002 19:14, vania a écrit : quiero conectarme con un

Re: [PHP] Newbie - PHP MySQL

2002-01-11 Thread Henning Sprang
Ben Clumeck wrote: When using MySQL to Authenticate users for a specific directory (i.e. www.mysite.com/user) how would it know to go to that directory (/user). How would it know to not let someone access a file directory in that directory (i.e. www.mysite.com/user/page2.php)? this

[PHP] both work? (was Re: [PHP] quick question)

2002-01-11 Thread Erik Price
On Friday, January 11, 2002, at 06:05 AM, Ford, Mike [LSS] wrote: Incidentally, I've occasionally had problems including a variable name containing an underscore in a double-quoted string (e.g. $num_recs records retrieved), where PHP tries to insert the value of $num followed by the

[PHP] memory error

2002-01-11 Thread Thomas Holton
Hi I built PHP on an ALPHA running OSF V5.1 I did the install after the make just like i did in the past. This time, however, when i do: apachectl start i get this: /usr/local/apache/bin/apachectl: 323331 Memory fault /usr/local/apache/bin/apachectl start: httpd could not be started There are

Re: [PHP] me and my CRON JOB

2002-01-11 Thread J Smith
Quick tip -- locate and whereis are your friends in the shell. They make finding executables like php are a snap. As for emailing from php/cron, it depends on how your system is set up. Many email servers bounce any emails they receive from IPs that they can't reverse map or otherwise

[PHP] PHP4.1.1 + RH7.2 + UCD-Snmp

2002-01-11 Thread Antonio S. Martins Jr.
Hi Everybody, Has anyone doing it sucefuly? I can compile it. The phpinfo(); call returns ok! (UCD-Snmp enable) but when I call the snmp functions I got a SegFault (on PHP-CGI). I already tried with an without --enable-ucd-snmp-hack, and recompiling the UCD-Snmp packages as told on the PHP

[PHP] PHP Sessions and SSL

2002-01-11 Thread Richard Hilton
Hi, I am currently developing a site which makes use of SSL and sessions. However, sometimes when I submit form data (from an SSL page to another SSL page on the same server), I get an error saying This page contains both secure and unsecure items. Do you want to display the nonsecure items (I

FW: [PHP] Using PHP to post the contents of an email to MySql database

2002-01-11 Thread Mullin, Reginald
Hi Guys, I've written the following program to write an email from PHP Standard Input to an html file: ** *** ?php $file = php://stdin; $fp = @fopen($file,rb); if ($fp){ $contents =

Re: [PHP] Cannot load: iconv_module_entry

2002-01-11 Thread Brian Williams
Well, I did not configure it any particular way. I just tried to build the mod_php4 port on FreeBSD. I assumed it would work. Why would the FreeBSD port developers commit something to the stable release that doesn't work? Thanks, Brian Brian Clark [EMAIL PROTECTED] wrote in message

[PHP] Using a HTML button

2002-01-11 Thread Morten Nielsen
Hi, I am rather new to PHP so I hope somebody can help me. I have a normal button (HTML code). Then I have made a function function multiply($X) { return 2*$X; } The button has an OnClick, which calls my function. INPUT TYPE=BUTTON name=HH value=Mul onClick=? $XX=multiply(5);? I then

Re: [PHP] Cannot load: iconv_module_entry

2002-01-11 Thread Brian Williams
So you configured PHP --with-iconv? My guess is that you'll need to include the path to your libraries for iconv in /etc/ld,so.conf then run ldconfig. I do not have /etc/ld.so.conf on my system, but I do have /usr/compat/linux/etc/ld.so.conf Thanks, Brian -- PHP General Mailing List

[PHP] Re: Using a HTML button

2002-01-11 Thread J Smith
PHP is a server-side language (i.e. Perl when used with mod_perl), not a client-side language (i.e. JavaScript). All of the processing is done on the server BEFORE it is sent to the user. Therefore, you can't call a PHP function directly from a web page after the user has received it, since

Re: [PHP] Using a HTML button

2002-01-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 11-01-02 at 22:48 * Morten Nielsen said Hi, I am rather new to PHP so I hope somebody can help me. I have a normal button (HTML code). Then I have made a function function multiply($X) { return 2*$X; } The button has

Re: [PHP] Re: Using a HTML button

2002-01-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 11-01-02 at 22:57 * J Smith said PHP is a server-side language (i.e. Perl when used with mod_perl), not a client-side language (i.e. JavaScript). All of the processing is done on the server BEFORE it is sent to the user. Therefore,

[PHP] using mysql_query() twice?

2002-01-11 Thread Erik Price
I am curious if using the same mysql_query() function twice causes some kind of problem. It seems that if I use $result = mysql_query($sql, $db); if (mysql_fetch_array($result)) { while ($row = mysql_fetch_array($result) or die(You lose. No data fetched.)) { // print some data

Re: [PHP] Re: IMPORTANT about asking QUESTIONS

2002-01-11 Thread Richard S. Crawford
Many people use mail clients that don't do any sort of threading to follow what's going on on this list; I use Eudora, personally, when in Windows, and the Mozilla mail client when I'm in Linux. It was, quite literally, years before someone finally pointed out to me that in a mail reader or a

[PHP] Fixed! Re: [PHP] headers showing up in browser

2002-01-11 Thread Mark
After lots of trial and error I traced the problem back to a missing browscap.ini, I commented out that line in php.ini and it worked fine. I guess it was causing php to think the it wasn't dealing with a browser so it sent the headers differently (or something) thanks to everyone. - Mark --

Re: [PHP] quick question

2002-01-11 Thread Erik Price
It seems that you are saying that not using quotes is bad (first), but then later you show that omitting the quotes does not result in an error. Or are you saying that the quotes can be omitted if the array element is being used in a string (between quotes), but generally the quotes around the

Re: [PHP] Using a HTML button

2002-01-11 Thread Richard S. Crawford
PHP is entirely server-based. So when you load this page into your browser, all of the PHP is being parsed BEFORE it ever loads into the browser. So the function will be executed even before the page loads. Do it in JavaScript if you want it to be done in the browser. What you have written

Re: [PHP] Cannot load: iconv_module_entry

2002-01-11 Thread Brian Clark
* Brian Williams ([EMAIL PROTECTED]) [Jan 11. 2002 16:46]: So you configured PHP --with-iconv? My guess is that you'll need to include the path to your libraries for iconv in /etc/ld,so.conf then run ldconfig. I do not have /etc/ld.so.conf on my system, but I do have

[PHP] Sessions and SSL

2002-01-11 Thread Richard Hilton
Hi, I am currently developing a site which makes use of SSL and sessions. However, sometimes when I submit form data (from an SSL page to another SSL page on the same server), I get an error saying This page contains both secure and unsecure items. Do you want to display the nonsecure items (I

Re: [PHP] using mysql_query() twice?

2002-01-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 11-01-02 at 23:08 * Erik Price said I am curious if using the same mysql_query() function twice causes some kind of problem. It seems that if I use $result = mysql_query($sql, $db); if (mysql_fetch_array($result)) { while

Re: [PHP] using mysql_query() twice?

2002-01-11 Thread Erik Price
EXCELLENT! It worked perfect. So $result can't be used twice -- I wonder if it somehow is altered by the mysql_fetch_array() that is performed upon it. Thanks Nick. On Friday, January 11, 2002, at 05:23 PM, Nick Wilson wrote: I'll most likely be corrected (I just joined the list to brush

Re: [PHP] removing an array element

2002-01-11 Thread Erik Price
Because, as a dope, I forget that you can invert IF statements like that -- you're right, I'd rather do that than mess with the array. Although the feedback on unset($arrayname['index']) was extremely useful knowledge! Thank you everyone. Erik On Friday, January 11, 2002, at 12:31 PM,

Re: [PHP] using mysql_query() twice?

2002-01-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 11-01-02 at 23:39 * Erik Price said EXCELLENT! It worked perfect. So $result can't be used twice -- I wonder if it somehow is altered by the mysql_fetch_array() that is performed upon it. That's not it. Your first $result is a

Re: [PHP] using mysql_query() twice?

2002-01-11 Thread Erik Price
On Friday, January 11, 2002, at 05:42 PM, Nick Wilson wrote: That's not it. Your first $result is a resource indicator (container for results) so if you re-assign it (put another value into it) it becomes useless as your while statement depends on it. (This may be redundant, but I'm hoping

[PHP] Upload - Link generator?

2002-01-11 Thread ArtistHotel
I am looking for a php script that allows me to upload a file via a browser, and the generates an automatic link on a predefined page. Is that possible? Regards [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] POSTing files

2002-01-11 Thread Alan McFarlane
This is probably more of an HTML question, but... I would like to have the ability to upload files onto a site, however using the normal HTML input type=file... results in a somewhat disgusting looking control which I cannot seem to get to fit into my site's theme. Is there a better way -

[PHP] Matching phrases in search engine

2002-01-11 Thread José Ignacio Franqueiro
Hi. I´m trying to develop a search engine where users could search not only individual words, but also phrases enclosed by , but I´m having trouble to build the function to recognize each phrase and individual word from a variable sent with html form. Did anybody make something like this? Can

[PHP] Newbie looking for mentor

2002-01-11 Thread P. Westover
Hi, It all started when I wanted to create a photography competition and forum on my web site. I searched and searched for a program (script) on the web that would help me. I found one and paid $125.00 for it, but I am very unhappy with the way it works. It is not very user friendly and I'm

[PHP] PHP question regarding Cold Fusion

2002-01-11 Thread Jeremy Reed
Cold Fusion, as far as I'm concerned, stinks. However, I have been involved in porting a website from Cold Fusion to PHP and during this transmogrification, I've come across something I'm not sure how to emulate in PHP. Perhaps if there are any CF/PHP gurus out there, they can help me out. The

Re: [PHP] PHP question regarding Cold Fusion

2002-01-11 Thread Rasmus Lerdorf
Google for something called PostToHost I wrote ages ago. Lots of variations of that around. Basically you just fsockopen() to the site in question and fputs() your request and POST data and then fgets() the result. -Rasmus On Fri, 11 Jan 2002, Jeremy Reed wrote: Cold Fusion, as far as I'm

[PHP] preg_replace help

2002-01-11 Thread Gaylen Fraley
I have need to be able to replace text within a string to turn it into a link. In other words, I might have a phrase lik: blah, blah, blah, please visit my site at www.mysite.com. blah, blah,blah. I need to have the string converted to blah, blah, blah, please visit my site at

[PHP] ENUM COL to php

2002-01-11 Thread Mehmet Kamil ERISEN
Hi, If I have en ENUM column in a mysql table, can I leverage this through PHP to restrict user entry with a list? Other option that I have is to create a lookup table, or use an array. = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!?

[PHP] ask cookies

2002-01-11 Thread gendeng
how to set cookies in win98 using PWS ? if i set the session of php.ini, where is the cookies setting ? Mpu Strees -- 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

Re: [PHP] preg_replace help

2002-01-11 Thread mike cullerton
on 1/11/02 8:20 PM, Gaylen Fraley at [EMAIL PROTECTED] wrote: Can someone recommend a good tutorial or book on this subject? Mastering Regular Expressions Jeffrey Friedl O'Reilly Associates ISBN 1-56592-257-3 -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] ENUM COL to php

2002-01-11 Thread Jason Wong
On Saturday 12 January 2002 11:30, Mehmet Kamil ERISEN wrote: Hi, If I have en ENUM column in a mysql table, can I leverage this through PHP to restrict user entry with a list? Other option that I have is to create a lookup table, or use an array. You'll need to adapt this for your own use,

Re: [PHP] Using a HTML button

2002-01-11 Thread sundogcurt
JAVASCRIPT VERSION html head titlemytitle/title script language=JavaScript type=text/javascript function multiply(x){ var myresult = 2 * x; document.write(myresult); } /script /head body form name=myform action=?$PHP_SELF? method=POST input type=button

php-general Digest 12 Jan 2002 05:57:48 -0000 Issue 1106

2002-01-11 Thread php-general-digest-help
php-general Digest 12 Jan 2002 05:57:48 - Issue 1106 Topics (messages 80214 through 80265): Re: Using PHP to post the contents of an email to MySql database 80214 by: bvr.xs4all.nl 80235 by: Mullin, Reginald Paging using arrays Question 80215 by: Lerp Re: removing

[PHP] two mysql issues :)

2002-01-11 Thread Mehmet Kamil ERISEN
Hi All, I am in sql mode today. Two issues that bother me: 1- I had a script select user_id, username from users having user_id = max(user_id) my max user_id = 150 or something, but script kept bringing 122 I fixed the issue by using a select max(user_id) and select username from users

Re: [PHP] preg_replace help

2002-01-11 Thread Jimmy
Hi Gaylen, Please visit my web site at a href=http://www.mysite.comwww.mysite.com/a. You will be glad you did! assumming all link start with www and all word which start with www must be a link: $repLink = preg_replace(/ (www[^ ]*) /i, a href='http://\\1'\\1/a,

[PHP] Re: Newbie looking for mentor

2002-01-11 Thread P. Westover
Hi All, Thank you very much for all the responses to my SOS. Yoda has made contact. P. Westover P. Westover [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, It all started when I wanted to create a photography competition and forum on my web site. I

Re: [PHP] PHP question regarding Cold Fusion

2002-01-11 Thread Philip Olson
On Fri, 11 Jan 2002, Rasmus Lerdorf wrote: Google for something called PostToHost I wrote ages ago. Lots of variations of that around. Basically you just fsockopen() to the site in question and fputs() your request and POST data and then fgets() the result. With one variation being

[PHP] name and value tags in a form

2002-01-11 Thread Kunal Jhunjhunwala
Hey, Is there any way one can get the name tags for a form?? other then explicitly defining the tags in an array or any such thing. I just want to be able to get the name tags and there values dynamically... Regards, Kunal Jhunjhunwala -- PHP General Mailing List (http://www.php.net/) To