RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Michael Egan
I put together the following function to give me a password consisting of random letters and numbers. It should be fairly clear as to how you'd need to tweak it to just give you the characters you'd need interspersed with spaces. Hope this helps - I also hope anybody else is fairly gentle with

[PHP] running PHP through command shell

2003-03-19 Thread Foong
Does anybody knows why I get call to undefined function for mysql_connect when running PHP through command shell. but it works fine when accessing the script through web browser. Foong -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mailing list addon for PHP-Nuke-type app

2003-03-19 Thread David Russell
Hi all, I am looking for a PHP-Nuke/Slashdot -type of php-based application, which can run on an Interbase database. On drawback I currently have with the others is that it does not seem to have a listserv type of interface, with subscription/unsubscription requests/archives/digests/etc. Does

Re: [PHP] running PHP through command shell

2003-03-19 Thread Jason Wong
On Wednesday 19 March 2003 16:34, Foong wrote: Does anybody knows why I get call to undefined function for mysql_connect when running PHP through command shell. but it works fine when accessing the script through web browser. Most likely your php binary (CLI, not module) was not compiled with

[PHP] mail() function.

2003-03-19 Thread Fredrik
Hi I have a problem whith the mail() function. I have used this function several times, but to day it don't work.. I use it like this: mail( $to, $subjekt, $body, $from ); and i got this warning: Warning: Failed to Connect in \\HQ-ADMIN\mail.php on line 237 Fred -- PHP

RE: [PHP] I.P. range authentication

2003-03-19 Thread Ernest E Vogelsinger
At 02:51 19.03.2003, John W. Holmes said: [snip] $abytes = explode('.', $ip); // explode the IP string $ip = 0; foreach ($abytes as $byte) $ip = ($ip 8) + $byte; This will give you the valid numeric equivalent of the IP address. Isn't that

[PHP] Apache and PHP Problem

2003-03-19 Thread t-systems-fitz
Hello guys, we have a strange problem with apache and php. apache 1.3.27 and php 4.23 is running on a solaris-machine with 2 ipadresses. apache serves request at both interfaces. Everything works fine, but every 6 days at one ip-address the clients get no response from apache. Apache logs this

Re: [PHP] Which is quicker, if-else statements

2003-03-19 Thread Ernest E Vogelsinger
At 04:38 19.03.2003, -{ Rene Brehmer }- said: [snip] I'm totally lost here ... what does that mean??? Reminds me of assembler, except that assembler is more like: 0001 jnp e002 e003 0005 0002 jmp e002 e003 0008 And so on (not sure if that's fully correct

[PHP] remove ' from string

2003-03-19 Thread Fredrik
Hi Any functions to remove'from a longstring? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remove ' from string

2003-03-19 Thread Dan Hardiker
Any functions to remove'from a longstring? ?php $myLongString = ..'..'.'.; $myLongString = str_replace(', , $myLongString); ? et voila! Simple huh ;) For more info, check out: http://www.php.net/str_replace -- Dan Hardiker [EMAIL PROTECTED] ADAM Software Systems

[PHP] Re: Need help with coding problem

2003-03-19 Thread Tony Burgess
You seem to be missing your last bracket for the while loop that you started to state the end of the block. Ben C. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a subscription service and am trying to not allow the buyer to proceed purchasing another subscription if one of

[PHP] MySQL qusetion

2003-03-19 Thread Marc Bakker
Hello, I want have a Apache/PHP/MySQL configuration running on Win2000 (SP3). In my website I have a file-upload page where uses can upload a file. The max size of the upload has to be set in the mysql.ini file but I am not able to do this. I use winMySQLAdmin v1.4. When I add in the tab 'my.ini

php-general Digest 19 Mar 2003 11:12:59 -0000 Issue 1947

2003-03-19 Thread php-general-digest-help
php-general Digest 19 Mar 2003 11:12:59 - Issue 1947 Topics (messages 140213 through 140271): Re: Using PHP to get a word count of a MSword doc 140213 by: Pete James 140236 by: -{ Rene Brehmer }- 140237 by: -{ Rene Brehmer }- php and javascript 140214 by:

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Abdul-wahid Paterson
Hi, It is not a good idea to seed the random number generator inside the for loop. It should only be seeded once during the execution of a script. Your function could be susceptible to time attacks as it may not be difficult to guess the seeding pattern and hence guess what random numbers were

RE: [PHP] Does PHP run better under any specific unix os?

2003-03-19 Thread reven
-{ Rene Brehmer }- wrote: But all *nix share the same issue: You need to build the files yourself, from the same source files. So the config is the same nomatter what. I'm working with RH 8.0 out of the box and it only needed a few minor tweaks to get php going with everything else (MySQL,

RE: [PHP] remove ' from string

2003-03-19 Thread John W. Holmes
Any functions to remove'from a longstring? Care to say why you need to do this? You may be doing a workaround instead of a solution... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing

RE: [PHP] Need help with coding problem

2003-03-19 Thread John W. Holmes
I have a subscription service and am trying to not allow the buyer to proceed purchasing another subscription if one of their subscriptions is over 29 days past due in their payment. I am trying to query each invoice and checking to see if it is past due more than 29 days, if it is I want a

RE: [PHP] LIsting all the Members who have not loged in for 60 days ...

2003-03-19 Thread John W. Holmes
$lastDate is a unix time stamp in mySql ... how can i list ONLY the users who have not logged in for 60days? SELECT name FROM table WHERE FROM_UNIXTIME(lastDate) CURDATE() - INTERVAL 60 DAY ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today.

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Abdul-wahid Paterson
BTW, This is one of the functions I use you might find it helpful in trimming down your function. function gen_password($length = 8) { $chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789; for($i = 0; $i $length; $i++) { $x = rand(0, strlen($chars) -1);

[PHP] MySQL Date

2003-03-19 Thread shaun
Hi, I have a date stored in a table in my MySQL Database using a DATE type for the column. How can i compare the date in the table to today e.g. $today = mysql_result($result, $i, Booking_Date); if($today = *HELP*){ echo you are booked today; }else{ echo you are free today; } thanks

Re: [PHP] MySQL qusetion

2003-03-19 Thread Marek Kilimajer
I don't know about the tool, but maximum file upload is set in php.ini - upload_max_filesize, post_max_size must be higher. Restart apache afterwards Marc Bakker wrote: Hello, I want have a Apache/PHP/MySQL configuration running on Win2000 (SP3). In my website I have a file-upload page where

[PHP] Proc_open() problems

2003-03-19 Thread Piero B. Contezini
I'm having problems while opening a ssh session thru proc_open(), anyone knows why i can see the remote terminal prompt while reading the stdout? It just doesn't appear! Piero It occurred to me by intuition, and music was the driving force behind that intuition. My discovery was the result of

RE: [PHP] MySQL qusetion

2003-03-19 Thread Mike Hillyer
WinMySQLAdmin has been discontinued, it is replaces by MyCC, also available from the mysql web site. Mike Hillyer -Original Message- From: Marc Bakker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:13 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL qusetion Hello, I want

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Jon Haworth
Hi, function gen_password($length = 8) { $chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789; [snip] Just as a tip - if you want to save hassle for yourself and your users, remove the following characters from that string: - 1 (number one) - l (lower-case letter L) -

RE: [PHP] MySQL Date

2003-03-19 Thread Barajas, Arturo
Shaun, It should be: date(Y-m-d). MySQL stores the dates as -mm-dd, and that function returns the current date on the format you need. Check the date() function on the php manual. -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448

Re: [PHP] php and javascript

2003-03-19 Thread Antoine
thank you so much... I got the function working On Tue, 2003-03-18 at 17:52, Jim Lucas wrote: you are trying to include a variable inside a single quoted string. change the echo line to this. echo script language='javascript' window.location = '$thepage' /script; Jim - Original

Re: [PHP] Proc_open() problems

2003-03-19 Thread Marek Kilimajer
The problem is that ssh (and various others, like passwd) command does not use the standard input/output functions, but there is a workaround program for this, but I don't remember its name. Piero B. Contezini wrote: I'm having problems while opening a ssh session thru proc_open(), anyone

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-19 Thread Erik Price
Brad Wright wrote: Erik, thanks, are you able to pint me to some good reference sources on tokenizer's... i have never come across them before I have been scouring the web, and am coming up a decided blank. :) The only tokenizers I have used are the StringTokenizer and StreamTokenizer classes

[PHP] register_globals per virtual host

2003-03-19 Thread Dave [Hawk-Systems]
a while ago we upgraded the php installations on our servers. for a quick fix we set register_globals to on for code compatibility. Since then we have been cleaning up code to eliminate this. We likely still have some virtual hosts who are using these globals though, so while we are wanting

Re: [PHP] Posting Query Results to an HTML form

2003-03-19 Thread -{ Rene Brehmer }-
On Tue, 18 Mar 2003 22:13:13 -0500, John W. Holmes wrote about RE: [PHP] Posting Query Results to an HTML form what the universal translator turned into this: No, there's no PHP function, but there is an HTML trick that you can use: putting quotes around your values! input type=text name=name

[PHP] iODBC PHP

2003-03-19 Thread pinnockio
Hello, I'm using PHP/Apache and iODBC on a Linux-box to access a database on a Win2K-box. Everything works fine, but I wondered if there exists an PEAR abstraction-layer over iODBC (so I could use DB::function() - calls). Or does the unixODBC- Driver Manager (or any other driver manager)

[PHP] Passing variable from webpage to php (newbie?)

2003-03-19 Thread Joe Kupiszewski
I think I already tried to post once, so sorry if this is a duplicate, but I don't see my first attempt. I am trying to do what should be a relatively simple and basic task. I've got a php script/page that has a switch/case selection statement in it. Obviously, depending on what value a

[PHP] PHP and IIS 5.0

2003-03-19 Thread Beauford.2002
Hi, I am putting together a website for a customer who insists on using IIS running on Windows XP and I'm running into some problems. It appears that no matter what PHP script I run, I'm getting tons of errors saying this variable or that variable is undefined. I have global variables turned on

[PHP] Re: Passing variable from webpage to php (newbie?)

2003-03-19 Thread Bobby Patel
You have register_globals set to off (read up on register globals in php.net). your code should read $HTTP_POST_VARS['action'] or $_POST['action'] (depending on PHP version) INSTEAD of just $action. so to test an if:: if ($HTTP_POST_VARS['action']==1) { /* Code for if action is equal to 1 */ }

Re: [PHP] Subtotal

2003-03-19 Thread Marek Kilimajer
SELECT *, SUM(units) subtotal FROM table GROUP BY date - do you mean this? Mike Smith wrote: I'm trying to present a simple SELECT statement GROUPED by date. Ex. WOUNITSOEMCOMMENTSDATE 123 10MeNotes03/18/2003 456 5

Re: [PHP] Re: Passing variable from webpage to php (newbie?)

2003-03-19 Thread Adam Voigt
That's actually a GET request, so $_GET['action'], instead of $_POST. On Wed, 2003-03-19 at 11:18, Bobby Patel wrote: You have register_globals set to off (read up on register globals in php.net). your code should read $HTTP_POST_VARS['action'] or $_POST['action'] (depending on

Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
oops, miscounted a postion of the md5 parentheses :-0 Jason k Larson wrote: First of all, the example you gave is only using one argument to the MD5 function. Secondly, if you *want* to seed/salt the MD5 with a key you can use: http://www.php.net/manual/en/ref.mhash.php -- Jason k Larson aka:

RES: [PHP] Proc_open() problems

2003-03-19 Thread Piero B. Contezini
Do you have any idea where I can find more info about it? Piero -Mensagem original- De: Marek Kilimajer [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 19 de março de 2003 12:02 Para: Piero B. Contezini Cc: [EMAIL PROTECTED] Assunto: Re: [PHP] Proc_open() problems The problem is

Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
I don't see anywhere on that page where it shows using a seed. It shows **selecting a hash algorithm**, but no salt. Maybe that's the second argument that you're looking at. Jason k Larson wrote: First of all, the example you gave is only using one argument to the MD5 function. Secondly, if

Re: [PHP] PHP and IIS 5.0

2003-03-19 Thread Lowell Allen
The error reporting level setting is set higher on the Windows box than on your Linux box. See info in the manual about changing, or define all those variables. HTH -- Lowell Allen From: Beauford.2002 [EMAIL PROTECTED] Date: Wed, 19 Mar 2003 11:11:42 -0500 To: PHP General [EMAIL PROTECTED]

Re: RES: [PHP] Proc_open() problems

2003-03-19 Thread Marek Kilimajer
search freshmeat.net Piero B. Contezini wrote: Do you have any idea where I can find more info about it? Piero -Mensagem original- De: Marek Kilimajer [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 19 de março de 2003 12:02 Para: Piero B. Contezini Cc: [EMAIL PROTECTED] Assunto:

RE: [PHP] Subtotal

2003-03-19 Thread Mike Smith
Here is my query (MSSQL 2000): SELECT [rushqty], [wooem], [rushglschk], [rushglsdate], [rushmtlchk], [rushmtldate], [rushpartschk], [rushpartsdate], [category], CONVERT(nvarchar,[rushdate],101) AS 'rushdate', CONVERT(nvarchar,[rushship],101) AS 'rushship', [wo], [rushcomm] FROM [tblworush]

RE: [PHP] Subtotal

2003-03-19 Thread Adam Voigt
Umm, add: SUM([rushqty]) AS 'rushsub' To your select, wouldn't that work? On Wed, 2003-03-19 at 11:19, Mike Smith wrote: Here is my query (MSSQL 2000): SELECT [rushqty], [wooem], [rushglschk], [rushglsdate], [rushmtlchk], [rushmtldate], [rushpartschk], [rushpartsdate],

Re: RES: [PHP] Proc_open() problems

2003-03-19 Thread Marek Kilimajer
Just found it: http://expect.nist.gov/ Piero B. Contezini wrote: Do you have any idea where I can find more info about it? Piero -Mensagem original- De: Marek Kilimajer [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 19 de março de 2003 12:02 Para: Piero B. Contezini Cc: [EMAIL

[PHP] PHP and IIS - More info

2003-03-19 Thread Beauford.2002
These are some of the errors I am getting Notice: Undefined index: login in C:\Inetpub\wwwroot\..\login\checklogin.php on line 74 and 75, and other similar errors. Line 74 is: $login = $HTTP_SESSION_VARS['login']; Line 75 is: $password = $HTTP_SESSION_VARS['password']; Another one

[PHP] date problem

2003-03-19 Thread shaun
hi, using date(dS); how can i can increase the days so that it shows 19th 20th 21st I have tried while ($i 2){ $day++; echo' td'.$day.'/td'; $i++; } but i get: 19th 19ti 19tj thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] register_globals per virtual host

2003-03-19 Thread Abdul-wahid Paterson
Hi, I think you want to use: php_value register_globals Off I have this setup in VirtualHost's and in .htaccess files. The difference between php_value and php_admin_value is that php_admin_value can not be overridden in a .htaccess file or VirtualHost. So if you want to enforce some settings

RE: [PHP] Subtotal

2003-03-19 Thread Mike Smith
This query: ***denotes new SELECT ***SUM([rushqty]) AS 'rushsub'***, [rushqty], [wooem], [rushglschk], [rushglsdate], [rushmtlchk], [rushmtldate], [rushpartschk], [rushpartsdate], [category], CONVERT(nvarchar,[rushdate],101) AS 'rushdate', CONVERT(nvarchar,[rushship],101) AS 'rushship', [wo],

[PHP] Re: date problem

2003-03-19 Thread Philip Hallstrom
Try: $ts = time(); $i = 0; while( $i 2 ) { $day = date(dS, $ts + $i * 86400); print(td$day/td); $i++; } On Wed, 19 Mar 2003, shaun wrote: hi, using date(dS); how can i can increase the days so that it shows 19th 20th 21st I have tried while ($i 2){ $day++;

Re: [PHP] connecting securely to remote database

2003-03-19 Thread Dennis Gearon
I saw that, Joshua,I am on that list. Amazing that it came up just after I posted to the PHP list. The reason I posted it here is that I still probably need someway to initiate an SSH/SSL connection from PHP, and I doubt it autoswitches when connecting to a database. Joshua Moore-Oliva

Re: [PHP] Posting Query Results to an HTML form

2003-03-19 Thread CPT John W. Holmes
No, there's no PHP function, but there is an HTML trick that you can use: putting quotes around your values! input type=text name=name value=value That's not a trick, that's actually required with HTML 4 and up. And XML... Umm.. yeah, got that. I was being sarcastic. ;) ---John

Re: [PHP] PHP and IIS 5.0

2003-03-19 Thread CPT John W. Holmes
I am putting together a website for a customer who insists on using IIS running on Windows XP and I'm running into some problems. It appears that no matter what PHP script I run, I'm getting tons of errors saying this variable or that variable is undefined. I have global variables turned on in

RE: [PHP] PHP and IIS - More info

2003-03-19 Thread John W. Holmes
These are some of the errors I am getting Notice: Undefined index: login in C:\Inetpub\wwwroot\..\login\checklogin.php on line 74 and 75, and other similar errors. Line 74 is: $login = $HTTP_SESSION_VARS['login']; Line 75 is: $password = $HTTP_SESSION_VARS['password'];

RE: [PHP] MySQL Date

2003-03-19 Thread John W. Holmes
I have a date stored in a table in my MySQL Database using a DATE type for the column. How can i compare the date in the table to today ... WHERE your_date = CURDATE() ... e.g. $today = mysql_result($result, $i, Booking_Date); if($today = *HELP*){ or... if($today == date('Y-m-d'))

[PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread Charles Kline
Was reading this and it sounds really cool. I do work as a consultant to designers and thought this may be a good way to improve work flow? I have read mixed thoughts on this, but was wondering what this list thought? Anyone using it? Real world? http://www.zend.com/zend/tut/tutorial-cezar.php

[PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Hello, I'd like to uncompress to the Hard disk a zip file send by the browser. At this time I do this: function uncompresszip($zipfile) { copy($zipfile, dirname($_SERVER['PATH_TRANSLATED'])./zip/zipfile.zip) ; } But I do not understand how to uncompress the zip file, I tried for exemple:

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Bryan Koschmann - GKT
On Wed, 19 Mar 2003, Michael Egan wrote: |I put together the following function to give me a password consisting |of random letters and numbers. It should be fairly clear as to how |you'd need to tweak it to just give you the characters you'd need |interspersed with spaces. | |Hope this helps -

RE: [PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread John W. Holmes
Was reading this and it sounds really cool. I do work as a consultant to designers and thought this may be a good way to improve work flow? I have read mixed thoughts on this, but was wondering what this list thought? Anyone using it? Real world? Once you get used to the syntax, it is great.

Re: [PHP] Zip Way of life.

2003-03-19 Thread Marek Kilimajer
readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) Vincent M. wrote: Hello, I'd like to uncompress to the Hard disk a zip file send by the browser. At this time I do this: function uncompresszip($zipfile) {

[PHP] error message ... never seen this one before.

2003-03-19 Thread Daniel McCullough
I get this error. Unknown column 'B' in 'where clause' From this code. $sql = SELECT * FROM store; $result = mysql_query($sql) or die(mysql_error()); $store = mysql_fetch_array($result); $count = mysql_num_rows($result); $id = $store['id']; $name = $store['name']; $address = $store['address'];

Re: [PHP] error message ... never seen this one before.

2003-03-19 Thread Marek Kilimajer
Put single quotes around the strings in your sql statementS: $sql2 = SELECT id FROM store_name WHERE name = '.$name[$i].'; ^ ^ if this does not help, print out the query strings. Daniel McCullough wrote: I get this error. Unknown

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Marek Kilimajer wrote: readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) No, it works with .zip files too, I just don't know how to manage it :-( -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP and IIS 5.0

2003-03-19 Thread Beauford.2002
I have it running on Windows XP using Apache and Linux using Apache with perfect results - It does not work on IIS, which tells me this is a IIS problem, not a coding problem or an error reporting problem - register_globals are on on all three platforms. Thanks - Original Message -

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread Beauford.2002
Further note that it is not just this script, but many PHP scripts that I run on IIS - they all work perfectly on Apache (on Windows and Linux).. - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Beauford.2002' [EMAIL PROTECTED]; 'PHP General' [EMAIL PROTECTED] Sent:

[PHP] 2 databases

2003-03-19 Thread Iwan van Kanten
Is it possible to connect to 2 different databases?? 2 different dtabase typs I mean postgresql and Mysql -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Breadcrumbs help

2003-03-19 Thread Sebastian
hello all. this code creates dynamic breadcrumbs, ie: home site nav community I am having a bit of a time trying to make it so it doesn't hyperlink the current page thats being viewed, any help is appreciated. ? $LocationMappings = array( view.php = site map, company

Re: [PHP] 2 databases

2003-03-19 Thread Jimmy Brake
yes -- i connect to oracle and mysql simultaneously .. On Wed, 2003-03-19 at 15:21, Iwan van Kanten wrote: Is it possible to connect to 2 different databases?? 2 different dtabase typs I mean postgresql and Mysql -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread Chris Hewitt
Beauford.2002 wrote: Further note that it is not just this script, but many PHP scripts that I run on IIS - they all work perfectly on Apache (on Windows and Linux).. As well as configuration differences it could be different versions of php. Modern ones expect $_SERVER for example. I might like

Re: [PHP] md5() number of aruments

2003-03-19 Thread Jason k Larson
mhash (PHP 3= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string key]) ^ salt/seed/key - whatever you want to call it -- Jason k Larson Dennis Gearon wrote: I don't see anywhere on that page where it

Re: [PHP] 2 databases

2003-03-19 Thread Ray Hunter
yes, as long as you have them compiled and configured into php. I have used up to 4 database type for a given application: mysql, pgsql, oracle, and sybase... That is the beauty of PHP... -- Ray On Wed, 2003-03-19 at 16:21, Iwan van Kanten wrote: Is it possible to connect to 2 different

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread CPT John W. Holmes
Further note that it is not just this script, but many PHP scripts that I run on IIS - they all work perfectly on Apache (on Windows and Linux).. HOW DOES IT NOT WORK!? ---John Holmes... - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Beauford.2002' [EMAIL

Re: [PHP] Breadcrumbs help

2003-03-19 Thread Sebastian
well, the problem with that is most of my files are called 'index.php' cheers, - Sebastian - Original Message - From: Diego Fulgueira [EMAIL PROTECTED] | Sebastian wrote: | hello all. | | this code creates dynamic breadcrumbs, ie: home site nav community | | I am having a bit of

Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
What page is that on? BTW, I figured out I could just prepend a long, complex string to whatever I am hashing and it will 'seed' it before it gets to my stuff. Jason k Larson wrote: mhash (PHP 3= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string

[PHP] $array_nam[$variable][0]

2003-03-19 Thread Michael Smith
Hi, I'm trying to do a: $var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? -Michael -- Michael Smith [EMAIL PROTECTED] Custom87.net -- PHP General Mailing List

Re: [PHP] $array_nam[$variable][0]

2003-03-19 Thread CPT John W. Holmes
$var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? That is the correct syntax. Use print_r() on $array_name to see what it contains. ---John Holmes... -- PHP General

RE: [PHP] Zip Way of life.

2003-03-19 Thread Daevid Vincent
You could use the exec() or shell_exec() and just do it via command line method... -Original Message- From: Vincent M. [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 12:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Zip Way of life. Hello, I'd like to uncompress to

Re: [PHP] $array_nam[$variable][0]

2003-03-19 Thread Leif K-Brooks
Exactly the syntax you used. Michael Smith wrote: Hi, I'm trying to do a: $var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? -Michael -- The above message is encrypted

[PHP] date question

2003-03-19 Thread Charles Kline
Hi all, I have a form where users will be adding publication dates for uploaded files. I want to store the date in mySQL as date('U') format. If the date is entered as mm/dd/ - will the date function know this or is there some way of 'telling' php how the date to be converted is

[PHP] Re: Anybody have any thoughts on Smarty?

2003-03-19 Thread rush
Charles Kline [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Was reading this and it sounds really cool. I do work as a consultant to designers and thought this may be a good way to improve work flow? I have read mixed thoughts on this, but was wondering what this list thought?

Re: [PHP] date question

2003-03-19 Thread Kevin Stone
- Original Message - From: Charles Kline [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:17 PM Subject: [PHP] date question Hi all, I have a form where users will be adding publication dates for uploaded files. I want to store the date in mySQL as date('U')

[PHP] Max Array Size in Post?

2003-03-19 Thread Rob
I have a database driven music web site that allows the admin to create photo galleries. The photos and captions are entered using a form which allows the admin to upload a small and large photo. The number of photos is requested in a form that calls this entry form. The code looks like this:

RE: [PHP] Getting linux server's country

2003-03-19 Thread Martin Towell
So noone has any ideas at all ? Surely not ? If my question's too vague, please let me know and I'll try to expand on it... -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting linux server's

[PHP] How to figure out from which domain the PHP script was called?

2003-03-19 Thread Philarmon
Hi ! Im a completely PHP newbie, so please spare me :) Is there any way to figure out from which page a script was called ? I want that the PHP script check it and will be executed only if the request came from my domain (so nobody could execute it by typing its name in the browser or something

[PHP] Date Conversion

2003-03-19 Thread shaun
Hi, when retrieving a date from MySQL in n/MM/DD, how can I present this to the user of a site in readable format i.e. 19th March 2003? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to figure out from which domain the PHP script was called?

2003-03-19 Thread Joshua Moore-Oliva
YOu can check the HTTP_REFERRER... but really though, that's no security. Anyone can use Curl to simulate a request that looks like it comes from your domain. All security measures needs to happen on the server, not from what the users web browser gives you. Josh. On March 19, 2003 05:13

Re: [PHP] Zip Way of life.

2003-03-19 Thread David T-G
Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the files (note the plural) in the zip file. AFAIK gunzip can unzip an archive

[PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Philarmon
Ok, thanks for the info, Josh ! All security measures needs to happen on the server, not from what the users web browser gives you. And how to do something like that on the server ? Is there a tutorial somewhere about this or something ? A few words about that would be great ! :) Philarmon

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
David T-G wrote: Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the files (note the plural) in the zip file. AFAIK gunzip can unzip

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file and unzip is not installed by default on Unix servers. :-( -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Joshua Moore-Oliva
Nono, I'm saying that you can never be 100% sure where someone came from, since they are responsible for storing that data, and they can modify before sending it back to you. If you really want to make sure someone came from another page before the current page, create a uniq ID and md5 it or

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Abdul-wahid Paterson
Hi, On Wed, 2003-03-19 at 22:28, Philarmon wrote: All security measures needs to happen on the server, not from what the users web browser gives you. And how to do something like that on the server ? Is there a tutorial somewhere about this or something ? A few words about that would be

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Philarmon
Hmmm, the PHP script is not a webpage but just a script which is called from a flash movie, so i guess i cant check cookies with that :( But thanks anyway ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Indonesia

2003-03-19 Thread Ludi Sasnita
Anybody in this mailing list from Indonesia? Thanks, God Bless You All best regards, Ludi Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing Rp 250.000 tunai

[PHP] Imagerotate() Problems

2003-03-19 Thread Mike Brum
I'm having some problems with imagerotate() - e.g. it won't work. I've tried many different ways to get it to work, but I have yet to see it do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working properly because I can do other image-manipulation with it without error. Plus, I

[PHP] Zero Fill - Number Format

2003-03-19 Thread Harry.de
How can I put out a Zero Fill for numbers The result should be $something=26; echo $something; e.g. 026 I didn't found a solution with number format. Is there any other way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Zero Fill - Number Format

2003-03-19 Thread Martin Towell
sprintf/printf(%7d, $num) -Original Message- From: Harry.de [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Zero Fill - Number Format How can I put out a Zero Fill for numbers The result should be $something=26; echo $something;

Re: [PHP] running PHP through command shell

2003-03-19 Thread Travers Carter
Jason Wong wrote: On Wednesday 19 March 2003 16:34, Foong wrote: Does anybody knows why I get call to undefined function for mysql_connect when running PHP through command shell. but it works fine when accessing the script through web browser. Most likely your php binary (CLI, not

RE: [PHP] Zero Fill - Number Format

2003-03-19 Thread Mike Brum
This is what I did for a dynamic zero-fill for renaming batches of files: // Get Zero Padding For New Image Names $zero_padding = strlen(count($image_array)); foreach($image_array as $temp){ $n++; $n_length = strlen($n); for($i = 0; $i ($zero_padding - $n_length); $i++){

Re: [PHP] Zero Fill - Number Format

2003-03-19 Thread Kevin Waterson
This one time, at band camp, Harry.de [EMAIL PROTECTED] wrote: How can I put out a Zero Fill for numbers The result should be $something=26; print str_pad($something, 7, 0, STR_PAD_LEFT); Kevin __ (_ \ _) )

RE: [PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread Dennis Gearon
Smarty is very wonderful. If both the coder and the designer work together, layout and code logic can be completely separate. I am doing a form for entering in about 25 fields. As long as the template the designer comes up with has: The required form variables, and template

  1   2   >