Re: [PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Justin French
On Sunday, October 12, 2003, at 12:02 PM, Manuel Vázquez Acosta wrote: Take a look at what is printed by: var_dump($_SERVER); Maybe the HTTP_USER_AGENT can lead you to somewhere out of this problem. Manu. "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I have created

php-general Digest 12 Oct 2003 06:26:51 -0000 Issue 2350

2003-10-11 Thread php-general-digest-help
php-general Digest 12 Oct 2003 06:26:51 - Issue 2350 Topics (messages 165858 through 165879): PNG to GIF conversion 165858 by: John Ryan 165859 by: Evan Nemerson 165860 by: John Ryan 165861 by: John Ryan 165863 by: Evan Nemerson 165864 by: Evan

Re: [PHP] PHP source display

2003-10-11 Thread Evan Nemerson
The functions Ryan is talkink about are show_source, highlight_file, and highlight_string, but they're a bit more work than getting *.phps files to work. I'm no apache wizard, and I don't know what's going on with the SetOutputFilter type stuff, but it's not what's in the manual at all. Take a

Re: [PHP] Re: Echo $PHP_SELF not working

2003-10-11 Thread Justin French
Actually, that should make no difference... you don't need a ; if it's the last instruction before the close of PHP. Try or Justin On Saturday, October 11, 2003, at 09:29 AM, Al wrote: Put a ";" [no quotes] after such as: echo $PHP_SELF; Jeff McKeon wrote: I've just published a new websi

Re: [PHP] Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Tom Rogers
Hi, Saturday, October 11, 2003, 10:02:31 PM, you wrote: S> Hi, S> I have created an online system, and have created a WAP version, and am S> currently crreating a PDA version. What I wuold like to to do is give out S> the same URL instead of domain.com for normal use, domain.com/wap/ or S> domain

Re: [PHP] Sessions

2003-10-11 Thread Lowell Allen
> I checked the session settings with phpinfo(); I get the following values: > session_save_path = /tmp > session.use_cookies = On > session.use_trans_sid = 1 > > I've created a folder on the same level as all the pages called > "ccb_sessions" and have CHMOD it to 777. > I have added the following

[PHP] Re: Search for an exact string inside of another string

2003-10-11 Thread PHP Webmaster
"Manuel VáZquez Acosta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try: > > if (strpos($str2, $str1) !== false) > echo "$str1 is inside $str2"; > else > echo "could not find $str1 inside $str2"; > > "Php Webmaster" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTE

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
Loser "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Then try stillhq.com, as stillgq.com won't get you too far. Fourth article > down, "Command line image procesing[sic]...". > > If you would have actually read a bit of the page I sent you to, perhaps you > would ha

[PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Manuel Vázquez Acosta
Take a look at what is printed by: var_dump($_SERVER); Maybe the HTTP_USER_AGENT can lead you to somewhere out of this problem. Manu. "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have created an online system, and have created a WAP version, and am > currently

[PHP] Re: Search for an exact string inside of another string

2003-10-11 Thread Manuel Vázquez Acosta
Try: if (strpos($str2, $str1) !== false) echo "$str1 is inside $str2"; else echo "could not find $str1 inside $str2"; "Php Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have a little problem that I hope you can help me with. > > I have the followin

Re: [PHP] Howto ? Local/Master Value

2003-10-11 Thread Jason Wong
On Sunday 12 October 2003 02:26, ada wrote: > So you can make several config judging from the current account ? > I dont found anything about that ... Kind of. > How several configs are maintained in a mutual web server ? > Surely one php.ini for all and some little hacks on vhosts config ? The

RE: [PHP] Sessions - more testing

2003-10-11 Thread James Johnson
I've read Nelson's message and have added the following lines: ini_set('session.save_path','ccb_sessions'); ini_set('session.use_trans_sid','off'); ini_set('session.gc_maxlifetime', '3600'); And still get the same page not found error. James -Original Message-

[PHP] Search for an exact string inside of another string

2003-10-11 Thread PHP Webmaster
Hi all, I have a little problem that I hope you can help me with. I have the following strings: $str1 = "Bob"; $str2 = "My Name Is Bob"; How can I get PHP to look for $str1 inside of $str2? Also, what about if "Bob" inside of $str2 is in different places? I would like something like: if ($st

[PHP] Age from date field?

2003-10-11 Thread DvDmanDT
Does anyone have a good solution on how to get the age of someone from a date column in mysql... This is what I have, but it's not really the truth... What's the right way to do it? floor((time()-$a["born"])/(3600*24*365.25)) where $a["born"] is the timestamp of the birthdate... Current query: S

[PHP] Re: Detecting devices i.e. PDA, Mobile

2003-10-11 Thread PHP Webmaster
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have created an online system, and have created a WAP version, and am > currently crreating a PDA version. What I wuold like to to do is give out > the same URL instead of domain.com for normal use, domain.com/wap/ or

RE: [PHP] Sessions

2003-10-11 Thread James Johnson
Hi, I checked the session settings with phpinfo(); I get the following values: session_save_path = /tmp session.use_cookies = On session.use_trans_sid = 1 I've created a folder on the same level as all the pages called "ccb_sessions" and have CHMOD it to 777. I have added the following snippet ab

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread Evan Nemerson
Then try stillhq.com, as stillgq.com won't get you too far. Fourth article down, "Command line image procesing[sic]...". If you would have actually read a bit of the page I sent you to, perhaps you would have found that out without having to ask. Your last question could have been answered by a

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread Evan Nemerson
Yes. On Saturday 11 October 2003 02:13 pm, John Ryan wrote: > no, i mean a on-the-fly conversion in php. unless its a unix program... is > it? > > "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Well there's a stand alone program called ImageMagick > > > > Mich

[PHP] php5.0.0beta1

2003-10-11 Thread Dennis Heuer
Hello - Is there some documentation of the new xml-api available somewhere? Regards Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
and i cant see the article your talking about on stillgq.com "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well there's a stand alone program called ImageMagick > > Michael Still wrote an article on it which may be useful. There should still > be a link for it on th

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
no, i mean a on-the-fly conversion in php. unless its a unix program... is it? "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well there's a stand alone program called ImageMagick > > Michael Still wrote an article on it which may be useful. There should still > be a

Re: [PHP] PNG to GIF conversion

2003-10-11 Thread Evan Nemerson
Well there's a stand alone program called ImageMagick Michael Still wrote an article on it which may be useful. There should still be a link for it on the main page @ stillhq.com On Saturday 11 October 2003 01:50 pm, John Ryan wrote: > How do I do this?? I have the latest version of GD with PN

[PHP] PNG to GIF conversion

2003-10-11 Thread John Ryan
How do I do this?? I have the latest version of GD with PNG, but no GIF. But I *have to* be able to convert images to gif. Is there any standalone php script that'll do it, or a cgi??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 11 Oct 2003 18:26:23 -0000 Issue 2349

2003-10-11 Thread php-general-digest-help
php-general Digest 11 Oct 2003 18:26:23 - Issue 2349 Topics (messages 165835 through 165857): Re: XML / XLS application 165835 by: Curt Zirzow 165847 by: Raditha Dissanayake Re: Oracle - Win32 165836 by: John Nichel 165837 by: imran off-list topic: Debian vs

[PHP] Howto ? Local/Master Value

2003-10-11 Thread ada
Hi all, I m note a great php config hacker. But I notice thing that i doesnt have to notice before :) In my phpinfo i notice 2 column ; Local Value & Master Value http://www.dealgates.com/phpinfo.php So you can make several config judging from the current account ? I dont found anything about th

Re: [PHP] Sessions

2003-10-11 Thread Curt Zirzow
* Thus wrote Nelson Goforth ([EMAIL PROTECTED]): > The "Session" documentation IS difficult to understand. I wrestled > with it for some time (and still am). agreed! I am currently trying to come up with a re-write of the session documentation, to resolve issues like this. The problem is there

Re: [PHP] Am I asking too much?

2003-10-11 Thread John Taylor-Johnston
Curt > Oh, and IMO, there isn't anything unclean about having two sql > query() statements. It keeps the code more readable as to > what you're trying to doing. I agree. I also think I should just try to emulate what phpmyadmin does. KISS principle. Thanks!!! John -- PHP General Mailing List

Re: [PHP] phpmyadmin

2003-10-11 Thread John Taylor-Johnston
What about some javascript to alert() and decide if the form executes like phpmyadmin does: http://ccl.flsh.usherbrooke.ca/example.jpg This would save me time coding PHP. How can I accomplish this? What does the onsubmit look like? John > * Thus wrote John Taylor-Johnston ([EMAIL PROTECTED]):

Re: [PHP] Am I asking too much?

2003-10-11 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote John Taylor-Johnston ([EMAIL PROTECTED]): > > Any ideas? I want to avoid having two "mysql_query($sql)". I'm basically looking > > for better functionality and wanting to learn how to clean up my code. > > Oh, and IMO, there isn't anyt

Re: [PHP] Am I asking too much?

2003-10-11 Thread Curt Zirzow
* Thus wrote John Taylor-Johnston ([EMAIL PROTECTED]): > Any ideas? I want to avoid having two "mysql_query($sql)". I'm basically looking for > better functionality and wanting to learn how to clean up my code. > there are a couple options, the insert has a extra option, 'ON DUPLICATE KEY': ht

Re: [PHP] Encryption question

2003-10-11 Thread Jason Sheets
I wouldn't use crypt, instead use one of the proven more secure hashes like md5 or sha1. For password hashing I'd use md5 (PHP 3 and 4) if you want broad support or sha1 for a little more security (sha1 hasn't been in PHP as long (only since 4.3.0) so you will lose some compatability, Ryan T

Re: [PHP] Re: CSV file with PHP

2003-10-11 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): > On Fri, Oct 10, 2003 at 03:06:53PM -0700, Curt Zirzow wrote: > : > : On Fri, 10 Oct 2003 18:38:04 -0300, Cesar Aracena <[EMAIL PROTECTED]> > : wrote: > : > > : >Does anybody knows how to make a CSV (comma separated values) file > : >with PHP based on

Re: [PHP] Am I asking too much?

2003-10-11 Thread John Taylor-Johnston
Any ideas? I want to avoid having two "mysql_query($sql)". I'm basically looking for better functionality and wanting to learn how to clean up my code. John Taylor-Johnston wrote: > So I should break it up my two queries? > > $sql = 'insert into '.$db2.'.'.$table2.'(KW,AUS,GEO,AN,RB,CO,RR) > sel

Re: [PHP] [xml] character data

2003-10-11 Thread Raditha Dissanayake
What Tom has to say + you should note that character data may be called more than once for each call to startElement. Tom Rogers wrote: Hi, Saturday, October 11, 2003, 6:26:01 AM, you wrote: DA> I do not understand why this line does not work : DA> $info[$element] = $content; DA> but yet this w

Re: [PHP] XML / XLS application

2003-10-11 Thread Raditha Dissanayake
Very true curt, since he the message seems to be about XSL and not about XLS (which i understand to be a ms excel file format) Orlando, head off to w3schools where you will find a map :-) Curt Zirzow wrote: * Thus wrote Ray Hunter ([EMAIL PROTECTED]): So what is your questions concerning php

Re: [PHP] Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Raditha Dissanayake
The easiest is to detect the browser because this is what really matters. Then the dimensions of the display come into the picture. There is a db of these browser capabilities and detecting and using them etc in a sourceforge project call wurlf all the best Shaun wrote: Hi, I have created an

[PHP] Detecting devices i.e. PDA, Mobile

2003-10-11 Thread Shaun
Hi, I have created an online system, and have created a WAP version, and am currently crreating a PDA version. What I wuold like to to do is give out the same URL instead of domain.com for normal use, domain.com/wap/ or domain.com/pda/. Is there a way of detecting what device is loading the site a

php-general@lists.php.net

2003-10-11 Thread Marek Kilimajer
Try exec("/bin/scan & > /dev/null 2>/dev/null"); Daevid Vincent wrote: How can I cause PHP to fire off a unix program and NOT wait for a reply. Basically I want to use the "&" love the unix provides, but it seems that exec, passthrough, system and even ` ` all wait for a return despite my putting s

Re: [PHP] recompiling libphp4.so because of modssl??

2003-10-11 Thread daniel
lol from the php source, it compiles the so module into the destination apx (apache) directory, try ./configure --help in the source of php for more > Hi there, > > I have just installed modssl and recompiled apache. When I start > apachessl, I do get following warnings: > > Loaded DSO libexec/libp

Re: [PHP] Sessions

2003-10-11 Thread Nelson Goforth
The "Session" documentation IS difficult to understand. I wrestled with it for some time (and still am). There's just no clear "cookie_lifetime" variable! All of Lowell Allen's instructions are the same that I've discovered, save that I set the 'session.gc_maxlifetime' to a large number - I

[PHP] recompiling libphp4.so because of modssl??

2003-10-11 Thread Merlin
Hi there, I have just installed modssl and recompiled apache. When I start apachessl, I do get following warnings: Loaded DSO libexec/libphp4.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) [Sat Oct 11 13:21:23 2003] [warn] Loaded DSO /usr/loc

Re: [PHP] Re: CSV file with PHP

2003-10-11 Thread Eugene Lee
On Fri, Oct 10, 2003 at 03:06:53PM -0700, Curt Zirzow wrote: : : On Fri, 10 Oct 2003 18:38:04 -0300, Cesar Aracena <[EMAIL PROTECTED]> : wrote: : > : >Does anybody knows how to make a CSV (comma separated values) file : >with PHP based on results fetched from MySQL? I need it to import it : >with

Re: [PHP] off-list topic: Debian vs. Redhat

2003-10-11 Thread Curt Zirzow
* Thus wrote Wang Feng ([EMAIL PROTECTED]): > Greetings, > > Have been working with Windows for many years, I'm planning to *migrate* to > Linux. > > Googled Debian vs. Redhat. Found that more commercial software vendors > support Redhat rather than Debian. Why does this happen? $$$ and marketin