[PHP] Problem regarding select boxes

2001-09-11 Thread Balaji Ankem
Hi! friend, I had one html form . In that i had 5 inputs. First option is a select box. If the selected item is Mobile then only i want to display second and third input boxes. Otherwise i want to hide those two options. How can i endure that? Please give the solution to this

Re: [PHP] Call to undefined function problem

2001-09-11 Thread Andrey Hristov
if (!define(__FUNCTIONS__) ) must be: if (!defined(__FUNCTIONS__) ) Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Doug Farmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 6:50 AM Subject: [PHP]

[PHP] JavaScript MD5()

2001-09-11 Thread nicolas costes
Hellorgh, all !!! Does anyone knows if there is a way to MD5-encode strings with JavaScript ? I use MD5() to encode passwords then insert them in my account database, and when a user logs in, i do MD5($password_provided_by_form) to compare it with the one stored in the DB. Ok, fine, I cannot see

Re: [PHP] IE and '404 not found' custom script

2001-09-11 Thread nayco
I use an HTML file like this : html head - title ... body img src=my_picture_of_a_404_peugeot.jpg !-- then, here comes the way i found to grow the file's size : 512+ bytes of invisible text... / / -- /body /html I think headers are not counted by the browser in the total size

Re: [PHP] locking a mysQL row

2001-09-11 Thread nayco
Try to insert in your 'locked' field an Unix date instead of 'locked' . One field, two effects (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent:

[PHP] Weird PHP problem...Example code...

2001-09-11 Thread Dana Holt
Ok, this code is used on the index page of on of my sites. It prints out a list of links from a database. I am using PHP sessions. When I open a new browser and go the site for the first time the HTML that is output by my code is not correct. This is only on SOME of the lines, but it is always

Re: [PHP] Problem regarding select boxes

2001-09-11 Thread nayco
Try something like script language=JavaScript if (inv_name.value=='mobile') { inv_imei.style.visibility=visible; . based on CSS and JS !!! but this is VERY fast written and may only work on IE, not NS . (°-Nayco, //\[EMAIL PROTECTED] v_/_

[PHP] Re: JavaScript MD5()

2001-09-11 Thread Arve Bersvendsen
Nicolas Costes wrote in 00fd01c13a94$e3329b80$0100a8c0@p2333:">news:00fd01c13a94$e3329b80$0100a8c0@p2333: Hellorgh, all !!! Does anyone knows if there is a way to MD5-encode strings with JavaScript ? The algorithm is described in RFC 1321. URL:http://www.ietf.org/rfc/rfc1321.txt I use

[PHP] Re: Problem regarding select boxes

2001-09-11 Thread _lallous
IT's something like that friend, html head title New Document /title /head body onload=hidelb(); script language=JavaScript !-- function hidelb() { o = document.all[lb1]; if (test.phone.selectedIndex==1) o.style.display = none; else o.style.display = ; } //--

[PHP] Re: NT?

2001-09-11 Thread _lallous
it works fine under 2000 Pro +IIS5 Jeremy Morano [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Sorry to bother everyone. I was just wondering if php runs on NT? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Re: JavaScript MD5()

2001-09-11 Thread nayco
thanx... yeah, I forgot that the problem is not what the sniffer sees, the problem is : how can i do to prevent him from seeing anything Is SSL difficult to use in PHP ??? Can someone shortly explain it to me ??? (°-Nayco, //\[EMAIL PROTECTED] v_/_

[PHP] Problem regarding select boxes

2001-09-11 Thread Balaji Ankem
Hi! friend, I had one html form . In that i had 5 inputs. First input is a select box. If the selected item in first input is Mobile then only i want to display second andthird input boxes. Otherwise i want to hide those two options.How can i endure that?Please give the solution to this

Re: [PHP] Problem regarding select boxes

2001-09-11 Thread David Robley
On Tue, 11 Sep 2001 17:35, Balaji Ankem wrote: Hi! friend, I had one html form . In that i had 5 inputs. First input is a select box. If the selected item in first input is Mobile then only i want to display second and third input boxes. Otherwise i want to hide those two

[PHP] Re: Weird PHP problem...Example code...

2001-09-11 Thread _lallous
Yes, I see this problem before, There was a setting that you turn on/off in the php.ini file..forgot which one.. maybe these: ; use transient sid support if enabled by compiling with --enable-trans-sid. session.use_trans_sid = 1 url_rewriter.tags =

[PHP] Re: JavaScript MD5()

2001-09-11 Thread Arve Bersvendsen
Arve Bersvendsen wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: The algorithm is described in RFC 1321. URL:http://www.ietf.org/rfc/rfc1321.txt BTW: I found a Javascript-implementation of MD5. URL:http://pajhome.org.uk/crypt/md5/md5src.html -- Arve «The pessimist sees

[PHP] Executing graphical application (linux)

2001-09-11 Thread Chris Lambert
Is it possible to execute a graphical application using exec() or one of the related commands? I have tried running it directly and from an external script but neither work. Thanks, -- Chris Lambert [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Executing graphical application (linux)

2001-09-11 Thread nayco
have you tried with specifiing th e display to use something like EXEC (my_app --display 0:0) well this may be possible, everything is possible with a keyboard and many imagination ;~p (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr

[PHP] Wheres my cookie?

2001-09-11 Thread Randal Pitt
Hi All, I have a web application that uses .php and .jsp files, I use php sessions and normal cookies and I can get to these cookies from php no problem. The trouble starts when I try to get the cookie values from the .jsp files. The only cookie that is saved in the browser is the normal

Re: [PHP] Executing graphical application (linux)

2001-09-11 Thread Chris Lambert
[EMAIL PROTECTED] (Nayco) wrote in 017601c13a9d$f3614840$0100a8c0@p2333:">news:017601c13a9d$f3614840$0100a8c0@p2333: have you tried with specifiing th e display to use something like EXEC (my_app --display 0:0) well this may be possible, everything is possible with a

[PHP] stripslashes strips too much

2001-09-11 Thread Christian Haines
hi all, i am experiencing a bit of a problem with stripslashes stripping too much data. For example: it will strip abc's - abc has anyone else experienced this? is there a solution? many thanks in advance, christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] php apache server problem

2001-09-11 Thread itü
Hello php-general, Ive got a virtual hosted site at this site Ive got some php files which are taking images from database but tey stopped operating since a overloading of the server the code of the taking pictores are here. Is there anyone who has an idea. codes are like that

Re: [PHP] Executing graphical application (linux)

2001-09-11 Thread nayco
well, I don't know if that's possible . you're writting a local admin application with PHP (I mean, this script is used on the local machine, not through the network ???) I think there should have a way to get this to work (°-Nayco, //\[EMAIL PROTECTED]

Re: [PHP] stripslashes strips too much

2001-09-11 Thread nayco
I 've got the same problem on many scripts using mysql and forms ... it's hard to handle the ' character.. i'd like some advices too !!! (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: Christian Haines [EMAIL

[PHP] Re: JavaScript MD5()

2001-09-11 Thread _lallous
Yes, there is Md5() for javascript ;) http://pajhome.org.uk/crypt/md5/ I tried it and it works just fine! :) Nicolas Costes [EMAIL PROTECTED] wrote in message 00fd01c13a94$e3329b80$0100a8c0@p2333">news:00fd01c13a94$e3329b80$0100a8c0@p2333... Hellorgh, all !!! Does anyone knows if there is a

[PHP] variables

2001-09-11 Thread webgenie
Hello, Is it possible to transfer certain variables to a new scripts, but not doing this as uri-parameters (../bla.php?var1=varvar2=var#) I need it for Usernames and passwords and when the pages get cached the usernames and pwd's can be viewed in the Temp-inetfiles-folder in Windhoze. Thanks,

[PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous
Maybe it's getting timed out? Niklas lampén [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a database update system and I regonize users with sessions. Sometimes sessions just broke with no sane (for me at least) reason. Any ideas what may cause this,

Re: [PHP] variables

2001-09-11 Thread nayco
Maybe using cookies ??? (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 11:10 AM Subject: [PHP] variables Hello, Is it possible

[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread _lallous
Yep this is not bad! html Hello, showusername/. Your last login was showlastlogin/.p /html and now using PHP's short tags, you can make it even prettier: html Hello, ?=showusername()?. Your last login was ?=showlastlogin()?.p /html Right? Dr. Evil [EMAIL PROTECTED] wrote in message

[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread nicolas costes
maybe one day, PHP will implement user defined tags this could be an idea, if this is prooved to be useful. (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr ORIGINAL MESSAGE- Yep this is not bad! html

[PHP] Re: variables

2001-09-11 Thread _lallous
Sure you can! consider this simple example: html body a href=javascript:setvars('var1value', 'var2value')click here to go to next page/a script language=JavaScript !-- function setvars(var1, var2) { df = document.dataform; df.var1.value = var1; df.var2.value = var2;

[PHP] Re: regexp (?:

2001-09-11 Thread Franklin van Velthuizen
Andrew Perevodchik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Why doesn't this simple example work? ereg (aaa(?:bbb|ccc)aaa, $string); It causes an error. However ?: command is documented in a manual of my version of PHP4. It would probably be useful if

Re: [PHP] suming up in MySQL

2001-09-11 Thread David Otton
On Tue, 11 Sep 2001 11:51:05 +0200, you wrote: How to sum up all the values from a MySQL row ex. id - price 1 1000 2 300 3 200 How to sum up price row ? SELECT SUM(price) unsurprisingly enough... djo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] suming up in MySQL

2001-09-11 Thread Andrew Perevodchik
TM id - price TM 1 1000 TM 2 300 TM 3 200 TM How to sum up price row ? This can be done by MySQL rather than PHP. mysql_query ("SELECT SUM (price) FROM table"); -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] variables

2001-09-11 Thread David Otton
On Tue, 11 Sep 2001 11:10:20 +0200, you wrote: Is it possible to transfer certain variables to a new scripts, but not doing this as uri-parameters (../bla.php?var1=varvar2=var#) method=post forms cookies I need it for Usernames and passwords and when the pages get cached the usernames and

RE: [PHP] Re: variables

2001-09-11 Thread webgenie
Thanks for the fast answer1 Yes I thought of that, but I also got the problem using the $vars in frames: I'm using a authenticationform for users to get to a frameset. Now I'm transfering the usernames/pwds in the uri-string to all the framepages. In all framepages I check for $PHP_AUTH_USER to

RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén
Hmm.. How do I know how fast they timeout? And it seems that all of my users drop at the same time, not sure about it thou. session.cache_expire is set to 180. session.cookie_lifetime is 0. Maybe those do tell you something and you tell me more! :) Niklas -Original Message- From:

Re: [PHP] Re: variables

2001-09-11 Thread _lallous
In that case you'll have to use session_variables or cookies. mostly session_variables are better especially for authentication and login/logout systems... [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for the fast answer1 Yes I thought of that,

Re: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous
Can't tell like that No more ideasmaybe somecode would help?! Niklas lampén [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hmm.. How do I know how fast they timeout? And it seems that all of my users drop at the same time, not sure about it thou.

RE: [PHP] Re: variables

2001-09-11 Thread webgenie
Thanks, I'll implement sessions... :) regards Bart -Oorspronkelijk bericht- Van: _lallous [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 11 september 2001 13:30 Aan: [EMAIL PROTECTED] Onderwerp: Re: [PHP] Re: variables In that case you'll have to use session_variables or cookies.

RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén
session_start(); if (!session_is_registered(Session)) { toStart(2); exit; }; $Session = $GLOBALS[Session]; This is what I do on every page. I don't think it's timeout, since the session might get broken just after 5 minutes. function toStart() is used to move user to the login

[PHP] Re: regexp (?:

2001-09-11 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Andrew Perevodchik) wrote: ereg (aaa(?:bbb|ccc)aaa, $string); It causes an error. However ?: command is documented in a manual of my version of PHP4. AFAIK, that is only documented in the preg_* chapter, and only applies to the preg_*

Re: [PHP] Apache redirection by PHP

2001-09-11 Thread Tim
Look in the Apache manual at the section on mod_rewrite. - Tim On Tue, 2001-09-11 at 05:58, Andrew Perevodchik wrote: I have the DNS alias on my server for * (which means any name). So that any requests for http://anyname.my.host are recieved by one virtual server. I need to make apache

Re: [PHP] More thoughts about PHP: Taglibs

2001-09-11 Thread Tim
A good template library (and there's quite a few out there) will take care of this issue. You can have nearly pure HTML files and pure PHP files and maintenance and readability of your projects is much improved. - Tim http://www.phptemplates.org On Tue, 2001-09-11 at 01:04, Dr. Evil wrote:

[PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Nicolas Guilhot
Hi guys, When I use preg_replace with an array of integer as the replacement parameter, this function modifies the type of each array element to string. I don't understand why it alters the content of the array while this variable is not pass by reference (True or not ??). I have just upgraded

Re: [PHP] MySQL query help

2001-09-11 Thread Michael George
On Mon, Sep 10, 2001 at 03:59:36PM -0500, Sheridan Saint-Michel wrote: Well, I played with this a little more and it seems to be acting oddly when you first call this select unless you set the variable first. So if the below doesn't work try actually doing this $query=set @count=NULL;

[PHP] SSL and PHP = problems?

2001-09-11 Thread Magnus
I have a webpage that uses php4 and a SSL connection for some sensitive information like credit card number and such, it's a registration process. When MacOS users access the page it all goes well and no problems at all. But... when PC/Windows users access the page they get some problems and it

Re: [PHP] Anagram Solution in PHP

2001-09-11 Thread David Otton
On Mon, 10 Sep 2001 01:25:36 -0700, you wrote: So let's say the word 'acronym' A + C + R + 0 + N + Y + M 26 + 24 + 9 + 12 + 13 + 2 + 14 = 100 My thoughts were to download a list of words in the dictionary, then read the file and somehow replace each letter by its number, then add each

Re: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Andrey Hristov
Hmmm, RegEx work on strings, so the engine needs strings. Because of that your integers are converted to strings, if you want to give their life back make foreach ($arr as $k=$v){ $arr[$k]+=0; } Now all are integers. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

[PHP] how to ?

2001-09-11 Thread Clint Tredway
is there a way to tell if an insert failed while a in a loop. I tried this: $query = my query; if (!$query) { logic here } but this is not working... is this even possible? thanks! Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] a bug???

2001-09-11 Thread hassan el forkani
hi, i'm recently observing a strange behaviour of php when using a combination of ob_start() and ignore_user_abort() in the same page, php hangs (after the script is executed) and is unable to create/write to /destroy sessions!! i'm observing this on my win98 machine with apache 1.20 and php

Re: [PHP] how to ?

2001-09-11 Thread Andrey Hristov
Look for mysql_affected_rows() docs. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Clint Tredway [EMAIL PROTECTED] To: Php General MailingList [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 3:40 PM Subject: [PHP] how to ?

Re: [PHP] how to ?

2001-09-11 Thread David Otton
On Tue, 11 Sep 2001 08:40:05 -0400, you wrote: is there a way to tell if an insert failed while a in a loop. I tried this: $query = my query; if (!$query) { logic here } but this is not working... is this even possible? By query, are you talking about SQL? I'm assuming you're trying to do run

[PHP] Re: how to ?

2001-09-11 Thread _lallous
$ok = mysql_query(INSERT INTO table(field) VALUE('asdf')); if (!$ok) { echo error!; } else { echo good!; } Clint Tredway [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... is there a way to tell if an insert failed while a in a loop. I tried this: $query = my

Re: [PHP] Anagram Solution in PHP

2001-09-11 Thread nayco
maybe you forgot something like: . $letter=26-(ord($word[$i])-65);// excellent !!! if (($letter1)||($letter26)) $letter=0; $total+=$letter; (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: David

Re: [PHP] how to ?

2001-09-11 Thread Clint Tredway
thanks for the help! I am using MySQL. -- Original Message -- From: Andrey Hristov [EMAIL PROTECTED] Date: Tue, 11 Sep 2001 15:44:08 +0300 Look for mysql_affected_rows() docs. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

RE: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Nicolas Guilhot
I understand that RegEx works on strings, but I don't understand why this function modifies the replacement parameter as it is not pass by-reference. Nicolas -Message d'origine- De : Andrey Hristov [mailto:[EMAIL PROTECTED]] Envoyé : mardi 11 septembre 2001 14:34 À : [EMAIL PROTECTED]

[PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Lewi Hirvela

[PHP] Re: World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread alex Deh
what is it for a f.. day america? from germany realex Lewi Hirvela [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Jeff Lewis
Yeah not really a PHP topic but a very serious one! I can't believe this! Two planes with the WTC, one into each tower. One of the towers have now collapsed as well. A helicopter crashed into the Pentagon with unconfirmed reports of a third hijacked plane also crashing into the Pentagon. A

[PHP] Problem with session_destroy

2001-09-11 Thread Rosen
I have the code: ?include(con.php); session_start(); require_once(func1.php); if (lExistUser($cusr, $cpass)==false) { if (session_id() ) {session_destroy();} } When the page loads the first time I receive error: Warning: Session object destruction failed in main.php on line 9 but when I

[PHP] problem in the small code

2001-09-11 Thread Balaji Ankem
What is the problem with following code.. if ( $row!=0 ) { $res=mysql_fetch_object($result); if( $res-inv_status==ASSIGNED) { echo h2It is in assigned state. Please first return it and then change the status/h2; exit; } elseif( $res-inv_status==AVAILABLE)

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread nayco
? This is not PHP, yeah, but important enough ... Don't you fear a GLOBAL $war; ??? It smells bad . the ones who did that are ugly Mo**rs, but very strong how could they do that ??? ?back to php (°-Nayco, //\[EMAIL PROTECTED] v_/_

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread ignacio . estrada
We need the receive the help from Got, I believe He is the only one who can help us on this situation Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469

Re: [PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread Michael Kimsal
Perhaps you should just use cold fusion then, if you're that hot and heavy into tag-based languages. tagservlet.com has a Java/CF hybrid which may hold some interest. PHP's strength, IMO, is that it's NOT a tag-based language. You can create any functions you want and call them already from a

[PHP] Re: problem in the small code

2001-09-11 Thread Robin Vickery
[EMAIL PROTECTED] (Balaji Ankem) writes: What is the problem with following code.. $sql1=DELETE from tinventory where inv_tag='$inv_tag'; no closing doublequote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Once more, with feeling

2001-09-11 Thread billfarr
Dear All: Due to popular demand I've put the newest version of the Code Red detector on one of my servers in public, anonymous FTP. The URL is ftp://ftp.compuphrase.net/pub/codered ftp://ftp.compuphrase.net/pub/codered . After some research (annotated in the propaganda), I added the last 10

Fwd: Re: [PHP] Just had a cool idea!

2001-09-11 Thread B. van Ouwerkerk
This reply was send to my private mailbox.. how may i go around doing this though... and sorry for yelling Think logical. Visitor is 499, the next comes along, one visitor is added so your current visitor is 500 and BINGO he just won the jackpot.. your link.. whatever. Before asking any

[PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread Zhu George-CZZ010
Hi, I once had the Javascript codes to detect the browser type/version (but unfortunately, I lost the codes), does anyone have the Javascipt code? or can PHP do the same job (how?) Thank you very much in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread nayco
with some environnement variable er, i'm going to take a look, wait. (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: Zhu George-CZZ010 [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001

[PHP] mysql_db_query create table error

2001-09-11 Thread mkrisher
All, I am trying to create a table in a mySQL database, seems like it would be easy enough, but for some reason it is not working, below is the code: // Query to create table and columns $sql = CREATE TABLE 'products' ( id INTEGER UNSIGNED

Re: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread B. van Ouwerkerk
Yes. STFW -- www.php.net type detect browser in the searchbox -- click pulldownbox -- select online documentation and click on the little arrow.. http://www.php.net/manual/en/function.get-browser.php http://www.php.net/manual/en/language.variables.predefined.php Next time you can search the

[PHP] Php

2001-09-11 Thread Nael Mohammad
Has anyone had luck with apache 2.0 beta, jakarta, and php 4.06 on solaris 8 on netra t-1.? If so email me: how go about it, I get tons of compiling errors. But on my linux box, it works , no problems. Is incompatable with certain glibc librarys? I have glibc 2.01. Help me community! Nael

[PHP] Translation table not working

2001-09-11 Thread Peter Ostry
I cannot manage correct HTML encoding, here is the example from the manual: --- $trans = get_html_translation_table(HTML_ENTITIES); $str = Hallo Frau Krämer; $encoded = strtr($str, $trans); The $encoded variable will now contain: Hallo amp; lt;Fraugt; amp; Krauml;mer. --- If I do exactly the

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 08:55:49 -0600 : We need the receive the help from Got, I believe He is the only one who can help us on this situation Well, you know: *EXACTLY* this is the problem! Your so called god. If it weren't for this superstition, the world would

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Clint Tredway
I am sorry, but the problem is the exact opposite. If people would turn back to God and seek his face and live according to His will, the World would benefit greatly. My 2 cents. -- Original Message -- From: Alexander Skwar [EMAIL PROTECTED] Date: Tue,

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread mstearne
I'm sure your is the view shared by the VAST, VAST majority on both sides. Michael Quoting Clint Tredway [EMAIL PROTECTED]: I am sorry, but the problem is the exact opposite. If people would turn back to God and seek his face and live according to His will, the World would benefit

RE: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread Brian Paulson
Here is something that I use and works good ? $Browser_Type = strtok($HTTP_USER_AGENT, /); if(ereg( MSIE, $HTTP_USER_AGENT)) { } elseif(ereg( Mozilla, $HTTP_USER_AGENT)) { } else // I use this to catch Search Robots { } ? Thank You Brian Paulson Sr. Web Developer The Pueblo

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Sean C. McCarthy
Dear All, Please I beg you not to start a discussion over this. It is a very sad moment, and I think everybody agrees with me. I send my condolences to all the people who has family in these tragic terrorism acts. Sean C. McCarthy Clint Tredway wrote: I am sorry, but the problem is

[PHP] How to list 2-6 in while script?

2001-09-11 Thread Jan Grafström
Hi! I have this script and wonder how to change it to get it list only number 2 to number 6 and not each? while (list ($key,$val) = each ($headers)) { print pb.$val./b/p; } Thanks in advance. Regards Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Erik Mathy
Sean C. McCarthy [EMAIL PROTECTED] said: Dear All, Please I beg you not to start a discussion over this. It is a very sad moment, and I think everybody agrees with me. I send my condolences to all the people who has family in these tragic terrorism acts. Sean C. McCarthy I

[PHP] Unable to find stream pointer

2001-09-11 Thread Andreas Gietl
Hi PHP-Users, I am having problems with php and imap now for several days on several servers. I just get the following Error: Warning: Unable to find stream pointer in file on line line This error does not occur in every execution, but only sometimes. I read a lot about this error on the

[PHP] single quote replace

2001-09-11 Thread Clint Tredway
Does anyone have a function that will replace single quotes inside a string? Thanks! -- 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] How to list 2-6 in while script?

2001-09-11 Thread Alexander Skwar
So sprach »Jan Grafström« am 2001-09-11 um 16:48:59 + : Hi! I have this script and wonder how to change it to get it list only number 2 to number 6 and not each? while (list ($key,$val) = each ($headers)) { print pb.$val./b/p; } Hmm $i = 1; while (list ($key,$val) = each

RE: [PHP] single quote replace

2001-09-11 Thread Jack Dempsey
php does;-) $text = str_replace(',replace_text,$text); -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: [PHP] single quote replace Does anyone have a function that will replace single quotes

[PHP] MySql Help

2001-09-11 Thread Jared Mashburn
Hello, I have a database with 4 Columns |ID|First|Second|Third| I am tring to run a query On the First Column and place the data into an array. The problem that I am running into Is that there are doubles, triples, and sometimes more of the same name in that

Re: [PHP] MySql Help

2001-09-11 Thread Alnisa Allgood
At 12:31 PM -0600 9/11/01, Jared Mashburn wrote: I am tring to run a query On the First Column and place the data into an array. The problem that I am running into Is that there are doubles, triples, and sometimes more of the same name in that column. Each name represents something differnet

[PHP] Uploading Photos to MySQL

2001-09-11 Thread Mike Gifford
Hello, Has anyone developed another class for uploading images to a MySQL database? I downlaoded upload_db.zip from: http://circle.ch/scripts/ as it was a phplib based and it looks like it should do what is required. However it doesn't seem to be working. Does anyone else have any

[PHP] How do I get the resolution of my screen?

2001-09-11 Thread Don
Hi, I have a link that opens a small window. I'd like to center it in the screen regardless of the resolution in use. Does PHP have a way of returning the width/height of the current screen in pixels? Thanks, Don

Re: [PHP] How do I get the resolution of my screen?

2001-09-11 Thread MailingLists
nope, it don't... but you could easily do this in JavaScript: function OpenCenter() { // we're going to center the popup screen nLeft = ( screen.width - 350 ) / 2 ; nTop = ( screen.height - 300 ) / 2; // open the window var newWind = window.open(

[PHP] PHP and SecurID

2001-09-11 Thread Scarbrough, Jeb (ISS Atlanta)
Has anyone used PHP with SecurID and Netscape Enterprise server? Can this be done? Jeb Scarbrough [EMAIL PROTECTED] Internet Security Systems, Inc. 6303 Barfield Road Atlanta, Georgia 30328 Phone: 404-236-3292 Fax: 404-236-2626 _ --

[PHP] PROBLEM SOLVED - was [PHP] Rasmus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY]

2001-09-11 Thread Badger
This is a forwarded message From: Badger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Monday, September 10, 2001, 11:04:54 PM Subject: [PHP] Rasmus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY ===8==Original message text=== This is a forwarded message From: Badger

[PHP] Other lists

2001-09-11 Thread Seb Frost
I've found this list so helpful - can anyone recommend a similar thing for javascript/html/etc? cheers, - seb --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 -- PHP General

[PHP] date/time of current page

2001-09-11 Thread chip . wiegand
I want to put, into a footer include file, the last modified date of the current file being viewed. I have the following code that works when I hard code the file name - ? $dt=date(D, F d, Y g:i:s A, filemtime(index.php)); echo $dt; ? But of course that won't work as a footer for a site with

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
have you tried parsing out the name from $PHP_SELF? I would think that php wouldn't care if it gets 'index.php' or (some processing) index.php, know what i mean? jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:01 PM To:

RE: [PHP] date/time of current page

2001-09-11 Thread Michael Geier, CDM Systems Admin
script language=javascript document.write('some text ' + document.lastmodified + ' some other text.'); /script -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 4:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] date/time

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
Jack Dempsey [EMAIL PROTECTED] on 09/11/2001 11:42:07 PM Internet mail from: To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject: RE: [PHP] date/time of current page have you tried parsing out the name from $PHP_SELF? I would think that php wouldn't care if it gets 'index.php' or (some

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
Michael Geier, CDM Systems Admin [EMAIL PROTECTED] on 09/11/2001 11:46:50 PM Internet mail from: To: Jack Dempsey [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject: RE: [PHP] date/time of current page script language=javascript document.write('some text ' +

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
I'm not sure what you mean, but here is what I have tried - try this: ? echo date(m/d/y g:i:s A, filemtime(substr($PHP_SELF,strrpos($PHP_SELF,'/')+1))) ? jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
Thankyou, that works fine. -- Chip Jack Dempsey [EMAIL PROTECTED] on 09/12/2001 12:03:20 AM Internet mail from: To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: RE: [PHP] date/time of current page I'm not sure what you mean, but here is what I have tried - try this: ? echo

Re: [PHP] More thoughts about PHP: Taglibs

2001-09-11 Thread Michael Kimsal
Dr. Evil wrote: It seems to me that one of the problems with PHP is that you have to include code in your HTML pages. Even with the cleanest design, you end up with HTML that looks like this: html Hello, ?php showusername(); ?. Your last login was ?php showlastlogin(); ?.p /html No, you

  1   2   >