Re: [PHP] Re: Sessions / Serialized Data

2002-04-17 Thread Robert Cummings
n. Strikes me you'd need to unserialize into the current session structure... which I think can be found somewhere in the GLOBALS hash. Cheers Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief

Re: [PHP] mysql quickie..

2002-04-17 Thread Robert Cummings
cifically for the info > you need. Ummm yeah... I was gonna say that too, BUT FORGOT! Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
ctFee = &$objectFoo; unset( $objectFoo ); Then the object shouldn't be deleted since $objectFee is still referencing it. You will just break the reference. Correct me if I'm wrong *chuckle* Cheers, Rob. -- .-. | Robert Cummings | :-`--

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
Erik Price wrote: > > On Wednesday, April 17, 2002, at 03:59 PM, Robert Cummings wrote: > > > Now if what you meant was the following: > > > > $objectFoo = new MyObject(); > > $objectFee = &$objectFoo; > > > > unset( $objectFoo ); > > &g

Re: [PHP] Re: function returning true or errors

2002-04-18 Thread Robert Cummings
n return "1" if succeeds, "2" if error code A, or "3" > > if error code B, and then a switch statement could decide what to do in > > the calling script -- but does this sound sloppy? > > > > > > Erik > > > > > > > > > &

Re: [PHP] Number checker

2002-04-18 Thread Robert Cummings
response... return ereg( '^[[:alpha:]]*$', $testString ); Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: |

Re: [PHP] limit on extended classes

2002-04-18 Thread Robert Cummings
Erik Price wrote: > > Is there a limit on how many times you can extend a class in PHP 4? Was there ever? Curious to know! Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Prog

Re: [PHP] Number checker

2002-04-18 Thread Robert Cummings
Robert Cummings wrote: > > Jeroen Timmers wrote: > > > > i want to check if a given string has only numbers > > > > for exampl > > > > $test = "343124312" TRUE > > $test1 = "q34daf23423" FALSE > > I'm tempted to

Re: [PHP] multiple select list

2002-04-18 Thread Robert Cummings
on??? Bah, you can generate client side script with server side script, arguably you might be able to do the same with client side also... :) Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP a

Re: [PHP] limit on extended classes

2002-04-18 Thread Robert Cummings
Erik Price wrote: > > On Thursday, April 18, 2002, at 03:10 PM, Robert Cummings wrote: > > >> Is there a limit on how many times you can extend a class in PHP 4? > > > > Was there ever? Curious to know! > > I could be completely mistaken, since I can'

[PHP] Memory Leak... tracking?

2002-04-19 Thread Robert Cummings
heers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-

[PHP] php permissions

2002-04-19 Thread ROBERT MCPEAK
php is running on our box as nobody:nogroup. I'm trying to write php code that will edit/delete files uploaded to the server by other users, and, obviously, I get a permissions error. My sysadmin is hesitant to give php more access until I do some research about the security issues involved, an

Re: [PHP] php permissions

2002-04-19 Thread ROBERT MCPEAK
>>> "Dave Raven" <[EMAIL PROTECTED]> 04/19/02 01:55PM >>> chown them to nobody. - Original Message - From: "ROBERT MCPEAK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 7:53 PM Subject: [PHP] php permiss

RE: [PHP] php permissions

2002-04-19 Thread ROBERT MCPEAK
Craig, you seem very knowledgable and I appreciate your help. I confused matters by mentioning the word "upload." I'm actually not using php to upload the files. The user ftps the files to the server, and the ownership permissions prevent php from manipulating the files. I'm looking for a clea

[PHP] object variables declararing

2002-04-23 Thread robert janeczek
hi have look at this code: class test { function test(){ //$this->a = 10; print_r($this); } function test2(){ print_r($this); } } $t=new test(); $t->test2(); what do you see? empty object twice... now uncomment the commented line. now the object got a variable - which i

RE: [PHP] urldecode(0 and urlencode()

2002-04-23 Thread Collins, Robert
you could do a stripslashes () Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:06 PM To: [EMAIL PROTECTED

[PHP] newbie: string manipulation

2002-04-24 Thread ROBERT MCPEAK
I need code that grabs the file at the end of a file path. I have this: /usr/blah/doh/yuck/wow/abigfile.html And would like to return this: abigfile.html Could somebody show me how to do this? Thank you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] basename unix/windows

2002-04-25 Thread ROBERT MCPEAK
I'm running php on linux and wish to use basename() to get the file name from a windows path. basename() on our linux/php box can't seem to cope with the use of backslash (\) in the Windows paths I'm feeding it. In other words: basename(/usr/blah/doh/yuck/wow/abigfile.html) resolves to : abig

[PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread ROBERT MCPEAK
Running PHP3 on a Linux box and I've got trouble with date(). Here's the code: $blah=2002-05-02; $thedate = date("D, M d, Y", strtotime($blah)); $echo "$thedate"; Why is $thedate resolving to Wed, Dec 31, 1969. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] date wierdness

2002-05-03 Thread ROBERT MCPEAK
On PHP3 where $row["art_date"] == 2002-05-03, $thedate resolves to "Thurs, May 2, 2002" YESTERDAYS DATE! See for yourself, if you wish, here: http://www.endvaw.org/current.php3 What gives. $row = mysql_fetch_array($result); $blah = eregi_replace("-", "/", $row["art_date"]); $thedate = date

Re: [PHP] PHP compared to JSP

2002-05-06 Thread Robert Cummings
gards, > Manuel Lemos > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Program

Re: [PHP] Anyone use frames and PHP solution?

2002-05-06 Thread Robert Cummings
two > >combined... > > PHP has nothing to do with frames. You can have a .php file as the frame > source for any given frame, just like if it were an .htm or .html page. My guess is that he's looking for a library that will provide an abstracted

Re: [PHP] escaping quotes in forms and redisplaying variables in form fields

2002-05-06 Thread Robert Cummings
orm. > > If I change the code like this (adding the \" around the variable): > > $display_line .=" value=\"$noslash_signature\" size='35' maxlength='100'>"; > > O'Brien will display OK, but Joe "Bruiser" Jones s

RE: [PHP] Self Destruct code

2002-05-07 Thread Collins, Robert
Does it have to be a booby-trap or will some little annoyance like a shareware popup that would just aggravate the heck out of them do the trick? Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message

Re: [PHP] Alternating table rows...

2002-05-10 Thread Robert Cummings
dd. > $rowcount is 0 > $rowcount is set to one and printed in a different color > $rowcount is set to two, which is not equal to one, so does elseif and is > set to zero > > HTH! > > Jay > > -- > PHP General Mailing List (http://www.php.ne

Re: [PHP] Alternating table rows...

2002-05-10 Thread Robert Cummings
Robert Cummings wrote: > > The more generic approach: > > function getNextColour( &$lastIndex, $colourList ) > { > return $colourList[(++$lastIndex % count( $colourList ))]; U... $lastIndex++, don't want to start on the second entry :) Cheers, Rob. -- .

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Robert Cummings
s, but also removes > duplicate company names so it looks MUCH neater this way : YIKES! I thought there was a SQL keyword for returning a unique rowset. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Robert Cummings
ta for that row. In the words of a great man: "Doh!" Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAI

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
are set up in the mysql table to give you access from another server. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PRO

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
Robert Cummings wrote: > > Justin French wrote: > > > > Yup, with "local host" you're not going to be able to access it from a > > remote machine (although it's worth asking your host). > > Actually you can connect to a mySQL database from

[PHP] String comparison...

2002-05-13 Thread Robert Cummings
, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-13 Thread Collins, Robert
If they had the talent or the free time they would have programmed it themselves because most of the time it takes longer to backwards engineer a program than it does to write it from scratch. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826

[PHP] building a "crawler" with PHP

2002-05-13 Thread Robert Mena
Hi, I'd like to know if anyone has good references (links, ps, pdf etc) about building a crawler and tips regarding doing that with PHP. This would be mostly for learning purposes. thanks. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience ht

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread Collins, Robert
y wouldn't need to hire you. If they did hire you why not pay you to write the code instead of paying their people to go through the hassle of reverse engineering it. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTE

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread Collins, Robert
know exactly how the functions worked or interacted with one another. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread Collins, Robert
Good point I hadn't thought about that, maybe its time for that second pot of coffee ;) Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROT

RE: [PHP] Newbie help please!

2002-05-15 Thread Collins, Robert
this will do it: Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie help

[PHP] newbie: dynamically building associative arrays

2002-05-15 Thread ROBERT MCPEAK
I'm trying to build what I think is an associative array from a set of mySQL results. It looks like this: //First, a mySQL results loop for a select statement return unique occurrences of data in the field "term": for ($i=0; $i <$num_results; $i++) { $row = mysql_fetch_array($result); echo $

[PHP] I'm doing something wrong....

2002-05-15 Thread Robert Rothe
I've created an array. A very simple array that uses strings as keys. aname['one']=something; aname['two']=something else; Isn't there any way to directly access the 'n'th element? example: aname[0]? I've searched the group, but haven't found anything. Am I missing something or can'

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread Robert Rothe
AFAIK you >can't do that. > > cheers, > thalis > > On Wed, 15 May 2002, Robert Rothe wrote: > > > I've created an array. A very simple array that uses strings as keys. > > > > aname['one']=something; > > aname['two'

RE: [PHP] SQL Server test tool

2002-05-15 Thread Collins, Robert
This is not tested but should work $mysql_host = "localhost:1433"; $mysql_login = "billy"; $mysql_pw = "bob"; if(!$db_conn = mysql_connect($mysql_host, $mysql_login, $mysql_pw)){ echo "Connection Failed

Re: [PHP] uh, oh errors?

2002-05-16 Thread Robert Cummings
ent Cons: - transmission of content doesn't start until preprocessor completes - slightly more overhead since content must be stored in memory until buffer is flushed. Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chie

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
rs that > are necessary in hidden vars, and has HTML, PHP, and a handful of JS. You wouldn't happen to have a demo would you? A visualization would help me a lot. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
this stage of the game. it should be > up and running this summer though :-) No problem, completely understandable :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :---

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Robert Cummings
lack. Couldn't have said it better *heheheh* Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] |

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
e actually an image I'd use: wget http://domain.com/image.gif Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECT

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
); if( $length > 0 ) { if( (fh = fopen( 'destination', 'w' )) ) { fwrite( fh, $imageData ); } } Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Robert Cummings
o/php in the first line of the script, right? > [/snip] > > Can you have the compiled with apache version and the CGI version installed > on the same server? Sure can! Cheers, Rob. -- .-. | Robert Cummings | :-`. | W

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Robert Cummings
to update a cache, so that the web module never needs to hang the user while it retrieves data from a remote site. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :

RE: [PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread Robert Covell
You have to have an account with either one. Payflow or CyberCash is just a card swiper on the Internet. An acquiring bank is still needed. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.471.1095 Fax

Re: [PHP] ob_start() and ob_gzhandler

2002-05-17 Thread Robert Cummings
;m running PHP and > Apache on Windoze, PHP is version 4.2.0 I think, Apache is > 1.3.something. If you don't manually flush a buffer I believe it auto flushes when the preprocessor completes. Cheers, Rob. -- .-. | Robert Cummings | :--

Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Robert Cummings
t gets a lot of coders... what you need to do is create another connection because the value returned from the mysql_connect function is a resource identofier, which means if you run two queries on the same connection the second result set will overwrite the first. Cheers, Rob. -- .-. | Ro

Re: [PHP] brain cramp, ouch!

2002-05-17 Thread Robert Cummings
Robert Cummings wrote: > > Kelly Meeks wrote: > > > > Ok > > > > Let's say I'm querying a table, and looping thru the results: > > > > $connect=mysql_connect(host,user,pass); > > $thedb=mysql_select(database1); > > $thequery=&

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Robert Cummings
- > == > D. D. Brierton[EMAIL PROTECTED] www.dzr-web.com > Trying is the first step before failure (Homer Simpson) > == > > -- > PHP General Mailing L

Re: [PHP] read from flatfile and convert

2002-05-22 Thread Robert Cummings
ikely the format is custom and you'll need to do the grunt work yourself - either by hand (small file) or by writing a script to do it for you. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Progra

[PHP] php/mysql join query help

2002-05-23 Thread ROBERT MCPEAK
I have a table with a field "key" containing a unique value. I have a second table containing a field called "keys" containg a pipe-delimited list of values from the "key" table. I'd like to do a query that took each value from key, and matched it agains the field "keys" in the second table, and

RE: [PHP] Leading zeroes

2002-05-23 Thread ROBERT MCPEAK
I'm a newbie, but maybe this'll do it: if ($str!='0') { $str = ltrim($str, '0') } >>> Liam Gibbs <[EMAIL PROTECTED]> 05/23/02 01:49PM >>> > From version 4.1.0, $str = ltrim($str, '0') This works excellently. Thanks. One problem that I didn't think of, though: If the number is 0 (only 0), then t

Re: [PHP] php/mysql join query help

2002-05-23 Thread ROBERT MCPEAK
key per row in table2. If a row has 'blue' twice, only one will be counted. ---John Holmes... - Original Message - From: "ROBERT MCPEAK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 1:22 PM Subject: [PHP] php/mysql join query help

[PHP] SOAP status

2002-02-25 Thread Robert Mena
Hi, I was wondering if anyone has developed web services using SOAP with php. I'd like to use it in a future project but was wondering which "tools" (classes, exemples) do we have and how stable are they. regards, Rt. __ Do You Yahoo!? Yahoo! Sp

[PHP] Oracle & NLS : Access from PHP

2002-02-27 Thread Robert Mena
Hi, I have some script to access an Oracle database using stored procedures. When I access a development database everything runs fine. When I access the production database I get errors PLS-00553: character set name is not recognized ORA-06550. The problem seems to be related to NLS. So in t

[PHP] file uploading from browser

2002-03-04 Thread Robert MacCombe
e the server is linux/apache. I have full telnet access, but I have no idea how to add myself to the php group. Regards, Robert MacCombe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Accessing Mainframe

2002-03-05 Thread Robert Covell
not sure of the ability to utilize Orb's with PHP. Also, if you use the port method you will have to define some sort of return mechanism. This is off the top of my head. So comments or suggestions would be great. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web:

[PHP] Re: [PHP-DB] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Robert Weeks
See the manual at php.net: addslashes() stripslashes() I've found it easier to just turn on magic-quotes in the php.ini file This is all covered at php.net Robert - Original Message - From: "Nick Patsaros" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <

RE: [PHP] Re: A stupid question...

2002-03-11 Thread Collins, Robert
Try it like this $letter="a" $result =mysql_query("SELECT * FROM emply_info WHERE Lname LIKE'$letter%' ORDER BY Lname, Fname DESC",$db); Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
instead of 'and' use '&&' if($line[1] == "$bruker" && $line[2] == "$passord"){ echo "hei $bruker."; }else{ echo "FEIL"; } Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
Try this if($line[1] == '$bruker' && $line[2] == '$passord'){ echo "hei $bruker."; }else{ echo "FEIL"; } Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED]

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
This works : Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt

[PHP] new to php/mysql - insert not working

2002-03-20 Thread ROBERT MCPEAK
Can somebody help me with this? The following code gets me "document contains no data." I have done a successfull select from mysql db, but not an insertion. I don't know how to troubleshoot this. Any help is much appreciated. Thanks! -- PHP General Mailing List (http://www.php.net/) To u

[PHP] mysql update help needed

2002-03-20 Thread ROBERT MCPEAK
Can somebody straighten this out for me? I can't get the update to work. I'm sure the variables are being passed to the code. Thanks! if ($postaction==edit) { echo "it fired"; // process form $db = mysql_connect("myhost, "myunam

[PHP] html form select list "selected"

2002-03-20 Thread ROBERT MCPEAK
I'd like to determine the selected option in a select list based on a passed variable. The code below won't work, but I can't figure out why. Any guesses? echo ""; echo ""; echo "Display"; echo "Don't Display"; echo ""; echo ""; Thanks!

[PHP] Fwd: html form select list "selected"

2002-03-20 Thread ROBERT MCPEAK
Whoops! Still won't work but that code should read: echo ""; echo ""; echo "Display"; echo "Don't Display"; echo ""; echo ""; >>> ROBERT MCPEAK 03/20/02 04

RE: [PHP] Fwd: html form select list "selected"

2002-03-20 Thread ROBERT MCPEAK
ely you could do. True False Now the contents of $display is an integer which will can be interpreted as a boolean value (true or false). Then you can compare it like you had. if ($display == false) -Kevin -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wedne

[PHP] broken select solution

2002-03-20 Thread ROBERT MCPEAK
echo ""; ?> >>> "ROBERT MCPEAK" <[EMAIL PROTECTED]> 03/20/02 04:39PM >>> Still doesn't work. What gives? >>> &quo

[PHP] testing for blank var

2002-03-21 Thread ROBERT MCPEAK
if $img_url has a value, then I'd like to show the image, if it doesn't, then I'd like to show a message. What's wrong with my code? Am I incorrectly testing for the value? The else works fine, but not the if. Thanks! if (!$img_url) { echo "No Image URL Entered"";

RE: [PHP] testing for blank var

2002-03-21 Thread ROBERT MCPEAK
Beautiful! >>> Rick Emery <[EMAIL PROTECTED]> 03/21/02 09:19AM >>> if ( ! ISSET($img_url) ) -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:18 AM To: [EMAIL PROTECTED] Subject: [PHP] testing for blank

[PHP] newbyie - date conversion to human readable form

2002-03-25 Thread ROBERT MCPEAK
I've dug around for a while but I can't find a direct answer on how to convert a date in this format: "2002-03-25" to a human readable format such as " March 25, 2002," or even better, "Monday, March 25, 2002." Can anybody help me with this, or point me to some clear directions on how to do this?

RE: [PHP] newbyie - date conversion to human readableform-CORRECTION

2002-03-25 Thread ROBERT MCPEAK
>>> Rick Emery <[EMAIL PROTECTED]> 03/25/02 11:04AM >>> CORRECTION: SELECT DATE_FORMAT( mydate, "%W, %M %d, %Y") AS thedate FROM mytable; -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 9:58 AM To: [E

RE: [PHP] Re: Keeping PHP out?

2002-03-27 Thread Collins, Robert
) |-/html (PHP will run here) |-whatever (PHP will run here) Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: J Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 9

RE: [PHP] Uploading files without an HTML form

2002-03-28 Thread Collins, Robert
If you know the file location, and the location doesn't change you could do an fopen() and basically read and rewrite the file. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Sam

RE: [PHP] a CNN headline news grabber

2002-03-28 Thread Collins, Robert
I had written one but CNN keeps changing their page format so it was too hard to keep it up-to-date. That is probably why the one you have is returning a blank page. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED

[PHP] Help with Acrobat FDF support

2002-03-28 Thread Robert Stoeber
I just found the very cool looking new FDF functions to support Acrobat forms. According to the documentation at www.php.net I have to download & install the FDF SDK. Found the latest SDK and I put two files from the C directory of the SDK at: /usr/lib/php4/libfdftk.so /usr/include/fdftk.h The

[PHP] php configs in the apache config file?

2002-03-30 Thread Robert Montgomery
Supposedly, in your apache httpd.conf file you can specify php config values. I'm trying to shore up security on a new box by setting the following within tags: php_value open_basedir /path/to/virtualhost/ However, it doesnt work. If I set the values in the php.ini file, it DOES work... Wha

Re: [PHP] php configs in the apache config file?

2002-03-30 Thread Robert Montgomery
isnt possible when they force you to use the php_admin_value form. I actually prefer it that way, the docs just need updating! Thanks for the responses. Rob --- bvr <[EMAIL PROTECTED]> wrote: > It doesn't work with CGI installations of PHP. > > bvr. > > Robert Mon

[PHP] Postgres question

2002-03-30 Thread Robert Abbate
of names). Can anyone give me some insight? Thanks! Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parse error, mysql select

2002-04-01 Thread ROBERT MCPEAK
When I execute from browser I get a parse error, but when I enter the query directly into a MySQL command prompt I get a successful return. Can anybody see the problem with this code: $query = "SELECT DATE_FORMAT( exp_date, "%W, %M %d, %Y") AS thedate from tifrequest wher

RE: [PHP] parse error, mysql select

2002-04-01 Thread ROBERT MCPEAK
Ack! Thanks. >>> Rick Emery <[EMAIL PROTECTED]> 04/01/02 02:59PM >>> $query = "SELECT DATE_FORMAT( exp_date, \"%W, %M %d, %Y\") AS thedate from tifrequest where user='$user' limit 1,1"; Missing escape \ in front of quotes -Original Mes

[PHP] date comparison expressions

2002-04-01 Thread ROBERT MCPEAK
I'd like to compare today's date against a stored date, and then fire some code based on the result. Like. if ($today's_date < stored_date+5 days) then {blah} Can somebody clue this newbie in on how to do this? -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] date expressions

2002-04-02 Thread ROBERT MCPEAK
How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] syntax for date math expressions

2002-04-03 Thread ROBERT MCPEAK
What is the php syntax for adding or subtracting dates? For example, I'd like to do something like this: 2002-04-03 - 2002-04-02 = 1 or 2002-04-03 - 2002-04-02 = -00-01 or 2002-04-03 + -00-01 = 2002-04-03 etc. Can anybody help this newbie? Thanks! -- PHP General Mailing List

[PHP] Re: syntax for date math expressions

2002-04-03 Thread ROBERT MCPEAK
er, Chief Developer PHPBeginner.com (Where PHP Begins) www.PHPBeginner.com [EMAIL PROTECTED] ROBERT MCPEAK writes: > What is the php syntax for adding or subtracting dates? > > For example, I'd like to do something like this: > > 2002-04-03 - 2002-04-02 = 1 > >

RE: [PHP] can't get it to work

2002-04-03 Thread Collins, Robert
Have you tried BETWEEN $query = SELECT * FROM table where date BETWEEN '$month_1/$day_1/$year_1' AND '$month_2/$day_2/$year_2'; Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Mes

[PHP] mySQL join query error

2002-04-04 Thread ROBERT MCPEAK
I get an error with the follow query. There is a field "user" in both tables, tifrequest & tifexpire. Can anybody see what's wrong with it? Thanks. SELECT * FROM tifrequest LEFT JOIN USING(user) WHERE tifexpire.exp_date >=2002-04-04 -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Collins, Robert
why not use somthing like this then include($DOCUMENT_ROOT."/include/mysql_connect.inc"); Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Tom Rogers [mailto:[EMAIL PROTEC

[PHP] MySQL persistent links

2002-04-08 Thread Robert Abbate
stent link mysql.max_persistent = 0 ; I'm using Linux Mandrake 8.1 system. Anyone run into this problem before? Thanks! Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL persistent links

2002-04-09 Thread Robert Abbate
t;>> www.AceHoster.com <<<< Quality web hosting > > > "Robert Abbate" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi. I'm trying to disable persistent database connections to MySQ

Re: [PHP] Function stored in a database

2002-04-09 Thread Robert Cummings
> > Would that work. This should work fine... though it might be a good idea to wrap the $func() call in an if( function_exists( $func ) ) test :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
able until the close tag is found or the page ends. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:

RE: [PHP] AS/400 data access

2002-04-09 Thread Collins, Robert
I am also trying to access data on an AS/400 have you gotten it to work, if so can you send an example? Thanks in advance. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Rance Hall

Re: [PHP] skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Robert Cummings
s unnecessary; however, you should use: if( ($row = mysql_fetch_assoc( $result )) ) { echo $row['user_id']; echo $row['fullname']; } just in case no rows are returned :) Cheers, Rob. -- .-. | Robert Cummings | :-`-

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
> > > executing the socket code? > > > > > > thanks! > > > > > > dietrich > > > [EMAIL PROTECTED] > > > dietrich.ganx4.com > > > > Are you using Netscape 4.x and possibly making the socket connection > > while inside a

<    3   4   5   6   7   8   9   10   11   12   >