[PHP] str_replace

2002-10-31 Thread rick
, "$file"); $file = str_replace("~", "", "$file"); $file = str_replace("`", "", "$file"); $file = str_replace(";", "", "$file"); $file = str_replace("|", "", "$file"); $file = str_replace("{", "", "$file"); $file = str_replace("}", "", "$file"); $file = str_replace("[", "", "$file"); $file = str_replace("]", "", "$file"); $file = str_replace("%", "", "$file"); $file = str_replace("?", "", "$file"); $file = str_replace("(", "", "$file"); $file = str_replace(")", "", "$file"); $file = str_replace("#", "", "$file"); Thanks! :) ..rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] no php archives?

2001-03-12 Thread rick
I can't get to the php archives... every time i try a search of the mailing list, I get nothing... :-( -- 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: [EMA

[PHP] WebServer

2001-12-28 Thread rick
Dear Members , Does anybody of you have a webserver at home using ADSL or other connections ? If any , could you tell me What would be the acceptable Hardware to run 5 or more sites at home with an 256 k ADSL ? (Memory , proccesor , etc etc ) Do I have to have T

[PHP] Control Panel , Webmin or similar Written in PHP

2001-12-29 Thread rick
Hi guys , I was Wondering if it would be possible to write a proyect like Control Panel or WebMin (both are in Perl ) using PHP instead or PERL ? Would it be possible ? PHP has the power and flexibility like Perl to write TRUE Systems programs that could be able to manage a

[PHP] Control Panel , Webmin or similar Written in PHP

2001-12-29 Thread rick
Hi guys , I was Wondering if it would be possible to write a proyect like Control Panel , WebMin (both are in Perl ) using PHP instead of PERL ? Would it be possible ? PHP has the power and flexibility like Perl to write TRUE Systems programs that could be able to manage all

[PHP] Apache and PHP under win98 help !

2002-01-08 Thread rick
hi guys , I have a problem with my Apache and PHP configuration under win 98 . I can't make it works.. This is my httpd lines pointing to php : LoadModule php4_module c:\php\dlls\php4apache.dll AddType application/x-httpd-php .php4 ScriptAlias /php4/ "C:/php/"

[PHP] Package Ready to Install !!!

2002-01-16 Thread rick
Hi guys , I would like to know if there any package ready to install with Apache , Mysql and PHP4 under Windows ??? I time ago I think , I saw such a package but I don't remenber the address or the link to the web site . If any of you know something I'll be looking forward to

[PHP] ImageMagick and Convert In Php

2002-02-21 Thread Rick
; = Works Perfect I am sorry for coming to the list for help , but i am at a final loss, i have also tried shell_exec and exec to clear anything up. I have hit the imagemagick mail list and i got "Php Might have some issues" so if anyone can lend a hand to get that system command to work , i would be most appreciative. Best Wishes Rick Wilson

[PHP] Uploading files with HTTP-Upload

2002-03-18 Thread Rick
files are not getting passed in? Thanks, /rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP_Upload with PHP

2002-03-20 Thread Rick
files are not getting passed in? Thanks, /rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php4apache.dll please !!!!

2001-12-14 Thread rick
hi guys , could you tell me please , Where I can find the php4apache.dll ? Thanks , Ricardo

[PHP] php in free()

2001-12-17 Thread Rick
I'm running a script that times out durring a certian action. Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/web/htdocs/mail/functions.php on line 1200 The error logs say: php in free(): warning: recursive call. The offending lines of code, and here's what really gets

Re: [PHP] new lines in text fields

2001-07-06 Thread rick
Have you tried putting the newline character (\n) into your html? That works great for me. My only problem is that the output from an XSL transformation has all the line breaks stripped out... - Original Message - From: "Mat Marlow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Frid

Re: [PHP] functions?

2001-07-06 Thread rick
instead of returning that line, put it into some variable... like: while ($row = mysql_fetch_row ($result)) { $map_list .= "$row[0]"; } } return $map_list; - Original Message - From: <[EMAIL PROTECTED]> To: "'Php-General (E-Mail)" <[EMAIL PROTECTED]> Sent: Friday, July 06, 1979 8:27 A

Re: [PHP] Next Book

2001-07-07 Thread rick
em is I don't know proper programming techniques... Has anyone tried to expand into other languages? I like perl due to its heavy similarity to PHP, but I like to focus on web stuff. rick - Original Message - From: "Chris Lott" <[EMAIL PROTECTED]> To: "Php-General (E

Re: [PHP] Variables

2001-07-10 Thread rick
Same as with two numerical values... use the == operator if($text1 == $text2) /* only true if the 2 vars are equal */ if($text1 = $text2) /* this sets $text1 to the same value as text2 and is always true unless $text2 = false */ http://php.net/manual/en/language.operators.comparison.php -

[PHP] mail() problem

2004-06-02 Thread Rick
Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP analytics

2006-12-06 Thread Rick.
user behaviour, patterns with different user groups. Is this possible with php and it is a major undertaking ? just trying not to get ahead of myself here.. are there any tutorials or scripts or books that you know of ? Thanks Regards Rick

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Rick Widmer
based URLs, but I have been able to grab entire web sites to be hosted with Apache. You may need to use sed or something to clean up the tags. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Method for displaying Downline

2002-11-30 Thread Rick Widmer
At 06:47 PM 11/29/02 -0800, Daren Cotter wrote: Must you send three separate requests to the list? One is enough. You might find some useful information here: http://marc.theaimsgroup.com/?l=php-general&m=95423103630080&w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Method for displaying Downline

2002-11-30 Thread Rick Widmer
IT IS CONSIDERED VERY RUDE TO SPAM THE LIST WITH REPEATED MESSAGES ONE IS ENOUGH!! Yes, I am shouting. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why all the returned emails from this list?

2002-12-02 Thread Rick Widmer
that attachemnt!!! Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date

2002-12-03 Thread Rick Widmer
> Hi, > > please could someone tell me how i can return a month in text from an int > ie > > getMonth(12) > How about: $Months = array( , 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Ju

Re: [PHP] formating numbers & date

2002-12-04 Thread Rick Widmer
$AMPM = 'PM'; } else { $AMPM = 'AM'; } echo substr( $Date, 5, 2 ), '/', substr( $Date, 8, 2 ), '/', substr( $Date, 0, 4 ), ' ', $Hour, substr( $Date, 13, 6 ), $AMPM; You may need to adjust the numbers in the substrs... R

Re: [PHP] formating numbers & date

2002-12-04 Thread Rick Widmer
At 11:51 AM 12/5/02 +1100, Justin French wrote: on 05/12/02 11:37 AM, Rick Widmer ([EMAIL PROTECTED]) wrote: > $Hour = substr( $Date, 11, 2 ); > if( $Hour ) > 12 { > $Hour = $Hour - 12; > $AMPM = 'PM'; > } > > else { > $AMPM = 'AM'; > } > &

[PHP] PHP-MySQL-HPUX 11

2002-12-04 Thread Rick King
bexec/libphp4.sl into server: Unresolved external ./apachectl start: httpd could not be started Does anyone know what this means? I think the MySQL-libs are trying to source other libs but I'm not sure. Has anyone run into this problem before? Any solutions/help/words of wisdom are great

Re: [PHP] Middle Number

2002-12-06 Thread Rick Widmer
At 09:45 PM 12/6/02 -0500, Stephen wrote: How can you find the meadian (or middle number) of a list of numbers? If there is an even amount of numbers, how would I still find it? load the list into an array, in numeric order... then: $List = array( 1,2,3,4,5,6 ); $Middle = ( count( $List ) -

Re: [PHP] Middle Number

2002-12-07 Thread Rick Widmer
At 07:05 PM 12/7/02 -0500, Stephen wrote: Wouldn't this only work for an even ammount of numbers? Like 1, 2, 3, 4 has 4 numbers... Did you try it? I'd hate to think I've done more work to solve your problem than you have... Even: $List = array( 1,2,3,4,5,6 ); $Middle = ( count( $List ) -

Re: [PHP] Finding Mode

2002-12-07 Thread Rick Widmer
l the entries have the same number of hits there is no mode. I'm not sure what the mode of (1, 1, 2, 5, 9, 19, 19) would be, but I'm suspect a good definition of mode will tell what to do if more than one value ties for having the most hits. Rick -- PHP General Mailing List (htt

Re: [PHP] String to an Array

2002-12-07 Thread Rick Widmer
etime since PHP4 came out they added the preferred $str{0} option, which is the only one that should be used in new code. Extracting characters from a string with [] is depreciated, and may stop working someday. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Fw: [PHP] Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Rick Emery
Try $_POST['name'] and $_POST['age'] Try $HTTP_POST_VARS['name'] and $HTTP_POST_VARS['age'] - Original Message - From: "David Scott" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, December 10, 2002 10:56 AM Subject: [PHP] Help please: Unable to get $_POST["variable"]; to work in a form. I am

Fw: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Rick Emery
What version of PHP are you using? I believe that anything earlier than 4.05 does not support $_POST. Did you try $HTTP_POST_VARS['name']? This will work, regardless of version. - Original Message - From: "David Scott" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, December 10, 2002 12:54 PM

Re: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Rick Emery
First, please respond to the list, not me. Second, I'm not asking the question, David Scott is. Third, I don't use " " either; I use ' ' - Original Message - From: "Victor" <[EMAIL PROTECTED]> To: "'Rick Emery'" <[E

Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values

2002-12-10 Thread Rick Emery
Hey Aggie, Show us the rst of the code. stristr() should not be a problem. Chances are there's a blank line elsewhere that's being sent. - Original Message - From: "KANM MD" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 2:34 PM Subject: [PHP] Question Rega

Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values

2002-12-11 Thread Rick Emery
iginal Message - From: "KANM MD" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 2:54 AM Subject: Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values Here is t

Fw: [PHP] Add column to table

2002-12-11 Thread Rick Emery
First, you've asked the wron list; ask the mysql list Second: ALTER mytable ADD COLUMN new column INT UNSIGNED AFTER old_column; - Original Message - From: "Shaun" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, December 11, 2002 8:25 AM Subject: [PHP] Add column to table Hi, please coul

Fw: [PHP] upload image

2002-12-11 Thread Rick Emery
If it is a GIF file, the header format is: Byte # 0 - 2 GIF 3 - 5 87a or 89a 6 - 7 Width (in pixels) 8 - 9 Height (in pixels) Be advised, the dimensions are in reverse major order; that is, 50 pixels is represented as "32 00" - Original Message - From: "Shaun" <[EMAIL PROTECTED]>

Re: [PHP] Free MySQL Hosting...again

2002-12-12 Thread Rick Emery
The page would not display for me. It did, however send the following HTML. Please note that the "?PHPSESSID" is not enclosed in delimiters. Also, PHPSESSID needs to be $PHPSESSID. Could that be the problem? Finally, dump the FRAMES. Free MySQL Hosting Free MySQL Hosting - NukedWeb

Re: [PHP] Date Formatting

2002-12-13 Thread Rick Emery
MYSQL will do all the formatting that you need. Look up sect 6.3.4, "Date and Time Functions" in mysql manual. Look at the DATE_FORMAT(date,format) command - Original Message - From: "Clint Tredway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 11:55 AM Subj

Re: [PHP] key pairs

2002-12-17 Thread Rick Widmer
At 04:44 PM 12/17/02 -0500, 1LT John W. Holmes wrote: What I was thinking is that you have one table with Order_ID Name Address Flag -> Here you flag this as SHIP_TO or BILL_TO etc... That layout would be better than: Order_ID Ship_name Ship_address Bill_name Bill_address etc... Which is what

Re: [PHP] Regex Help

2002-12-19 Thread Rick Emery
addslashes() - Original Message - From: "Jim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 11:26 AM Subject: [PHP] Regex Help Could someone show me how to use preg_replace to change this: test test test into: anotherword test anotherword basically, I

Re: [PHP] Regex Help

2002-12-19 Thread Rick Emery
o accomplish is to change 'test' into 'anotherword' only if it is not within the option tag. Thanks! - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Jim" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, Decem

Re: [PHP] date part

2002-12-19 Thread Rick Emery
Following on to the L T: $ar = explode("/",$thestring); thenL $ar[0] = 06 $ar[1] = 07 $ar[2] = 200 - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Diana Castillo'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 11:56 AM Subject: RE: [PHP]

Fw: [PHP] case statement?

2002-12-19 Thread Rick Emery
switch() { case a: case b: case c: default: } RTFM - Original Message - From: "Max Clark" <[EMAIL PROTECTED]> To: <> Sent: Thursday, December 19, 2002 12:19 PM Subject: [PHP] case statement? Hi- I was wondering if php had a case function? Instead of building a large if/elseif/

Re: [PHP] Regex Help

2002-12-19 Thread Rick Emery
ortunately, that doesn't quite accomplish the task > either. The other example for my first post would be mangled with that. > > - Original Message - > From: "Rick Emery" <[EMAIL PROTECTED]> > To: "Jim" <[EMAIL PROTECTED]>; <[EMAIL P

Re: [PHP] Question about the exit() command

2002-12-19 Thread Rick Emery
What do you mean "return to the calling page"? The exit() command simply ceases processing of PHP and HTML. I believe what you're saying is that if the user clicks on a PHP hyperlink on the first page, then goes to another page. If there is something "wrong" there, you nwant to return to the pag

Re: [PHP] Another problem with conditional statements

2002-12-19 Thread Rick Emery
switch() does not work that way. Switch uses the value in the parentheses and selects a CASE based upon that value. Read the manual. You will have to use a series of if()-elseif()-else() - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]>

Re: [PHP] login

2002-12-20 Thread Rick Emery
Do you mean loggged-in in the current browser session? If that, then cookies are good. If you mean EVER ogged in, then you'll want to look at a database, perhaps, mySQL. - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002

Re: [PHP] Re: mail()

2002-12-20 Thread Rick Emery
Actually, you don't need to send this as an html hyperlink. Simply using: http:\\www.aircharterunited.com\pages\activate_account.php?clientid=$uname Should work; it does for me. - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Decembe

Re: [PHP] Re: mail()

2002-12-20 Thread Rick Emery
that should be: http://www.aircharterunited.com\pages\activate_account.php?clientid=$uname (Grrr...that's what I get for using copy/paste from original email) - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Edward Peloke" <[EMAIL PRO

Re: [PHP] Problem with functions

2002-12-20 Thread Rick Emery
Please show a bit more of the actual code - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002 9:55 AM Subject: [PHP] Problem with functions Hi, I keep getting errors in my script that says 'x' function is

Re: [PHP] Email problems.

2002-12-22 Thread Rick Emery
This is not realy a PHP question; rather, it is an OutLook question. Regardless...when you opened the OutLook window to create your mail, did you go to the Menu->Format and select "Rich Text (HTML)"" - Original Message - From: "Steve Jackson" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PR

Re: [PHP] Is __FILE__ still current or is there something newer?

2002-12-23 Thread Rick Widmer
/lib:. You can group files into directories under the include_path to keep related include files together. include( 'category/program.inc' ); will search every directory in the include path for a subdirectory named 'category' containing a file 'program.inc' to

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Rick Widmer
At 03:06 AM 12/23/02 -0200, Alexandre Soares wrote: Hi All, Where I can get more information about a free library to plot 2d and 3d data information, http://www.aditus.nu/jpgraph/ Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Rick Emery
Can't do this with PHP, which is server-side. You can, however, use PHP to generate JavaScript that will set the window parameters when executed. - Original Message - From: "Jody Cleveland" <[EMAIL PROTECTED]> To: "Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, December 23, 2002

Re: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Rick Emery
Use PHP print/echo statements to create the JavaScript code, just as you would HTML code. - Original Message - From: "Jody Cleveland" <[EMAIL PROTECTED]> To: "'Rick Emery'" <[EMAIL PROTECTED]>; "Php-General (E-mail)" <[EMAIL PROTECTE

Re: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Rick Emery
Do you know JavaScript? If not, start there. print "open(\"url\",\"window_name\",\"width=400,height=300menubar=no,status=no\")"; - Original Message - From: "Jody Cleveland" <[EMAIL PROTECTED]> To: "'Rick Emery'"

Re: [PHP] MySQL vs PostgreSQL

2002-12-23 Thread Rick Emery
You accidentally published this to the wrong email list. I assume you meant to send this to the MySQL email list. - Original Message - From: "Miro Kralovic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 23, 2002 9:10 AM Subject: [PHP] MySQL vs PostgreSQL > Hi, > >

Re: [PHP] Forms

2002-12-23 Thread Rick Emery
For my Linux (RedHat 7.1), it's at /etc/php.ini - Original Message - From: "Vicente Valero" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 23, 2002 10:25 AM Subject: [PHP] Forms I'm having problems using variables from a html form. I've been reading, and it seems tha

Re: [PHP] calendar solution for workgroups ???

2002-12-23 Thread Rick Emery
Another good PHP/mySQL calendar application. Group scheduling, etc. Does not have extraneous things such as web-mail. Cost is $35 http://abledesign.com/demo/calendar/ rick "People will forget what you said. People will forget what you did. But people will never forget how you made them

Re: [PHP] Are there macros in PHP?

2002-12-23 Thread Rick Emery
What happened when you experimented with this code? You did try, right? - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Monday, December 23, 2002 11:57 AM Subject: [PHP] Are there macros in PHP? > Hi, > > I need to search a MySQL table bas

Re: [PHP] Problem with Include

2002-12-24 Thread Rick Widmer
with 1.3 until the PHP developers announce Apache 2 support. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Populating textboxes and listboxes from a query result of a database table

2002-12-26 Thread Rick Emery
Text box: print "\n"; List box: print "\n"; while($row = mysql_fetch_array($result)) { extract($row); print "$data_title\n"; } print "\n"; - Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 26, 2002 6:13 AM Subject: [PHP]

Re: [PHP] Beginner examples?

2002-12-26 Thread Rick Widmer
SELECT * FROM Entries ORDER BY RAND() LIMIT 1 This picks one record from the Entries table at random. You may want to send your self an email with the results, as this is truly random. May as well let the computers do the work... Rick -- PHP General Mailing List (http://www.php.net

Re: [PHP] Cheap Hosting

2002-12-26 Thread Rick Emery
www.nomonthlyfees.com $200 first year, $70 per year thereafter. I put all my clients with this service. rick "People will forget what you said. People will forget what you did. But people will never forget how you made them feel." - Original Message - From: Stephen To: PHP

Re: [PHP] Photos and logos in MySQL + PHP

2002-12-26 Thread Rick Widmer
output webpage? First build the names in variables... $LogoName = "/images/logos/$ClubID.png"; $PhotoName = "/images/photos/$ClubID.png"; then later when you are painting the page. Don't forget to include Width, Height and Alt tags in the tags. Rick -- PHP Gener

Re: [PHP] CLI delay

2002-12-27 Thread Rick Widmer
At 03:55 AM 12/27/02 -0500, Maciek Ruckgaber Bielecki wrote: has anyone an idea of how can i do some kind of decent delay (instead of some shell_exec doing pings) :-P Have you tried sleep()? http://www.php.net/manual/en/function.sleep.php Rick -- PHP General Mailing List (http

Re: [PHP] PHP 4.3.0 released

2002-12-28 Thread Rick Widmer
At 08:40 PM 12/27/02 -0700, The Doctor wrote: Is it just my or are there problems with static Aapche 1.3.27 compiles? I don't know if it is _just_ you, but my static install compiled and is running just fine. SuSE 8.0 php 4.3.0 Apache 1.3.27 Mod_SSL 2.8.12-1.3.27 OpenSSL 0.9.6h ming 0.2

[PHP] Re: [PHP-DEV] Re: [PHP] PHP 4.3.0 released

2002-12-28 Thread Rick Widmer
At 11:29 AM 12/28/02 -0700, The Doctor wrote: On Sat, Dec 28, 2002 at 04:04:14AM -0700, Rick Widmer wrote: > At 08:40 PM 12/27/02 -0700, The Doctor wrote: > ./configure --with-apache=../apache --with-mysql --with-pgsql=/usr > --enable-cli --enable-calendar --enable-debug=no > --with

Re: [PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Rick Emery
The last line cannot be producing the warning; it does not refer to a file. Please show us the EXACT error message. Are you certain the file was opened? Did you try to print $stuff after reading it? Did it have the info you thought it should? - Original Message - From: "Phil Powell" <[

Re: [PHP] Auto_incerement value

2002-12-30 Thread Rick Widmer
At 06:41 AM 12/30/02 -0300, Cesar Aracena wrote: Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? http://www.php.net/manual/en/function.mysql-insert-id.php Rick -- PHP General Mailing List (http

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Rick Widmer
are wasting time and memory making another copy of the data. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP & PostgreSQL

2002-12-30 Thread Rick Widmer
Most PHP extensions are just wrappers that allow you to call existing libraries. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Rick Widmer
things in the schema. I have widgets in my toolkit that build arrays of checkboxes, radio buttons or drop down lists based on the values allowed in an enum or set. They get used quite a bit, in fact losing these widgets may be the biggest thing keeping me using MySQL. (Harder prototyping is a

Re: [PHP] Date problem

2002-12-31 Thread Rick Widmer
At 05:23 PM 12/31/02 +0800, Denis L. Menezes wrote: Hello friends. Is there a routine in PHP I can use to find if today's date fits between the commencing date and the ending date? SELECT * FROM Table WHERE NOW() >= StartDate AND NOW() <= EndDate Rick -- PHP General Mailing

Re: [PHP] Php 4.3.0 and Mail() function

2002-12-31 Thread Rick Widmer
looks for sendmail if it is not found the mail function is not compiled in, resulting in the undefined function call. Mine is in /usr/sbin/sendmail. Grep the results of ./configure for 'sendmail' to see what happened. ./configure ... > tempfile grep sendmail tempfile Rick -

Re: [PHP] Re: loading a db table into a php array from mysql

2002-12-31 Thread Rick Widmer
the same fieldname in both. The ON syntax allows you to use differently named fields, and/or a different table. Courses has two fields (MinLevel, MaxLevel) that contain the highest and lowest grade that is allowed to take the course. Look closely at how the table aliases (a and b) are used to join

Re: [PHP] use included GD of external

2002-12-31 Thread Rick Widmer
4.3.0, right? Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Rick Widmer
g to find sendmail in the default location will find the Qmail wrapper instead, and will work. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-02 Thread Rick Widmer
% different ways of connecting tables with LEFT JOIN. USING( fieldname ) % connects the table being joined, with the table listed right before it, % using the same fieldname in both. The ON syntax allows you to use % differently named fields, and/or a different table. I still don't get what

Re: [PHP] Using mail() for mailist list app

2003-01-02 Thread Rick Widmer
at the command line for quite a while now. 4.3.0 is the first version that creates the CLI version of PHP by default. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-02 Thread Rick Widmer
At 06:32 AM 1/1/03 -0500, David T-G wrote: I still don't get what a left or right or outer or inner join is... The reason I chose LEFT JOIN are: o You get better control over how the query is executed. o Values from the first table are returned even if there is no associated entry in the sec

Re: [PHP] PHP Testing

2003-01-02 Thread Rick Widmer
At 05:25 PM 1/2/03 -0800, Jim Lucas wrote: DocumentRoot /some/path/public_html php_admin_value engine On try php_admin_value php_engine on|off Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 servers for mail implementation

2003-01-03 Thread Rick Widmer
mail server to manage email accounts, and for webmail, but keep all non-mail related web services off of it. You don't want all the web developers logging on to the mail server. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP memory usage

2003-01-03 Thread Rick Widmer
at PHP 4 is not like C: passing variables by reference is not necessarily faster than passing them by value. Indeed, in PHP 4 it is usually better to pass a variable by value, except if the function changes the passed value or if a reference is being passed. Rick -- PHP Genera

Re: [PHP] Recommend payment processors?

2003-01-03 Thread Rick Emery
I use PayPal. Does not require a merchant account. PHP payment interface and interaction is easy to implement. Via HTML in your webpage, you pass to PayPal the URL of the PHP script to be executed when a payment is received. - Original Message - From: "Chad Day" <[EMAIL PROTECTED]> To

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Rick Emery
You'll never get to the die() statement, because you redirected with the header() statement. - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 6:14 PM Subject: [PHP] Still executing afte die()? I have a page called 404.

Re: [PHP] Mysql update problems

2003-01-05 Thread Rick Emery
what appeared when you printed the text of your query: $query = "update bloggers set cache='$blog', title='$title' where url='$address'"; print $query; I'm thinking that your single quotes preventd $blog, $title, $address form being expanded. - Original Message - From: "Jesse Lawrence"

Re: [PHP] Mysql update problems

2003-01-05 Thread Rick Emery
;jesse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 05, 2003 11:50 AM Subject: Re: [PHP] Mysql update problems No, the query is working fine... all variables are printing correctly. This is what has me confused. Everything seems to be as it should, it's ju

Fw: [PHP] Unexpected $end error?

2003-01-05 Thread Rick Emery
When you get an error that points to , it means you did not close a {} or "" In this case, you did not close the: if ($row = mysql_fetch_array($result)) { Although you did close the "while do {}" immediately thereafter. - Original Message - From: "Vincent Bouret" <[EMAIL PROTECTED]> T

Fw: [PHP] time stamp screwing up

2003-01-06 Thread Rick Emery
show us your database table structure (the whole thing). the NOW() will always work with a "date" or "timestamp" field - Original Message - From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> To: <> Sent: Monday, January 06, 2003 11:28 AM Subject: Re: [PHP] time stamp screwing up Well i am

Re: [PHP] Defaults in drop down list...

2003-01-06 Thread Rick Widmer
ted == $Index ) ? ' SELECTED' : ''; echo " $Value\n' } echo "\n"; } Then call lt like this ... State: Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] Img src

2003-01-07 Thread Rick Emery
the problem is the "" before the width word it should be "\" - Original Message - From: "Ezequiel Sapoznik" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, January 07, 2003 7:30 PM Subject: [PHP] Img src I am having a parse error in the following sentence: print ""; Thanks! Ezequiel -

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread Rick Emery
Is this your exact code? I ask, because the following should generate a parse error: echo ""; You have 3 double-quotes ("). - Original Message - From: "James Brennan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 7:29 PM Subject: [PHP] help - WHILE in FOREA

Re: [PHP] $_SERVER content

2003-01-08 Thread Rick Widmer
eone knows how to get a consitent content of $_SERVER? Or where and how can I configure my system to see the above? There isn't anything PHP can do about this, all it can do is return what the server sends. Browsers, firewalls and proxies can all decide to hide information from you. Rick

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Rick Emery
header("location: nextpage.php"); the above must be sent before any other text is output - Original Message - From: "Teo Petralia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 2:46 PM Subject: [PHP] How can I redirect to another php page Hi All! I would

RE: [PHP] apache + mod_php question

2003-01-08 Thread Rick Widmer
ur machine never ignores requests. Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] building web album - design questions

2003-01-09 Thread Rick Emery
1. Store images separately with pointers in the database. It permits faster database queries. 2. 3. int imagecopyresized ( resource dst_im, resource src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH) - Original Message - From: "Anders Thoresson"

Fw: [PHP] What means "ioctl"

2003-01-12 Thread Rick Emery
"ioctl" is an IO controls structure. Just look at the fopen("","r"). Do you notice anything missing? - Original Message - From: <[EMAIL PROTECTED]> To: <> Sent: Sunday, January 12, 2003 3:59 PM Subject: [PHP] What means "ioctl" I got the error-message: Warning: fopen("", "r") - Inappr

Re: [PHP] Error in variable when looping

2003-01-13 Thread Rick Emery
so where is $rowe set? Show us code that calls this page - Original Message - From: "menezesd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 6:21 PM Subject: [PHP] Error in variable when looping Hello friends, I have made the following table of data and a bu

  1   2   3   4   5   6   7   8   9   10   >