Re: [PHP] php & javascript drop down menu???

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 08:47, Jeff Bluemel wrote: > OK... I have a dynamic menu system, and I have to maintain a dynamic menu. > however, the amount of content I need in my menu is going to be rapidly > outgrown. I believe my only solution is to deploy a javascript drop down > menu (users

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 15:00, Chris Wesley wrote: > If you assume the users use FTP for uploads, then you have to assume the > hosting company is a band of hypocrites. So the conclusion for the OP is simple: If the host is allowing you to use FTP to upload your site then they are a bunch

[PHP] Re: possible mail() bug

2003-02-11 Thread Manuel Lemos
Hello, On 02/11/2003 07:49 PM, Matt Phillips wrote: I created a script that sent the contents of the form via the mail(). when I created it the server was running PHP 4.1.2. The server I am on was upgraded to ver 4.2.2. When that happend the script stop working correctly. It appeared to work,

Re: [PHP] default php sessions in a database

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Robin Mordasiewicz wrote: > Is there a way to configure php to use a database for sessions rather than > a text file. > I have a server farm and want the session files to be accessible to all > machines in the cluster. I can have the session file on nfs but I am > worried abo

Re: [PHP] msession users

2003-02-11 Thread Tom Rogers
Hi, Wednesday, February 12, 2003, 4:01:28 PM, you wrote: RM> Are there any msession users here, if so please share your experiences. RM> I am considering using msession for a multiple server environment for RM> handling session data. I have been using it as a general session manager for about a y

php-general Digest 12 Feb 2003 07:00:41 -0000 Issue 1878

2003-02-11 Thread php-general-digest-help
php-general Digest 12 Feb 2003 07:00:41 - Issue 1878 Topics (messages 135224 through 135274): passing array as a form variable 135224 by: Edward Peloke 135225 by: Leif K-Brooks 135226 by: Jason Wong Re: mail() and php.ini (Any Luck???) 135227 by: Scott Fletc

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Wed, 12 Feb 2003, Jason Wong wrote: > On Wednesday 12 February 2003 14:02, Chris Wesley wrote: > > > Why? What's a better argument? It's certainly just a piece of a much > > larger argument, but avoiding a full-fledged lecture outside the immediate > > context of the original question (and tr

Re: [PHP] setcookie() in various browsers.. 3rd followup.. anyone?

2003-02-11 Thread Peter Janett
If you read the original cookie spec, written by Netscape, the cookie is set based on the preceding . (dot). So, if you set a cookie at www.domain.com (using the 5th parameter of setcookie), you can read it ONLY from www.domain.com. If you set it at .domain.com, as long as "dot domain dot com" is

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 14:02, Chris Wesley wrote: > Why? What's a better argument? It's certainly just a piece of a much > larger argument, but avoiding a full-fledged lecture outside the immediate > context of the original question (and trying to keep it related to PHP > somehow) makes i

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Wed, 12 Feb 2003, Jason Wong wrote: > On Wednesday 12 February 2003 07:46, Chris Wesley wrote: > > You access an FTP server with a user name and a password to retrieve a > > file via PHP FTP. The user name and password is the same that grants > > you access to your hosting providers serve

[PHP] msession users

2003-02-11 Thread Robin Mordasiewicz
Are there any msession users here, if so please share your experiences. I am considering using msession for a multiple server environment for handling session data. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 07:46, Chris Wesley wrote: > On Tue, 11 Feb 2003, Christopher Ditty wrote: > > Chris, Did you read the rest of the message? It sounds like the web > > Yes, I read your entire message. > > > host is saying that > > someone can access PHP FTP from an outside server and

Re: [PHP] setcookie() in various browsers.. 3rd followup.. anyone?

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 05:44, Chad Day wrote: > This is with PHP 4.2 and register_globals off. > > I am setting cookies and starting a session in the following fashion: > > setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".$dn"); > > where $dn = mydomain.com > > I want the cookies a

[PHP] Issue saving php that includes constant---

2003-02-11 Thread Shawn McKenzie
I collect some PHP code in an HTML form (textarea) I then save this in an array in a file using export_var(). If the code entered in the textarea is this: echo "To "._LOGIN." click the login link below"; And the constant _LOGIN happens to be defined in the current script that generates the form

[PHP] Re: Need To Find A php Person

2003-02-11 Thread rija
Hello, I'm likely the person you're looking for. My name's Rija I live in Vanuatu, and I teach IT and computer science for the MontMartre High School. I'll give you some of the best website I've done: - trano-bongo.com - evelyneproducts.com - vanua2.com - madeinpacific.com Also, I've done plenty

RE: [PHP] File upload???

2003-02-11 Thread David Freeman
> Can anybody help me with file uploading, again... Have you tried using the fairly simple example that is given at http://www.php.net/manual/en/features.file-upload.php yet? I've found that starting with this example and then adding all the extras tends to work well when you've got problems.

Re: [PHP] default php sessions in a database

2003-02-11 Thread Tom Rogers
Hi, Wednesday, February 12, 2003, 1:34:49 PM, you wrote: RM> Is there a way to configure php to use a database for sessions rather than RM> a text file. RM> I have a server farm and want the session files to be accessible to all RM> machines in the cluster. I can have the session file on nfs but I

Re: [PHP] grief with printf(), padding and alignment of text

2003-02-11 Thread Matt
- Original Message - From: "Robert E. Harvey, M.D." <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 6:21 PM Subject: [PHP] grief with printf(), padding and alignment of text > I'm running PHP 4.2.2 and I'm having trouble with the printf() > function. I

[PHP] default php sessions in a database

2003-02-11 Thread Robin Mordasiewicz
Is there a way to configure php to use a database for sessions rather than a text file. I have a server farm and want the session files to be accessible to all machines in the cluster. I can have the session file on nfs but I am worried about file locking. I have read tutorials on how to set sessi

[PHP] Classes, global objects, and pointers

2003-02-11 Thread John Hughes
In this example which parallels a problem I am having in my real life script. I would like to have a global object, in this case $tester. I would then like to be able to store local references to this global object right inside the class. These are assigned byref in the classes constructor. This s

[PHP] RE: PHP-based SMS solution

2003-02-11 Thread YC Nyon
I am developing a web-based GPS vehicle tracking solution using php. I'm looking on how php can communicate with a SMSC using Smpp to issue AT commands. Development platform is windows 2000. Thanks Nyon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.griso

Re: [PHP] sorting multi-dimensional array where array elements are structs [simple class]

2003-02-11 Thread Michael Sims
On Tue, 11 Feb 2003 08:27:57 -0600, you wrote: >Thanks for the reply. I had already tried usort previously. For some > reason, there is no data for the array fields at all in the cmp function > - not sure why. Does anyone know? All help is appreciated! Thanks. Can you post a short code sampl

[PHP] php & javascript drop down menu???

2003-02-11 Thread Jeff Bluemel
OK... I have a dynamic menu system, and I have to maintain a dynamic menu. however, the amount of content I need in my menu is going to be rapidly outgrown. I believe my only solution is to deploy a javascript drop down menu (users have to be javascript compatible anyway for some other issues in

Re: [PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Can anybody help me with file uploading, again... I tried uploading a file through... but, on project_save.php, the $HTTP_POST_FILES["project_file"]["size"] is zero(0) , and $HTTP_POST_FILES["project_file"]["tmp_name"] is an empty string. i checked, $HTTP_POST_FILES["project_files"]["error"

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Christopher Ditty wrote: > Chris, Did you read the rest of the message? It sounds like the web Yes, I read your entire message. > host is saying that > someone can access PHP FTP from an outside server and hack into the > server. That's precisely NOT what the hosting provi

Re: [PHP] newbie-php user tracker prob

2003-02-11 Thread Fireborn Silvaranth
- Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Fireborn Silvaranth" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 1:04 PM Subject: Re: [PHP] newbie-php user tracker prob Pretty new to PHP but I've always wanted to make a user tracking syst

[PHP] concurrent fopen fwrite fclose

2003-02-11 Thread Frederick L. Steinkopf
Hi, How does php handle multiple concurrent fopen fwrite fclose calls? I have a website that gets 7 million page views a month and we have created a custom log file using fopen fwrite and fclose. When running this concurrently with the apache log we notice significantly lower page hits with the p

[PHP] grief with printf(), padding and alignment of text

2003-02-11 Thread Robert E. Harvey, M.D.
I'm running PHP 4.2.2 and I'm having trouble with the printf() function. I want to be able to print data in space padded fields with the alpha strings left justified and the numeric strings right justified. For some reason I can't get printf() to pad with spaces. It pads with " "-s and righ

[PHP] possible mail() bug

2003-02-11 Thread Matt Phillips
I created a script that sent the contents of the form via the mail(). when I created it the server was running PHP 4.1.2. The server I am on was upgraded to ver 4.2.2. When that happend the script stop working correctly. It appeared to work, but the email never arrived. So, I wrote a simple scr

[PHP] Re: [PHP-DEV] include() and sessions

2003-02-11 Thread Chris Shiflett
Hello Lindsey, I am posting this to [EMAIL PROTECTED] for you. The php-dev list is for the development of PHP itself, not for user questions. Also, as a guess to your problem, when you include a resource by URL, you are going to receive the same output that a browser would (when you view source),

[PHP] Re: Why use XML?

2003-02-11 Thread David Eisenhart
big issues!! I'd recommend that you check out the book 'XML and PHP' by Vikram Vaswani, New Riders. Its well written and concise - should answer your queries and more. (BTW, like you I also use Smarty to separate application logic and presentation; for my purps and circumstances this is preferable

[PHP] Re: File not rewritable - why? Help needed.

2003-02-11 Thread Bobby Patel
Are you on a Windows platform, or *nix. I would assume *nix since you mentioned chmod. what did you chmod the file to? who owns the file? and what user does PHP run as (maybe nobody, or httpd)? Just to get it to work chmod the file to 777, BUT this is a security risk. MAKE SURE this file is NOT in

RE: [PHP] PHP FTP a security risk?????

2003-02-11 Thread James E Hicks III
Please correct me if I am wrong, but it is impossible for a remote machine to make an ftp connection to local machine running just PHP/Apache/Mysql. The ftp functions available in PHP enable PHP scripts to act as an FTP client and can not be used to accept remote FTP connections. Other functions (

Re: [PHP] OO newb question....query results from a class

2003-02-11 Thread Chris Boget
> $userinfo = new user(); > echo $userinfo->get_signin(); > It just returns "Array"? How do I, for lack of a better wordget to > this array? Outside of a class it works great, I echo $rows['sign_in'] > and it works. But this! Help! > Many many thanks! Do this instead: $userArray = $userInfo->

RE: [PHP] setcookie() in various browsers.. 3rd followup.. anyone?

2003-02-11 Thread Chad Day
This is with PHP 4.2 and register_globals off. I am setting cookies and starting a session in the following fashion: setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".$dn"); where $dn = mydomain.com I want the cookies accessible sitewide .. at www.mydomain.com, mydomain.com, forums.myd

[PHP] OO newb question....query results from a class

2003-02-11 Thread Cory Hicks
Hello! I am just getting going with OO stuff and I am stumped at how to pull out query results once it is part of a class. I am also using PEAR. Here is my code: class user { var $retval; function get_signin() { global $db_obj; $DateView = date("Y-m-d"); $sql = "SELECT date_format(sys_t

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
I can see what you meant about the MIME-encoding and stuffs. This is pretty cool also. "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tuesday 11 February 2003 02:19 pm, Scott Fletcher wrote: > Someone send me an email to take a look

Re: [PHP] newbie-php user tracker prob

2003-02-11 Thread Chris Shiflett
--- Fireborn Silvaranth <[EMAIL PROTECTED]> wrote: > I'm trying to grab a number (sessionNum) out of a text file and increment > it whenever someone leaves and comes back to the site. How about this: Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] newbie-php user tracker prob

2003-02-11 Thread Fireborn Silvaranth
Pretty new to PHP but I've always wanted to make a user tracking system. I'm trying to grab a number (sessionNum) out of a text file and increment it whenever someone leaves and comes back to the site.. the problem is the text file appears to be cached somewhere, the first time someone comes back

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Shiflett
--- Christopher Ditty <[EMAIL PROTECTED]> wrote: > This script, among other things, FTPs a text file from a central server. > When we tried to run my script, it simply stops. No errors, no nothing. > I talked to his host and found out that they do not allow PHP FTP because > it is a security risk.

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Christopher Ditty
Chris, Did you read the rest of the message? It sounds like the web host is saying that someone can access PHP FTP from an outside server and hack into the server. I am not trying to start a debate on whether or not people should send passwords and userids over plain text. Yes, that is a sec

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Chris Wesley wrote: > On Tue, 11 Feb 2003, Christopher Ditty wrote: > > > errors, no nothing. I talked to his host and found out that they do > > not allow PHP FTP because it is a security risk. ? U, ok? > > That said ... FTP is a protocol; there's nothing stopping

Fw: [PHP] passing a query string to a popup window problems

2003-02-11 Thread Kevin Stone
What does that string look like when it is outputed? You're asking us to assume that $formuser and $formpassword are there in the first place. - Kevin - Original Message - From: "Brad Esclavon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 1:09 PM Subject: [

Re: [PHP] passing a query string to a popup window problems

2003-02-11 Thread John Nichel
What's the value of $_GET['formuser'] and $_GET['formpassword'] in your pop up window? Brad Esclavon wrote: I am trying to pass 2 variable values(username and userpassword) to a popup window to display those values when a button is clicked. When the window pops up, the variable names aren't displ

[PHP] passing a query string to a popup window problems

2003-02-11 Thread Brad Esclavon
I am trying to pass 2 variable values(username and userpassword) to a popup window to display those values when a button is clicked. When the window pops up, the variable names aren't displayed because they havent been passed. Here is the code: onclick="window.open('http://www.bluedorado.com/bdnfo

[PHP] Newbie php.ini

2003-02-11 Thread Val Schmidt
I'm completely new to php but am interested in getting things runnng on a "live" apache server. The default php.ini file has a huge security disclaimer at the top stating that the default configuration is not sufficiently secure for "production". It references the php manual chapter on security fo

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Chris Wesley
On Tue, 11 Feb 2003, Christopher Ditty wrote: > errors, no nothing. I talked to his host and found out that they do > not allow PHP FTP because it is a security risk. ? U, ok? I consider FTP a security risk, period. (There /are/ ways to run an FTP server securely, but I won't assume e

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
No, nothing is misconfigured on this machine. The problem is the firewall and the nameserver. So, the easy workaround to it is to use the MS-Exchange on Window. Sendmail on Unix still doesn't allow me to use more stuffs, so I had to use MS-Exchange. Sendmail is not the right kind of email servi

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 03:19, Scott Fletcher wrote: > The send mail on Unix is too basic, not like MS-Exchange... I need things > like file attachment, Bcc, cc, etc I think you're missing the point somewhere. sendmail (in fact any MTA) will do all that. > Also, it is too slow beca

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Reuben D. Budiardja
On Tuesday 11 February 2003 02:19 pm, Scott Fletcher wrote: > Someone send me an email to take a look at this > URLhttp://www.php.net/manual/fi/ref.imap.php . > > The send mail on Unix is too basic, not like MS-Exchange... I need things > like file attachment, Bcc, cc, etc All of those

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Christopher Ditty
Unfortunately, I can only get the file via FTP. I just want to know where this other host got it's information. Chris >>> "Reuben D. Budiardja" <[EMAIL PROTECTED]> 02/11/03 01:35PM >>> On Tuesday 11 February 2003 02:11 pm, Jason Wong wrote: I agree with that. It's only a (potential) problem if

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Reuben D. Budiardja
On Tuesday 11 February 2003 02:11 pm, Jason Wong wrote: > On Wednesday 12 February 2003 02:54, Christopher Ditty wrote: > > Hello all. I have a customer that purchased on of my scripts and > > attempted > > to install it on their server. This script, among other things, FTPs a > > text file > > f

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 02:54, Christopher Ditty wrote: > Hello all. I have a customer that purchased on of my scripts and > attempted > to install it on their server. This script, among other things, FTPs a > text file > from a central server. When we tried to run my script, it simply > s

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
Someone send me an email to take a look at this URLhttp://www.php.net/manual/fi/ref.imap.php . The send mail on Unix is too basic, not like MS-Exchange... I need things like file attachment, Bcc, cc, etc Also, it is too slow because the machine have problem with DNS while many Windows do

Re: [PHP] passing array as a form variable

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 02:56, Edward Peloke wrote: > Can I take the select array > > Ex. > $myrow=mysql_fetch_array($result); > > > and pass this as a form variable to another page? > > archives > passing array -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] passing array as a form variable

2003-02-11 Thread Leif K-Brooks
www.php.net/serialize www.php.net/unserialize Edward Peloke wrote: Can I take the select array Ex. $myrow=mysql_fetch_array($result); and pass this as a form variable to another page? Thanks, Eddie -- The above message is encrypted with double rot13 encoding. Any unauthorized attemp

[PHP] passing array as a form variable

2003-02-11 Thread Edward Peloke
Can I take the select array Ex. $myrow=mysql_fetch_array($result); and pass this as a form variable to another page? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 11 Feb 2003 18:55:28 -0000 Issue 1877

2003-02-11 Thread php-general-digest-help
php-general Digest 11 Feb 2003 18:55:28 - Issue 1877 Topics (messages 135167 through 135223): Regex Help 135167 by: Lord Loh. 135171 by: Ernest E Vogelsinger 135173 by: Chris Hayes 135183 by: Kevin Waterson Re: Why use XML? 135168 by: Ilya Nemihin Re

[PHP] PHP FTP a security risk?????

2003-02-11 Thread Christopher Ditty
Hello all. I have a customer that purchased on of my scripts and attempted to install it on their server. This script, among other things, FTPs a text file from a central server. When we tried to run my script, it simply stops. No errors, no nothing. I talked to his host and found out that th

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 02:12, Scott Fletcher wrote: > The webserver is a Unix machine. I don't want to send the email from the > Unix machine, I want to do that from Window. So, if I configure hte > php.ini to find the MS-Exchange on Window and use it to send the email > while the webpage

RE: [PHP] help me

2003-02-11 Thread Ray Hunter
The system needs to be able to find the dll so you might need to add C:\PHP3 to your system path... On Tue, 2003-02-11 at 11:05, Cavallaro, Vito wrote: > all *.dll are C:\PHP3 but internet explorer make unload the file.xml > > -Mensaje original- > De: Ray Hunter [mailto:[EMAIL PROTECTED

RE: [PHP] help me

2003-02-11 Thread Cavallaro, Vito
all *.dll are C:\PHP3 but internet explorer make unload the file.xml -Mensaje original- De: Ray Hunter [mailto:[EMAIL PROTECTED]] Enviado el: martes 11 de febrero de 2003 15:06 Para: Cavallaro, Vito Cc: [EMAIL PROTECTED] Asunto: Re: [PHP] help me make sure that the php3_xml.dll is in you

Re: [PHP] help me

2003-02-11 Thread Ray Hunter
make sure that the php3_xml.dll is in your system path and it can be found. Ray On Tue, 2003-02-11 at 07:38, Cavallaro, Vito wrote: > how i do work php with xml? > > In php3.ini add extension = php3_xml.dll but not work. is runnig on winnt > workstation > > > > -- > PHP General Mailing List

[PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
Hi Everyone The webserver is a Unix machine. I don't want to send the email from the Unix machine, I want to do that from Window. So, if I configure hte php.ini to find the MS-Exchange on Window and use it to send the email while the webpage is on the Unix webserver, such as form fill out an

[PHP] Show the info to update depending on the selection

2003-02-11 Thread Miguel Brás
Hi, I have a page that is intendend to update a table field on DB i have a drop down menu wich displays all the position fields available on db and a text area where i will insert the new data. now the problem: I'm using the query SELECT * FROM table WHERE position = $position the $position is

Re: [PHP] PHP 4.3.0 + MSSQL database authentication problem?

2003-02-11 Thread Alan Murrell
Hi R'Twick, --- R'twick Niceorgaw <[EMAIL PROTECTED]> wrote: > check the register_globals in php.ini file. In the 'php.ini' file on both servers (the current working one, and the one I am having problems with), 'register_globals' is 'On'. Actually, i did compare the two 'php.ini' files line by l

Re: [PHP] RSA implementation

2003-02-11 Thread Chris Hewitt
José León Serna wrote: Hello: I'm looking for an RSA implementation, the ones I have found are really slow, and I just want to: generatekey decrypt the encryptfunction will be done in javascript, it's for a login system without SSL. Have you considered using on one-way MD5 hash instead? Aga

RE: [PHP] Date check

2003-02-11 Thread Jon Haworth
Hi Fredik, > I have to dates that i want to check who is biggest. > > This does not work: > if( $date1 > $date2){ > > > How can i check them? Presumably they're in SQL format, or something similar? The easiest way is to convert them to unix timestamps (look into the date() and mktime() f

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Vernon
That did it. Thanks (in all the years I have been doing this you think I would have learned that already) "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Changing the method also implies changing $_POST to $_GET in your code. -- PHP General

[PHP] Date check

2003-02-11 Thread Fredrik
Hi I have to dates that i want to check who is biggest. This does not work: if( $date1 > $date2){ How can i check them? Svein Olai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help With Form Mail

2003-02-11 Thread Marek Kilimajer
mail($mailto, $mailsubj, $msg, $mailheader); - where does $mailto come from? WAW wrote: Hello All, I have a problem. I did this form mail script and it is sending the email to the poster not the email specified in the $mailto. Can someone help me. Sorry it will be long, the code that is: CODE

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Marek Kilimajer
Changing the method also implies changing $_POST to $_GET in your code. Vernon wrote: When I do that I get syntax errors in the SQL "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Simple answer is - use GET method instead of POST for your s

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Chris Shiflett
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Simple answer is - use GET method instead of POST for > your searches --- Vernon <[EMAIL PROTECTED]> wrote: > When I do that I get syntax errors in the SQL That obviously has nothing to do with what request method you are using. You need to give mo

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Vernon
When I do that I get syntax errors in the SQL "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Simple answer is - use GET method instead of POST for your searches -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] array_fill error

2003-02-11 Thread Jason Wong
On Wednesday 12 February 2003 00:46, Erin Fry wrote: > I am trying to initialize a large array with all values being 0. I’ve > tried: > > $arr = array_fill(0, 99, 0); > > and I get this error message: > Fatal error: Call to undefined function: array_fill() > > Any information and suggestions will

[PHP] PHP 4.3.0 + MSSQL database authentication problem?

2003-02-11 Thread Alan Murrell
Hello, Because I am not sure if this is just a PHP issue or a PHP+DB issue, I will be posting this message (seperately) to bith the "General" and "PHP-DB" lists. First, a brief rundown of my setup: Mandrake Linux 9.0 Apache 1.3.27 PHP 4.3.0 We are in the process of rebuilding our outdated serve

RE: [PHP] array_fill error

2003-02-11 Thread Barajas, Arturo
Try "array" only: $arr = array(0, 99, 0); print_r($arr); HTH -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message- > From: Erin Fry [mailto:[EMAIL PROTECTED]] > Sent: Martes, 11 de Febrero de 2003 10:47 a.m. > To: [EMAI

[PHP] Help With Form Mail

2003-02-11 Thread WAW
Hello All, I have a problem. I did this form mail script and it is sending the email to the poster not the email specified in the $mailto. Can someone help me. Sorry it will be long, the code that is: CODE: Email Sent Successfully!!! The Following E-Mail Has Been Sent Successfully: Your Name:

[PHP] array_fill error

2003-02-11 Thread Erin Fry
I am trying to initialize a large array with all values being 0. I’ve tried: $arr = array_fill(0, 99, 0); and I get this error message: Fatal error: Call to undefined function: array_fill() Any information and suggestions will be greatly appreciated. Thanks. --- Outgoing mail is certified

[PHP] RSA implementation

2003-02-11 Thread José León Serna
Hello: I'm looking for an RSA implementation, the ones I have found are really slow, and I just want to: generatekey decrypt the encryptfunction will be done in javascript, it's for a login system without SSL. Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Marek Kilimajer
Simple answer is - use GET method instead of POST for your searches Vernon wrote: I've successfully created a search and result page for a dating site which off of the result page is a detail page for reviewing the profile online and so forth. The problem I'm having is once a user does his/her

[PHP] Alternative to PDFlib with PDI

2003-02-11 Thread Michael E. Barker
I know of fpdf and am currently using it in one application. But does anyone know if I can open other pdf files with fpdf and merge them into one big pdf file like can be done with PDFlib Import? Or; is there an alternative besides fpdf that does this in php? TIA Michael E. Barker -- PHP Ge

[PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Vernon
I've successfully created a search and result page for a dating site which off of the result page is a detail page for reviewing the profile online and so forth. The problem I'm having is once a user does his/her search they may come up with a number of results which after reviewing one of the mem

[PHP] PHP can create, but not delete

2003-02-11 Thread Greg
Hi- I'm having a problem with deleting a Cyrus IMAP mailbox. I can create the mailbox just fine. Any ideas on why I can't delete the mailbox? Here is some code that I got off this newgroup a few months ago: function deleteMailbox ($mailbox) { $existing_boxes = imap_listmailbox($this->

Re: [PHP] Directory size

2003-02-11 Thread Jeff Pauls
You can try something like this. $dir = "dir"; function dirsize($checkdir) { $dh = opendir($checkdir); $size = 0; while (($file = readdir($dh)) !== false) if ($file != "." and $file != "..") { $path = $checkdir."/".$file; if (is_dir($path))

Re: [PHP] Problem with FTP and fopen

2003-02-11 Thread Robin Mordasiewicz
no sure if this helps but i had a similar problem with php < 4.3 . Afeter upgrading from 4.2.3 ftp worked fine. On 11 Feb 2003, Adam Voigt wrote: > I don't think PHP checks to see what FTPD your running, it's probably a > bug > in PureFTPD as opposed to PHP (since it works in WU). > > On Tue, 200

Re: [PHP] mac os 9 - file upload problems

2003-02-11 Thread Step Schwarz
> I have a file upload page that accepts file uploads from pretty much > every browser and os EXCEPT any browser on mac os 9. [...] Hi Jimmy, I routinely use Mac OS 9.x and both Netscape 7 and IE 5.1 to upload files to sites written in PHP. I also maintain these sites. The only problems I've en

Re: [PHP] Problem with FTP and fopen

2003-02-11 Thread Adam Voigt
I don't think PHP checks to see what FTPD your running, it's probably a bug in PureFTPD as opposed to PHP (since it works in WU). On Tue, 2003-02-11 at 10:10, Chris Boget wrote: OK, I used the php ftp_put function successfully to upload a file. But this is not what I need.

[PHP] Problem with FTP and fopen

2003-02-11 Thread Chris Boget
OK, I used the php ftp_put function successfully to upload a file. But this is not what I need. I need to use the ftp_fput function to transfer from a file pointer. This function failed to transfer the file with Pureftp server but transfers successfully using Wu-ftp. Any ideas on why Pureftp is fai

[PHP] Image processing: tolerance of damaged files

2003-02-11 Thread Geoff Caplan
Hi folks, I have an image processing module for converting & resizing uploaded images. My customer has 1000s of images from various sources, and a significant percentage are not 100% correct. At present I am using ImageMagick, but it chokes if the image is in any way damaged. At present the cust

[PHP] help me

2003-02-11 Thread Cavallaro, Vito
how i do work php with xml? In php3.ini add extension = php3_xml.dll but not work. is runnig on winnt workstation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] sorting multi-dimensional array where array elements are structs [simple class]

2003-02-11 Thread Erin Fry
On Mon, 10 Feb 2003 16:23:10 -0600, you wrote: >Hi. > >I’m working with a multidimensional array where the data in the >array is a class (struct). All the information is being stored correctly, >but I need to sort each “column” (AA0, BA0, etc. – see below) >by the fieldNo portion of the stru

[PHP] Re: Objects: Cant set object variables with refrences ...

2003-02-11 Thread James
"Michael Kimsal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > James wrote: > > > > > However I would like refernce semantics and the final output of this script > > to be 1000. So I changed the line to "$this->t &= $c;" and suddenly I get > > the error: "Fat

Re: [PHP] mac os 9 - file upload problems

2003-02-11 Thread Lowell Allen
> From: Jimmy Brake <[EMAIL PROTECTED]> > > I have a file upload page that accepts file uploads from pretty much > every browser and os EXCEPT any browser on mac os 9. I have no idea > why, any of you ever have problems with file uploads on mac os 9? How > did you solve the issue. I have no prob

[PHP] Re: Objects: Cant set object variables with refrences ...

2003-02-11 Thread michael kimsal
James wrote: However I would like refernce semantics and the final output of this script to be 1000. So I changed the line to "$this->t &= $c;" and suddenly I get the error: "Fatal error: Call to a member function on a non-object in /user/sh/jmb/Project/Wiki/Public_html/test.php on line 25" Any

[PHP] Re: Q. on ereg_replace

2003-02-11 Thread Michiel van Heusden
never mind it i've solved it trimming the $replace and $replacement before using them in ereg_replace() thanks anyway "Michiel Van Heusden" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i'm creating sort of a very simple css-alike-thing for outputting html

RE: [PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
Thanks Marek, That is the solution I was looking for. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: 11. helmikuuta 2003 13:39 > To:

Re: [PHP] If no record in MySQL how to?

2003-02-11 Thread Marek Kilimajer
if there are no rows, the while condition will return false so the while block will never be executed, try if(mysql_num_rows($link_result) ){ while($documents = mysql_fetch_array($link_result)) { print " width='40'> width='136'> class='greenlinks'>$docum

Re: [PHP] Regex Help

2003-02-11 Thread Kevin Waterson
This one time, at band camp, "Lord Loh." <[EMAIL PROTECTED]> wrote: > I am trying to make a link collector. > > after opening the desired page, I want to get all the hyperlinks on it... OK, this is quick and nasty, but you can add sanity/error checking etc as you please, but it shows you the con

[PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
I have a problem whereby I need to show links based on an ID which is in a MySQL DB. So if ID 1 exists I pull an array of links which are defined as belonging to ID1. This works OK. How though can I distinguish between ID's which are not in the DB. I want to display something if there are no links

  1   2   >