[PHP] Re: and ' giving problems

2003-02-11 Thread Michiel van Heusden
you could use stripslashes or stripcslashes to remove the '\'-s, otherwise i wouldn't know.. Pag [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, When a user wants to add a comment on my site and uses either or ', and when it gets printed out, comes out

Re: [PHP] How to use fopen() with protected directory (i.e .htaccess)

2003-02-11 Thread Ernest E Vogelsinger
At 06:22 11.02.2003, Daevid Vincent said: [snip] How can I pass in a user/pw to an fopen() (or something similar)? You don't. fopen() doesn't access the server via HTTP. It's PHP that executes this call, sitting at the server, using the servers file system

Re: [PHP] Regex Help

2003-02-11 Thread Ernest E Vogelsinger
At 07:47 11.02.2003, Lord Loh. said: [snip] I am new to regex and broke my head on it the other day...in vain... Can any one tell me a place to get a step by step tutorial on it or help me out on how to work it out ?

Re: [PHP] Newbie recursive directory

2003-02-11 Thread Chris Hayes
At 23:28 10-2-2003, you wrote: G'day all I've been trying for a day or so to get a script to traverse all the levels of a directory. did you see the first user comment on http://nl.php.net/manual/nl/ref.dir.php ? may help! With help from list archives and web sites I've come up with this:

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

2003-02-11 Thread James
My problem is illistrated by the following test code: class test { var $flag = 0; function getFlag() { return $this-flag; } var $t; function Init() { $c = new test; $this-t = $c; $c-flag = 1000; }

[PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Hello everyone! =) Can anybody help me with file uploading with PHP??? i tried uploading a file through... form action=save_upload.php method=post input type=file name=userfile input type=submit /form but, in save_upload.php, there is no $HTTP_POST_VARS['userfile'], or

Re: [PHP] File upload???

2003-02-11 Thread Francesco Leonetti
You need to check the following variables: $_FILES[userfile][tmp_name]; $_FILES[userfile][size]; $_FILES[userfile][name]; $_FILES[userfile][type]; Ciao Francesco - Original Message - From: Kenneth Suralta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 10:49 AM

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

2003-02-11 Thread user
Newbie question: I try to modify a txt-file but get not writable error. (just like in http://www.php.net/manual/en/function.fwrite.php ) I've tried to change the chmode but now I need some help. All info welcome! Thanks in advance! Paul Dunkel -- [EMAIL PROTECTED] -- PHP General Mailing

[PHP] How to check acces to modeuls files and dirs

2003-02-11 Thread Konference
Good morning, I have got an anrray: $access[][id]; $access[][name]; and then I browse a mode dirs and I need to check if md5(directory_name) exists in access array. I don't want to browse all dirs a list all subdirs files and chech with access array like this: // check where login user has

[PHP] Re: several buttons in form - which one was clicked

2003-02-11 Thread James
Your way does strike me as a strange way to do things: I would favour many forms with hidden values myself to but ... html headtitletitle/head body form action=test2.php method=get Press the red submit button!br input type=submit name=red value=Go!P Press the Blue submit button!br input

[PHP] Session into class

2003-02-11 Thread ZioBudda
Hi, I want to write a session-class that use MySQL. I have write the body of the class. The class open and close session, write the data from session to DB, but the function session_decode() does not want to decode my data. Here the session_set_save_handler: session_set_save_handler(array($hnd,

[PHP] Q. on ereg_replace

2003-02-11 Thread Michiel van Heusden
i'm creating sort of a very simple css-alike-thing for outputting html to flash actionscript. the php gets a string ($text) from the database, which look something like: h1header 1 /h1 etc... then, from a 'css' file it reads the strings $replace and $replacement it looks something like:

[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

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 concept..

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 table cellpadding='4'trtd width='40'img src='../images/adobepdf.gif'

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:

[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 to

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

2003-02-11 Thread michael kimsal
James wrote: snip 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

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 problems

[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: snip 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

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 struct.

[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

[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

[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

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

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

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,

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))

[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 =

[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

[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

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] 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,

[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

[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: ? //File_name = send_form.php// include header.htm; include setup.php; $msg .= Senders

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: [EMAIL

[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 servers,

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 be

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:

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 more

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

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:

[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] 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

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()

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?

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

[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

[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

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

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

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] 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 is

[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

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

[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? input type='hidden' name='$myrow' value='$myrow' Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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? input type='hidden' name='$myrow' value='$myrow' Thanks, Eddie -- The above message is encrypted

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? input type='hidden' name='$myrow' value='$myrow' archives passing array -- Jason Wong - Gremlins Associates -

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

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 stops.

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 from a

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 you're

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 can

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

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

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

[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 for

[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:

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

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: [PHP]

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 you

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

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.

[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

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: ? session_start(); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else {

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 at

[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

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,

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 =

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

[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

[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

[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

[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

[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 right

[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

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 system. I'm

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 provider

Re: [PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Can anybody help me with file uploading, again... I tried uploading a file through... form enctype=multipart/form-data action=project_save.php method=post input name=project_file type=file input type=submit value=ok /form but, on project_save.php, the $HTTP_POST_FILES[project_file][size] is

[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] 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 sample

[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

[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

[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

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 want to

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 am

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.

[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

[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

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 accessible

  1   2   >