php-general Digest 16 Jun 2002 19:57:21 -0000 Issue 1409

2002-06-16 Thread php-general-digest-help
php-general Digest 16 Jun 2002 19:57:21 - Issue 1409 Topics (messages 102383 through 102417): Extracting Time?? 102383 by: César Aracena Re: Can't set a cookie? [SOLVED] 102384 by: Julie Meloni Re: [PHP-DB] Extracting Time?? 102385 by: César Aracena 102386

[PHP] domxml

2002-06-16 Thread Douglas
Hi, I have a web page with a form. I want the user to be able to use the £ symbol in a text field on the form. I then pass the value of the text field(the £ symbol) to a DOMXML function which creates a XML string which is transformed into XHTML using the XSLT functions. I have a meta tag defi

[PHP] --with-dom-xslt how to make use of it?

2002-06-16 Thread Alexander Gionov
Does anybody know about some documentation of functions available to you, when you have compiled your PHP with the option '--with-dom-xslt'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help on including cgi scripts into php documents.

2002-06-16 Thread John Holmes
Take a look at virtual() www.php.net/virtual ---John Holmes... > -Original Message- > From: Vegitas Pride [mailto:[EMAIL PROTECTED]] > Sent: Sunday, June 16, 2002 2:54 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Help on including cgi scripts into php documents. > > I was searching arou

[PHP] Help on including cgi scripts into php documents.

2002-06-16 Thread Vegitas Pride
I was searching around your site, php.net and was wondering how, or if its possible to include a cgi script onto a php-index page. My site currently uses just an include php line to include html code, and I wanted to include, like poll.cgi to my side menu. Thanks, Nick ___

[PHP] Re: translate perl unpack to php equivalent

2002-06-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Danny Kruitbosch) wrote: > How would I translate this perl unpack statement to the php equiv. > > my ($salt, $xor) = unpack('a2 a*', $something) http://php.net/unpack -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] String within a string

2002-06-16 Thread Anthony Ritter
Many thanks Chris. Tony --- [This E-mail scanned for viruses by IAS, an Archiventure Company] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_replace

2002-06-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel) wrote: > When you think you got it, you don't get it.. > Im trying to scan the link for =A-Z0-9_=, dump the '=' and evaluate the > remainder as a defined constant. > Yes its funny looking, but if I could get this going Im golden.

Re: [PHP] String within a string

2002-06-16 Thread Chris Shiflett
I might be misinterpreting the question, because it sounds like the same question as before. Let me try to be more thorough. SQL statements traditionally use single quotes around literal values. There is no reason of "escaping" that makes this characteristic exist. Now, in PHP, most people con

Re: [PHP] Regular expression newbie question, convert this: [::word1 \" word2 \" word3::] to : ".word1 " word2 " word3."

2002-06-16 Thread Analysis & Solutions
Lance: On Sun, Jun 16, 2002 at 03:19:39PM +0800, Lance wrote: > > its because the html text is from user input. So, you're going to run eval() on user supplied input? Now THAT's scarry. I strongly urge you to rethink what you're doing. --Dan -- PHP classes that make web des

[PHP] preg_replace

2002-06-16 Thread Gerard Samuel
When you think you got it, you don't get it.. Im trying to scan the link for =A-Z0-9_=, dump the '=' and evaluate the remainder as a defined constant. Yes its funny looking, but if I could get this going Im golden. $bar is always returned with '=_L_OL_HERE=' as the link and not 'here' as it supp

[PHP] persistent connections

2002-06-16 Thread Chris Knipe
Lo all, Is there anyway to "manage" persistent connections to MySQL? I've started using them on various of my sites (mysql_pconnect instead of mysql_connect - as in the documentation), but after a few hours, I notice that the connections just keeps on getting more and more and more. Eventually,

Re: [PHP] String within a string

2002-06-16 Thread Anthony Ritter
Chris, Maybe I didn't make myself clear... "LIKE '%"// Beginning of double quote and then beginning single quote beacuse it is the beginning of a string which then ends before the variable $searchterm. .. Is the reason that the is a si

Re: [PHP] String within a string

2002-06-16 Thread Chris Shiflett
Each item within double quotes is a literal string. The example you inquire about dynamically builds an SQL statement. For example, if $searchtype is "author_name" and $searchterm is "Rasmus", then you would build a statement like: select * from books where author_name like '%Rasmus%'; The SQ

Re: [PHP] Determine week

2002-06-16 Thread Tom Rogers
Hi Here is a messy solution, but I think it does what you want using strtotime() (well worth looking up in the manual :) "; ?> Tom At 02:55 AM 16/06/2002 +0300, Rosen wrote: >Hi, >how can I determine dates (start & end ) in one week. >I.e. 30th week is between 22.07.2002 and 28.07.2002 . >

RE: [PHP] get a html page and save it to a file

2002-06-16 Thread John Holmes
Fopen("http://www.example.com/page.html","r";); Or File(http://www.example.com.page.html); My email program might mess up that code...either way, just use fopen() or file() to open the page, read it into a variable, then write that variable somewhere on your own system... ---John Holmes... >

[PHP] String within a string

2002-06-16 Thread Anthony Ritter
I want to make sure about the syntax using mysql and PHP. Here is the line of code: $query="SELECT * FROM books WHERE ". $searchtype. " LIKE '%" .$searchterm. "%' "; . Am I correct that the reason for the single quote within the expression above is th

[PHP] php, xml and flash

2002-06-16 Thread Henry
i'd like to use the flash xml sendAndLoad method to send a number of variables to a php script. php would process the variables and query a database and dynamically write an xml formatted response. and then obviously load it back into flash. however, i'm having problems with the initial step o

[PHP] get a html page and save it to a file

2002-06-16 Thread Aborla.net - webmaster
Hello again, I would like to know how can I download a html page from other server and write it's contents in a file. Thanking in advance, Nuno Lopes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Beta-Testers wanted: PHP-MP3-Collectionmanager for Win32

2002-06-16 Thread Tobias Schlitt
Hi you all! I'm searching for some Beta-Testers on my new Programm. It's a Manager for your MP3-Collection (with editing-Functions for Filename, ID3-Tags, integration in Winamp over a PlugIn, Playlistgeneration, Add and Enqueue Files to winamp from the application,.). Who's is interested in

Re: [PHP] md5 php vs. md5 perl

2002-06-16 Thread John S. Huggins
On Sun, 16 Jun 2002, Danny Kruitbosch wrote: >-Hi, >- >-I'm trying to rewrite a perl finction to php. The function uses Digest::MD5. >- >-PHP md5() returns a 32 char hex number. The perl Digest::MD5 function >-returns a 16 char (ascii??) string. Can I also get this from PHP? If so >-how do I do

Re: [PHP] RE4: Update PHP

2002-06-16 Thread Julie Meloni
>> If you are saying that you didn't do it the first time and you don't >> know how, then read the instruction manual or tutorial _very_ closely, >> since it will be your first time. CI> Well classical answer, don't need newsgroup or mailing list to say that. And people wonder why others get fru

[PHP] translate perl unpack to php equivalent

2002-06-16 Thread Danny Kruitbosch
Hi, How would I translate this perl unpack statement to the php equiv. my ($salt, $xor) = unpack('a2 a*', $something) Thanks! Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] md5 php vs. md5 perl

2002-06-16 Thread Danny Kruitbosch
Hi, I'm trying to rewrite a perl finction to php. The function uses Digest::MD5. PHP md5() returns a 32 char hex number. The perl Digest::MD5 function returns a 16 char (ascii??) string. Can I also get this from PHP? If so how do I do that? My ultimate goal is to have compatible PHP/Perl func

RE: [PHP] Update PHP

2002-06-16 Thread Christian Ista
> You may want to do a phpinfo() on your existing installation, to > determine the configuration directives that were used. Likely, you > will want to use the same ones (or nearly the same) with this new > build. I have that : System Linux localhost.localdomain 2.4.7-10BOOT #1 Thu Sep 6 16:15:0

[PHP] RE4: Update PHP

2002-06-16 Thread Christian Ista
> Ok, if you're saying you do not have root access, then you have to > have someone with root access do it for you. I have root access :) > If you are saying that you didn't do it the first time and you don't > know how, then read the instruction manual or tutorial _very_ closely, > since it wi

Re[2]: [PHP] Update PHP

2002-06-16 Thread Julie Meloni
>> If you were the person who installed PHP before, then you probably >> remember the process. It's a configure/make/make install process. CI> Sure :) CI> But I rent a dedicated server with all preinstalled, PHP, MySQL ... Ok, if you're saying you do not have root access, then you have to h

RE: [PHP] Update PHP

2002-06-16 Thread Christian Ista
> If you were the person who installed PHP before, then you probably > remember the process. It's a configure/make/make install process. Sure :) But I rent a dedicated server with all preinstalled, PHP, MySQL ... Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Update PHP

2002-06-16 Thread Julie Meloni
CI> I have a dedied server (with linux RedHat 7.2) and PHP 4.1.2. CI> I'd like to update to the version 4.2.1 Wise. Be sure to read the changelog! CI> Is it enought : CI> tar -zxvf phpfile4-2-1.gz No. All that does is unpack the distribution. You must now build the PHP module. If you were t

[PHP] Update PHP

2002-06-16 Thread Christian Ista
Hello, I have a dedied server (with linux RedHat 7.2) and PHP 4.1.2. I'd like to update to the version 4.2.1 Is it enought : tar -zxvf phpfile4-2-1.gz It's the first time I install PHP on linux in general I work on Windows. Bye -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: Determine week

2002-06-16 Thread Jason Morehouse
"Date_Calc - a class for manipulating and comparing calendar dates, as well as formulating arrays of dates for traditional calendar display." http://www.phpinsider.com/php/code/Date_Calc/ Works sweet. You'd be loking at: Cheers, -J On Sun, 16 Jun 2002 11:55:04 +1200, Rosen wrote: > Hi, >

Re: [PHP] Determine week

2002-06-16 Thread Rosen
Thanks, but I think you didn't understand me. I have the number of week in a year ( some number of week, not current week ) and I must determite start & end date of given week. Can you help me with some ides ? Thanks, Rosen John Holmes <[EMAIL PROTECTED]> wrote in message 006101c214d9$dc9423f

Re: [PHP] RE: [PHP-DB] Extracting Time??

2002-06-16 Thread Justin French
I don't think there's a fucntion out-of-the-box for this, but it's only 12 months, so it'd be quite a simple function that you'd only ever have to write once :) Justin French on 16/06/02 6:20 PM, César Aracena ([EMAIL PROTECTED]) wrote: > Well... actually, I care about displaying it in Spanish

[PHP] RE: [PHP-DB] Extracting Time??

2002-06-16 Thread César Aracena
Well... actually, I care about displaying it in Spanish instead of English ( Enero instead of January). Does anybody has accomplished this for Spanish or any other language? Is it possible? Thanks again, Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.

Re[2]: [PHP] Can't set a cookie? [SOLVED]

2002-06-16 Thread Julie Meloni
C> I've recently been learning about cookies myself, and had the same problem C> with "" vs. 0 (PHP Fast&Easy Web Development showed the "" in their book). The book was written in 2000 and the change is in some recent version of PHP. The instructions have been altered in the 2nd edition of the

[PHP] Extracting Time??

2002-06-16 Thread César Aracena
Hi all and sorry for bothering again. I need to fetch one time and date from a MySQL DB where is stored as TIMESTAMP (MMDDHHMMSS) to print it in a page but in common format (DD MM at HH:MM:SS). Actually, I don’t care ‘bout the st, nd and th extensions after the day. Thanks for any help

php-general Digest 16 Jun 2002 07:50:42 -0000 Issue 1408

2002-06-16 Thread php-general-digest-help
php-general Digest 16 Jun 2002 07:50:42 - Issue 1408 Topics (messages 102359 through 102382): Re: Parsing Text File 102359 by: Nathan Taylor 102360 by: Stuart Dallas 102372 by: Analysis & Solutions PHP LICENCE 102361 by: Kevin Waterson printf() 1023

RE: [PHP] Re: Code Structure/Errors

2002-06-16 Thread Jason Soza
Figured it was something simple. Part of the learning process, I suppose. Thanks for the help! Jason Soza -Original Message- From: Dan Koken [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 15, 2002 11:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Code Structure/Errors Can simply set $

[PHP] Re: Code Structure/Errors

2002-06-16 Thread Dan Koken
Can simply set $i before the while. I assume the $last_name is coming from the DB. Not exactly sure what you want, but hope this helps. good luck... Dan. -- $i = 0; while ($row = mysql_fetch_array($result)) { extract($row); if (($i % 5) == 0) print "\n";

Re: [PHP] Regular expression newbie question, convert this: [::word1\" word2 \" word3::] to : ".word1 " word2 " word3."

2002-06-16 Thread Lance
hi dan, its because the html text is from user input. and i dont wanna spend too much time educating them on coding with php. sometime its a pain trying to get them to understand the codes. so i just wanna give them some simple commands in php whereby they can happily insert date formats on a