Re: [PHP] Threading code

2001-04-09 Thread Joe Stump
time I checked) was the reason I didn't go with it. --Joe Original Message On 4/9/01, 11:12:39 AM, "Matt Friedman" [EMAIL PROTECTED] wrote regarding Re: [PHP] Threading code: Check out: http://www.phorum.org/ We use phorum at: http://www.theparentreport.com

Re: [PHP] getting commandline ?

2001-04-08 Thread Joe Stump
$argv and $argc - also put #!/usr/local/bin/php -q at the top of your script (above the top ?) and then chmod +x it to run it like a regular script. --Joe On Sun, Apr 08, 2001 at 11:13:34PM +0200, NoSpeed wrote: Hi I want to write a small application that will change something in databases

Re: [PHP] anything wrong with php.net?

2001-04-08 Thread Joe Stump
I'm on it right now. --Joe On Sun, Apr 08, 2001 at 09:02:54PM -0300, Christian Dechery wrote: Is there anything wrong with www.php.net? I can't access it for two days now... . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web

Re: [PHP] Row colors

2001-04-08 Thread Joe Stump
tr bgcolor="? $cell_color; ?" --Joe On Mon, Apr 09, 2001 at 12:08:10AM +, Mike P wrote: I can change the column sof a table with the following code but how do I change the row colors instead.With the columns I have "i" to manipulate but not with rows. while ($r

Re: [PHP] Inputing data to a relational database

2001-04-08 Thread Joe Stump
www.mysql.com - Documentation - is you know how to insert data using SQL already then just make the PHP script. --Joe On Mon, Apr 09, 2001 at 01:11:57AM +0100, Nathan Roberts wrote: I am a nebie to Mysql/php and am currently working on an urgent project, a on-line catalogue. I have been

Re: [PHP] parse error

2001-04-08 Thread Joe Stump
Worked for me, but I had to make sure that $messagearray was in fact an array. So wrap that block of code in this: if(is_array($messagearray) sizeof($messagearray)) { } --Joe On Mon, Apr 09, 2001 at 01:13:00AM +0100, kenny.hibs wrote: I am getting a parse error in the following line

Re: [PHP] uninstalling PHP4

2001-04-08 Thread Joe Stump
I think the more important question is: Why would you want to uninstall it? ;o) --Joe On Sun, Apr 08, 2001 at 08:40:57PM -0400, David Loszewski wrote: how do I tell? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 08, 2001 8:32 PM

Re: [PHP] Row colors

2001-04-08 Thread Joe Stump
/ td's echo '/tr'; } ? On Sun, Apr 08, 2001 at 08:37:26PM -0400, Mike P wrote: That does not change every other row. -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 08, 2001 8:11 PM To: Mike P Cc: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] uninstalling PHP4

2001-04-08 Thread Joe Stump
No. PHP is totally independent of all DB's... --Joe On Sun, Apr 08, 2001 at 08:50:34PM -0400, David Loszewski wrote: because I uninstalled MySQL, don't you need MySQL to run PHP? -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 08, 2001 8:38 PM

Re: [PHP] lowest number in field

2001-04-07 Thread Joe Stump
SELECT * FROM table ORDER BY number LIMIT 1 --Joe On Sat, Apr 07, 2001 at 05:36:04PM +0100, george wrote: Is it possible to be able to query the DB find the lowest numebr in the table and then display it on the page. TIA George -- PHP General Mailing List (http

Re: [PHP] Date formatting

2001-04-06 Thread Joe Sheble (Wizaerd)
Something I almost always do when pulling dates from a mySQL table is format the date column in the query itself using the mySQL function DATE_FORMAT()... At 01:13 PM 4/6/01 +0100, Matt Davis wrote: Hi I am trying to format a date extracted from my DB. I have run my query and then have used

Re: [PHP] Help w/Error Message

2001-04-06 Thread Joe Sheble (Wizaerd)
In your query you have compid specified twice. If this field is named the same in two seperate tables, preface your fieldnames with the table names... $sql="SELECT fname, lname, users.compid, status, dept, room, bldg, phone, ticket_num, tickets.compid, date_rpt, request_type, hardware, model,

Re: [PHP] Array problem

2001-04-06 Thread Joe Stump
This would work ... ? $arrA = array(1,2,3,4,5,6); $arrB = array(9,8,7,6,5); // pick an arbitrary one to start with ... for($i = 0 ; $i = sizeof($arrB) ; ++$i) if(!in_array($arrB[$i],$arrA)) $arrA[] = $arrB[$i]; ? --Joe On Fri, Apr 06, 2001 at 09:19:52AM +0100, Alexis

Re: [PHP] Date formatting

2001-04-06 Thread Joe Stump
,$sec) = explode(':',$time); $foo = mktime($hour,$min,$sec,$month,$day,$year)."\n"; echo date("D j M",$foo); ? That would work ... --Joe On Fri, Apr 06, 2001 at 01:13:59PM +0100, Matt Davis wrote: Hi I am trying to format a date extracted from my DB. I have run my query

Re: [PHP] Nested for() loops?

2001-04-06 Thread Joe Stump
A copy and paste into foo.php and then a php -q foo.php yielded results for me. --Joe On Fri, Apr 06, 2001 at 10:44:59AM -0600, [EMAIL PROTECTED] wrote: Howdy Y'all! I'm trying to figure out why I'm having so much difficulty with nested for loops. As a test, I did this and it doesn't

Re: [PHP] Nested for() loops? - Now Multi Dimension Arrays

2001-04-06 Thread Joe Stump
You just do something like this: ? $arr = array(0,23,4,2,1); for($i = 0 ; $i 10 ; ++$i) $arrB[] = $arr; while(list(,$my_array) = each($arrB)) while(list($key,$val) = each($my_array)) echo $key.' - '.$val."\n"; ? Just throw arrays into arrays :O) --Joe O

Re: [PHP] Print or Echo.

2001-04-06 Thread Joe Stump
Than why the two different commands? Simple - some people come from C which uses print ... others come from languages that use echo. It fosters adaptation by other programmers. --Joe Thanks. -Sterling -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] current location

2001-04-05 Thread Joe Stump
on a unix system type: $path = `pwd`; --Joe On Thu, Apr 05, 2001 at 04:28:50PM +0800, Paul Juliano wrote: Hi, What's the php function to find out what server a php page is located? For example, the php page is at www.myserver.com. The php page should be able to display "We

Re: [PHP] scramble the code

2001-04-05 Thread Joe Sheble (Wizaerd)
This isn't quite accurate. WHen a form's method is set to "GET" (which BTW is the form's default method) the variables and their values are passed along the URL. If your form's method is set to "POST" then nothing should get passed along on the URL. If you see all your data in the URL,

Re: [PHP] scramble the code

2001-04-05 Thread Joe Sheble (Wizaerd)
methods. But in your special browser, they must be reveresed because... well... er I can't think of any good reason to reverse these in your special browser... At 10:10 AM 4/5/01 -0400, Scott Fletcher wrote: Well, mine does! Scott ""Joe Sheble (Wizaerd)"" [EM

Re: [PHP] Apache user

2001-04-05 Thread Joe Conway
Can anyone tell me how to get the user apache is running as from php? If you're on Linux/Unix, try: echo `whoami`; Hope this helps, Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] array speed

2001-04-05 Thread Joe Stump
it. --Joe On Thu, Apr 05, 2001 at 10:41:10PM +0300, Rouvas Stathis wrote: I wouldn't worry about that. Although it all depends by what do you mean by "speed":-) Anyway, you can always test your page with "ab" (part of the Apache installation, at least on Linux) -Stathis.

Re: [PHP] array speed

2001-04-05 Thread Joe Stump
let me be more clear about the microtime() - do something like: ? $start = microtime(); while(list($key,$val) = each($array)) { // do something } $end = microtime(); echo "It took ".($end - $start)." microseconds do loop through the array.\n"; ? --Joe

Re: [PHP] Apache user

2001-04-05 Thread Joe Conway
Actually no need for that if you use backticks. See http://www.php.net/manual/en/html/language.operators.execution.html#language .operators.execution Joe - Original Message - From: "Johnson, Kirk" [EMAIL PROTECTED] To: "PHP User Group" [EMAIL PROTECTED] Sent: Thursda

Re: [PHP] PHP and CVS

2001-04-05 Thread Joe Stump
applications) http://sourceforge.net/projects/publishtron We just released it open source ... it's hackers only right now, but someone is working on making it all pretty and easy to install. --Joe On Thu, Apr 05, 2001 at 05:17:51PM -0400, ..s.c.o.t.t.. [gts] wrote: do any of you know of any nice

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Joe Stump
../../../../../../../ - ../n or chdir(); --Joe On Mon, Apr 02, 2001 at 06:44:30PM -0400, Chris Anderson wrote: I know using ../ in a path moves to the parent directory. But is there a way to move back farther

Re: [PHP] MySql PHP - Looking for the right command

2001-04-05 Thread Joe Stump
This is how you can do it (just tried it on my news with my news categoryID's) i'll modify slightly for your purpose with psuedo code ... SELECT carType,count(carType) FROM cars GROUP BY carType; --Joe On Fri, Apr 06, 2001 at 11:28:00AM +1200, YoBro wrote: Hello, I have a site that lists

Re: [PHP] Read one word in file

2001-04-05 Thread Joe Stump
then // do $numbers[] = str_replace('.','',$arr[0]); } } for($i = 0 ; $i sizeof($numbers) ; ++$i) echo $numbers[$i]."\n"; ? --Joe On Thu, Apr 05, 2001 at 04:50:37PM -0700, Andrew V. Romero wrote: I have a php script that reads a file that looks something like this: 1.

Re: [PHP] better functionality in query ?

2001-04-05 Thread Joe Stump
people type in the first 4 letters of the persons name. --Joe On Thu, Apr 05, 2001 at 04:51:47PM -0700, Jerry Lake wrote: Damn, if I'd a known it was that easy ;) Thanks for the help, works great now. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http

Re: [PHP] drop-down menu variables

2001-04-05 Thread Joe Stump
You should all check out libHTMLForm at http://www.nirvani.net/software - it has all sorts of functions for writing HTML forms easily and painlessly. I use it all the time now (shameless plug - my roommate wrote it a while back). --Joe On Fri, Apr 06, 2001 at 02:35:11AM +0200, Richard wrote

Re: [PHP] Item in two db tables

2001-04-04 Thread Joe Sheble (Wizaerd)
I'm not 100% certain about this, but I believe you want to look at using a LEFT OUTER JOIN At 11:37 AM 4/4/01 -0400, bill wrote: If I want to find a list of items in one table whose id does not appear in another table, can that be done in one query? I can only figure it out if I use two

Re: [PHP] Building an array from a URL

2001-04-04 Thread Joe Stump
FYI you can send data like this on the url: http://www.foo.com/script.php?test[joe]=stumptest[harry]=bartest[jane]=scott Then $test will be an array that translates to this in PHP: ? $test = array( joe = 'stump', harry = 'bar

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Joe Stump
about lists? --Joe On Wed, Apr 04, 2001 at 10:04:53AM -0700, Rasmus Lerdorf wrote: Done. Anything from mail.thecasino.com and thecasino.com is now blocked. -Rasmus On Wed, 4 Apr 2001, TV Karthick Kumar wrote: Can't we just get rid of this spam: [EMAIL PROTECTED] and not allow to continue

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Joe Stump
these spammers from coming back.. True, ezmlm (wich kicks ass), allows all of these. I suggest anyone who hasn't checked out qmail on the list to check it out. It works great with PHP and I've even made my own mailing list using qmail with PHP :O) --Joe Bye, B. -- PHP General Mailing

Re: [PHP] filename into variable.

2001-04-04 Thread Joe Stump
] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] /**\ *Joe Stump - PHP/SQL/HTML Developer * * http://www.care2.com - http

Re: [PHP] Building an array from a URL

2001-04-04 Thread Joe Stump
It works for me in production. On Wed, Apr 04, 2001 at 08:56:53PM -0400, Mike Gifford wrote: I tried this, but it converted [ and ] to url friendly codes. Does this still work? Mike Joe Stump wrote: FYI you can send data like this on the url: http://www.foo.com/script.php?test

Re: [PHP] Building an array from a URL

2001-04-04 Thread Joe Stump
Ok - say you have this: $foo = array( 0 = 'joe', 1 = 'stump', 2 = 'there'); while(list($key,$val) = each($foo)) $args[] = 'array['.$key.']='.$val; $url = 'http://www.server.com/script.html'; $url .= '?'.implode('',$args

[PHP] PHP print

2001-04-02 Thread Joe
torial out there then I would like to make my own. Thank you! Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] C and PHP

2001-04-01 Thread Joe Stump
You might want to look in the PHP source code at the README.EXT_SKEL file for info on how to incorporate that stuff. --Joe On Sat, Mar 31, 2001 at 08:49:30PM +0200, Ft Karras wrote: Somebody knows if it is possible to link C and PHP? I have a C library and need to 'include' with PHP code

[PHP] Search Engines

2001-04-01 Thread Joe Montiel
Hello, I am new to the list and to php...I would like to know how php does with the major search engines. Do I need to do something extra to make it work? Will it index if I am pulling my content from text files? (If this is in an archive somewhere, point me to it). Thank you! Joe -- PHP

Re: [PHP] Catagory list

2001-03-31 Thread Joe Stump
; while($row = mysql_fetch_array($x)) { // echo articles here } } The permanent solution is to make a separate table called "categories" and then do a join on the categoryID from the two tables. --Joe On Fri, Mar 30, 2001 at 10:33:11PM +1000, Mark Bayfie

[PHP] something of interest on the GTK front

2001-03-31 Thread Joe Stump
a pretty comprehensive example of GtkText(), which seemed to be lacking. --Joe /**\ *Joe Stump - PHP/SQL/HTML Developer * * http://www.care2.com - http://www.miester.org - http

RE: [PHP] This PHP list

2001-03-29 Thread Joe Sheble (Wizaerd)
Typically I would never respond to this type of thread discussion, but it's one that gives me a great amount of frustration from time to time. I think this level of frustration stems from the fact that a lot of these 'newbie' questions are even more basic than a PHP newbie should be asking.

RE: [PHP] This PHP list

2001-03-29 Thread Joe Sheble (Wizaerd)
I wouldn't expect a programmer to walk in off the street and try to do graphic design without having any concept of graphic design. I wouldn't expect a mechanic to walk into the kitchen and expect to build a souffle. I wouldn't expect a gardner to walk in and perform brain surgery. And I

[PHP] Q: php.ini

2001-03-28 Thread Joe Rice
Hi, I made a change to my php.ini and phpinfo() doesn't reflect the change? i set sendmail_path = "/usr/lib/sendmail -OIgnoreDots -t" and phpinfo() still shows the default sendmail_path = "/usr/lib/sendmail -t -i" how can i get this to work correctl

Re: [PHP] Q: php.ini

2001-03-28 Thread Joe Rice
sorry for the lame question, that was what i needed to do. Thanks, joe Jon Rosenberg([EMAIL PROTECTED])@Wed, Mar 28, 2001 at 11:38:19AM -0500: You need to restart your web server (apache, most likely). Jon - Original Message - From: "Joe Rice" [EMAIL PROTECTED]

Re: [PHP] file deletions ....

2001-03-28 Thread Joe Stump
Make sure that the PHP user (usually nobody) has the access to delete those files - I usually just do `rm -fr /path/to/file.foo`; and it works fine. --Joe On Wed, Mar 28, 2001 at 09:42:36AM +0100, Steve Brett wrote: hi, i need to delete files in my web folder so i can 'tidy' them up. i have

Re: [PHP] New PHP-GTK Site

2001-03-28 Thread Joe Stump
://gtk.php.net http://gtk.php-coder.net --Joe On Wed, Mar 28, 2001 at 11:19:24AM -0800, elias wrote: What is PHP-GTK? Can you just write me a short list of what it can do? "Joe Stump" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've noticed

Re: [PHP] Cookie not getting set in IE 5 but no problem in Netscape

2001-03-28 Thread Joe Stump
Ah yes, the infamous IE cookie problem - look at the expire time - I be it destroys the cookie as soon as it gets it because the expire time is either on or before the time the cookie was sent. --Joe On Wed, Mar 28, 2001 at 07:16:52PM +0800, Floyd Piedad wrote: My program works really well

Re: [PHP] Curious

2001-03-28 Thread Joe Stump
.$url.'"'.$title.'/a'."\n"; or echo "This is Mike's Homepage"; --Joe On Wed, Mar 28, 2001 at 12:10:02PM +0200, Christian Reiniger wrote: On Wednesday 28 March 2001 08:18, you wrote: in general, I avoid using quotes where possible (such as in the following) font size=3 fa

Re: [PHP] Passing Special Characters in Query String

2001-03-28 Thread Joe Stump
try rawurlencode() Or just plain urlencode() - remember to use urldecode() on the other side if you plan on putting it in the DB. --Joe -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) /* you are not expected to understand this */ - from the UNIX V6 kernel source

[PHP] Variable scope problem

2001-03-28 Thread Joe Nelson
I have two functions like the ones below. If the first one creates a variable as global, shouldn't it be accesible to the second function? function setGlobal() { global $test; $test = "123"; } function getGlobal() { global $test; echo $test; } -- PHP

[PHP] search safe URLs

2001-03-27 Thread Joe Sheble aka Wizaerd
In order to use URLs without ? and , there has to be some re-configuration in Apache, correct? So somebody who didn't have access to httpd.conf couldn't use this methodology? Or if this is completely incorrect, where can I find more info on implementing it strictly in PHP? Joseph E. Sheble

Re: [PHP] DF output

2001-03-27 Thread Joe Brown
nobody has execute permission on ps? Probably quite the opposite, your webserver user doesn't have execute permission on ps, so there is no execution or return value. "Steven Shepherd" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am writing a script,

Re: [PHP] search safe URLs

2001-03-27 Thread Joe Sheble (Wizaerd)
2001, Joe Sheble aka Wizaerd wrote: In order to use URLs without ? and , there has to be some re-configuration in Apache, correct? So somebody who didn't have access to httpd.conf couldn't use this methodology? Or if this is completely incorrect, where can I find more info on implementing

Re: [PHP] DF output

2001-03-27 Thread Joe Brown
ut i dont want 'ps', I want 'top'). Ran top using su to the user 'www' from the command line and was able to run it fine. On Tue, 27 Mar 2001, Joe Brown wrote: Date: Tue, 27 Mar 2001 12:35:08 -0500 From: Joe Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] "DF

[PHP] New PHP-GTK Site

2001-03-27 Thread Joe Stump
, if anyone wants to help out (admin, howtos, etc.) please feel free to contact me. As for me, I'm tired and plan on working on it more tomarrow :o) --Joe /*\ *Joe Stump * *www.Care2.com * *Office: 650.328.0198 * *Extension: 122

[PHP] Re: [PHP-GTK] New PHP-GTK Site

2001-03-27 Thread Joe Stump
So tired I forgot to put in the URL: http://gtk.php-coder.net --Joe On Tue, Mar 27, 2001 at 10:32:26PM -0500, Joe Stump wrote: I've noticed there isn't really a jumping off point for the PHP-GTK beginners and users. I spent the last few hours throwing a site together that has the basics

Re: [PHP] DF output

2001-03-27 Thread Joe Brown
en Shepherd [EMAIL PROTECTED] wrote: Bad example (changed to ps and it works actually..but i dont want 'ps', I want 'top'). Ran top using su to the user 'www' from the command line and was able to run it fine. On Tue, 27 Mar 2001, Joe Brown wrote: Date: Tue, 27 Mar 2001 12:35:08 -0500

Re: [PHP] Another problem installing PHP under Solaris 8.0

2001-03-26 Thread Joe Rice
you need ar. my solaris 8 install has it in /usr/ccs/bin if you have it there, make sure /usr/ccs/bin is in your PATH. if you need to know what package ar is part of let me know. joe Emiliano Marmonti([EMAIL PROTECTED])@Mon, Mar 26, 2001 at 03:12:00PM -0300: Dear Friends: I have had

RE: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Joe Sheble \(Wizaerd\)
in the onCLick event of the checkbox call a javascript function. In that function use a window.open() method to open aother browser window, using the open() methods various properties to control how that browser window looks and feels. For the URL for that browser window, make it a PHP script

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Joe Brown
Re-create the file. You're most of the way there. if( $formSubmit ) { echo "Your news has been processed."; $filename = "news.txt"; //This is simpler than messing with an array of the original content. $fp = fopen ($filename, "r"); $newsSubmit = fread ($fd, filesize ($filename)); fclose

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Joe Brown
Take a closer look at the previous message I sent $filename was defined as: $filename="news.txt"; ""Dddogbruce (@home.com)"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When you say $newsSubmit = fread ($fd, filesize ($filename)); Do you mean specify the

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Joe Brown
maybe spinning the 'd' in $fd 180 degrees to make it a p will help... Sorry, haven't tried this myself, typo's happen. heh, I'm still trying to compile php 4 windows :-( been hoping for a helping hand. ""Dddogbruce (@home.com)"" [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] random letters and numbers

2001-03-24 Thread Joe Stump
Sure - use md5() --Joe On Sat, Mar 24, 2001 at 12:05:49PM -0500, Randy Johnson wrote: Is there an easy way to create random numbers and letters for a file example http://www.mydomain.com/1w2e3rff.txt and then after they download it have it be deleted off the server? thanks

Re: [PHP] [PHP4]

2001-03-24 Thread Joe Brown
if($formSubmit) { echo "form submitted: $frmName"; //= have you tried this to make sure $formSubmit is true? $newsSubmit = file("news.txt"); //RTM, your not using file() the way it's inteneded. $fp = fopen("news.txt", 'a'); //looks good fwrite($fp, $frmName); //looks good, but does

[PHP] Compiling, How to resolve COM

2001-03-24 Thread Joe Brown
link.exe. Please enlighten me. Thanks, -Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] key generation with mcrypt

2001-03-23 Thread Joe Conway
substitute the built in MD5 function for SHA1. Hope this helps, Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] limiting .htaccess reach

2001-03-23 Thread Joe Sheble aka Wizaerd
I'm using an .htaccess file to auto_append and auto_prepend files within a specific directory, and it works great. Unfortunaltely if I create a new sub-directory that doesn't have it's own .htaccess file, it too tries to use the auto_append and auto_prepend values of the .htaccess file from

[PHP] limiting .htaccess reach

2001-03-23 Thread Joe Sheble (Wizaerd)
I'm using an .htaccess file to auto_append and auto_prepend files within a specific directory, and it works great. Unfortunaltely if I create a new sub-directory that doesn't have it's own .htaccess file, it too tries to use the auto_append and auto_prepend values of the .htaccess file from

[PHP] Environment Variables

2001-03-22 Thread Joe Rice
how do you sent a Environment Variables for the php script to execute in? i need to set INFORMIXSERVER so i can use the informix php functions. This is going live tomorrow and we don't have it working yet...PLEASE HELP! thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing

Re: [PHP] Environment Variables

2001-03-22 Thread Joe Rice
i figured it out...thanks. putenv() Joe Rice([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 03:16:35PM -0600: how do you sent a Environment Variables for the php script to execute in? i need to set INFORMIXSERVER so i can use the informix php functions. This is going live tomorrow and we

Re: [PHP] ODBC Oracle

2001-03-22 Thread Joe Brown
There is a timeout, that should halt a script if it runs too long. If you can, check php.ini set max_execution_time to something greater than 30 seconds, see if that helps. ""Brooks, Ken"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I thought maybe the php

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Joe Sheble (Wizaerd)
virtual (PHP 3, PHP 4 ) Perform an Apache sub-request int virtual (string filename) Virtual() is an Apache-specific function which is equivalent to !–#include virtual...– in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else

[PHP] Q: Informix + PHP + Apache + Solaris 8

2001-03-21 Thread Joe Rice
is looking for $INFORMIXDIR/bin/esql which isn't installed by IConnect either. Thanks, joe rice Web Admin www.bigidea.com -- 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 administrato

Re: [PHP] Q: Informix + PHP + Apache + Solaris 8

2001-03-21 Thread Joe Rice
be greatly appreciated. Thanks, joe Chris Fry([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 09:45:14AM +1100: For SCO I had to download the ESQL package separately - I think you have to do the same (if it's available). Chris Joe Rice wrote: Hi, I'm trying to get this combo to work "Inf

Re: [PHP] Q: Informix + PHP + Apache + Solaris 8

2001-03-21 Thread Joe Rice
What ended up working for me is; LD_RUN_PATH=$INFORMIXDIR/lib then i recompiled php and when i started apache everything seemed to work. I didn't go the LD_LIBRARY_PATH way because of http://www.visi.com/~barr/ldpath.html titled "Why LD_LIBRARY_PATH is bad" Thanks for all the help

Re: [PHP] get filename?

2001-03-20 Thread Joe Sheble (Wizaerd)
excuse my ignorance here, but is this a configurable options? Anytime I use $PHP_SELF, it strictly the directory and filename.. for example say I have a forum running at www.somedomain.com/forum/index?Message=12 my $PHP_SELF strictly gives me /forum/index.php. I know this for a fact

[PHP] Q: NSAPI support

2001-03-20 Thread Joe Rice
Hi, I have a funny situation where i can't use apache due Macromedia's ARIA software and lack of it's support for apache. So, i'm stuck with using iPlanet. My question is how stable,fast,usable is the PHP4 NSAPI support? Thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing

RE: [PHP] cf to php

2001-03-19 Thread Joe Sheble (Wizaerd)
the PHP equivalent is isset() if( !isset( $url_Page )) At 03:09 AM 3/19/01 -0500, Jack Dempsey wrote: What exactly does that do chris? If you're trying to check and see if there's a file on the server, then you could do something with readdir, is_file, etc...if you want to post what that

RE: [PHP] Can you recommend an ISP with the following?

2001-03-19 Thread Joe Sheble (Wizaerd)
I've found http://www.jtlnet.com to be very good and especially responsive... At 09:09 AM 3/19/01 +, Matt Williams wrote: *PHP4 *MySQL *Telnet access *Decent Support *Preferably a Cobalt server (or one with a VERY good Web-based administrator, most other types of Web

[PHP] Associative vs normal arrays

2001-03-16 Thread Joe
Is there a way to determine if an array is associative or not? Maybe something similar to the is_array() function ?? Thanks, JOE

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread Joe
Oops, how embarassing :-( My son must have been playing with it. Thanks! - Original Message - From: Chris Mulcahy [EMAIL PROTECTED] To: 'Joe' [EMAIL PROTECTED] Sent: Friday, March 16, 2001 3:51 PM Subject: RE: [PHP] Associative vs normal arrays Joe: Were you aware your system time

Re: [PHP] Linux/Apache/PHP Windows/IIS/ColdFusion

2001-03-14 Thread Joe Sheble (Wizaerd)
h our network. There is also a basic authentication piece to access the intranet externally through the internet but requires a domain name, username and password. The management feels this is acceptable because there are very few (VERY few) people accessing the intranet this way. "

Re: [PHP] I want this magic directory

2001-03-14 Thread Joe Stump
Read up on forcetype'ing on phpbuilder.com - it will do just what you want it to do. --Joe On Wed, Mar 14, 2001 at 06:08:18PM +0800, Alex wrote: I just want every customer on my site get his own unique id as his directory name but the pages requested are all processed by the root

[PHP] Two Way Encryption

2001-03-13 Thread Joe Njeru
Hi All, I'm looking for a two way encryption function that I can use to encrypt a cookie value. I have had experience with MD5 but its one way. Is there one I can use with a key in php? Thanks in advance, Joe Njeru, Nairobi Kenya. "Where the women are beautiful" -- PHP General Ma

AW: AW: [PHP] Cache Database-driven site

2001-03-13 Thread Joe Maier
Aaron, this is obviously exactly what i need!! Thanks a lot - this saved me days of work! Joe -Ursprungliche Nachricht- Von: Aaron Tuller [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 13. Marz 2001 05:41 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: Re: AW: [PHP] Cache Database

Re: [PHP] Bug or what?

2001-03-12 Thread Joe Stump
it without setting it. --Joe On Mon, Mar 12, 2001 at 01:08:37PM -0600, Fabio Ottolini (EDB) wrote: First File - index.php ?php header("Pragma: no-cache"); header("Cache-Control: no-cache, must-revalidate"); if(empty($check)) { $page = "index.php?check=1"; header(

Re: [PHP] Formatting Dates

2001-03-08 Thread Joe Sheble (Wizaerd)
You could use the mySQL function DATE_FORMAT() in your query string.. SELECT DATE_FORMAT( DateAdded, '%m/%d/%Y' ) as d_Added FROM myDB At 12:52 PM 1/8/01 -0500, stas wrote: Hello, How can I format a date stored in the database in a Date field. It's in this format: -mm-dd I understand

RE: [PHP] populate select box with contents of a file?

2001-03-08 Thread Joe Sheble (Wizaerd)
?php $handle=opendir('.'); echo "select name=image_url"; while (false!==($file = readdir($handle))) { // new code here $cExt = explode( ".", $file ); // and here if ($file != "." $file != ".." ( strtolower( $cExt[1] ) ==

Re: [PHP] Stumped Newbie: Can't get results in db query even though everything checks - what am I missing?

2001-03-08 Thread Joe Sheble (Wizaerd)
I'd start by adding the mysql_error() function in your die() statement... $result = mysql_query($sql,$connection) or die ("Couldn't get results: " . mysql_error()); it might give more information to help you find the problem... At 10:15 AM 3/8/01 -0800, Nicole Lallande wrote: Greetings, I

Re: [PHP] How to get oid after table insert? [postgresql]

2001-03-07 Thread Joe Conway
something like: So, how do I insert a new record into the database, and get the oid of the record I just inserted? See http://www.php.net/manual/en/function.pg-getlastoid.php Hope this helps, Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Q: php4,cache,performance,mod_perl,zend cache, APC

2001-03-06 Thread Joe Rice
, is there anywhere with stated benchmarks that i can see to compare? Thanks, joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] 2 questions about performance...

2001-03-06 Thread Joe Sheble \(Wizaerd\)
Is it in-efficient to use shuffle()? I have a simple 6 element array with 6 strings (URLs to images) and I'm using shuffle() to display all of them in random order upon each page load. The images take a long time (of course is relative, it's mere seconds) but when I remove the call to shuffle,

[PHP] How big is too big?

2001-03-04 Thread Joe Sheble (Wizaerd)
Is there a practical limit one should make on a php file to be included? I'm putting all my global variable declarations and function defintitions into one file to be included across the site. I had thought about splitting them different files based on functionality, but then I thought it would

[PHP] How big is too big?

2001-03-03 Thread Joe Sheble (Wizaerd)
Is there a practical limit one should make on a php file to be included? I'm putting all my global variable declarations and function defintitions into one file to be included across the site. I had thought about splitting them different files based on functionality, but then I thought it would

Re: [PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Joe Stump
, 'Sep' = 9,'Oct' = 10, 'Nov' = 11,'Dec' = 11); $foo = explode(' ',$date); $month = $months[$foo[0]]; $day = str_replace(',',$foo[1]); $year = $foo[2]; return mktime(0,0,0,$month,$day,$year); } --Joe On Fri, Mar 02, 2001 at 06:58:45PM -0500

[PHP] Export Linux Users and Password's to MYSQL database

2001-03-01 Thread Joe Njeru
Hi All, Is there a way I can export the users in my Linux machine to a mysql database. Together with their passwords without manually entering all of them. I will appreciate any input. Thanks in advance, Joe Njeru Nairobi, Kenya. "Where the sun shines all day!!" -- PHP Gener

Re: [PHP] mySQL table joins are slow, need rebuild?

2001-02-27 Thread Joe Stump
with userID as the key char(15) (don't ask, it's an old design made by a former employee) which has roughly 1.6 million rows in it. We regularily do joins on it with other tables that have thousands of records in less than .05 seconds. This sounds like a table structure problem to me. --Joe On Tue

Re: [PHP] Direction Help!

2001-02-27 Thread Joe Stump
on to "advanced features" is to challenge yourself and have a good understanding of programming concepts, UNIX, and the various protocols you work with. Just my $0.02 --Joe On Tue, Feb 27, 2001 at 04:01:22PM -0700, Web master wrote: Hello Php Gurus, Need help on direction. I am

<    1   2   3   4   5   6   7   >