Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-20 Thread Philip Olson
He is referring to a question that is answered here: http://www.php.net/manual/en/faq.html.php#faq.html.encoding Spoiler: htmlspecialchars() -> http://www.php.net/htmlspecialchars Regards, Philip Olson On Sat, 21 Dec 2002, Justin French wrote: > on 21/12/02 2:00 PM, Alexander Guevara ([EMA

Re: [PHP] Is there any method to filter the single quote fromastring?

2002-12-20 Thread Justin French
on 21/12/02 2:00 PM, Alexander Guevara ([EMAIL PROTECTED]) wrote: > It works.. but when you retrieve the data from the database to a text box it > doesnt appear if it has the single quote ('), o tought it was cause i have > the stripslashes but i delete stripslashes and it still doesnt appear in t

[PHP] table trouble

2002-12-20 Thread Didier McGillis
Hello everyone, I was looking for some help, its late and I'm trying to help a friend finish up a project. here is an example and the jpg of what the page is supposed to look like. http://www.heathermccullough.com/bocajava/bocabucks/bocabucks.html http://www.heathermccullough.com/bocajava/bocab

[PHP] running perl script via su

2002-12-20 Thread Larry Brown
I am getting a lot of information about running the web server as root and the associated problems and so on as I've been looking for a quick solution. I have a perl script that is run by cron that executes sequence of events via sftp. The sftp client has no option that I know of to denote a diffe

Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-20 Thread Alexander Guevara
It works.. but when you retrieve the data from the database to a text box it doesnt appear if it has the single quote ('), o tought it was cause i have the stripslashes but i delete stripslashes and it still doesnt appear in the text box! "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAI

Re: [PHP] the numeric key of an array???

2002-12-20 Thread Alexander Guevara
Thanks. it worked fine.. and the reply at the botton too.. Thank you so much! "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 000101c2a896$70aad5c0$7c02a8c0@coconut">news:000101c2a896$70aad5c0$7c02a8c0@coconut... > > > If you're looking to loop through your array, there are other > meth

RE: [PHP] the numeric key of an array???

2002-12-20 Thread John W. Holmes
> > If you're looking to loop through your array, there are other methods. > Well which kind of methods are you talking about?? could you tell me some > for do it?? foreach($array as $key=>$value) www.php.net/foreach while(list($key,$value) = each($array) www.php.net/each www.php.net/list $cn

Re: [PHP] the numeric key of an array???

2002-12-20 Thread Alexander Guevara
Yeah this workes fine.. thanks!! "Philip Olson" <[EMAIL PROTECTED]> wrote in message Pine.BSF.4.10.10212210135051.36987-10@localhost">news:Pine.BSF.4.10.10212210135051.36987-10@localhost... > > No, but you can do this: > > $arr2 = array_values($array); > > print $arr2[0]; // VALUE1 > >

Re: [PHP] the numeric key of an array???

2002-12-20 Thread Alexander Guevara
Well which kind of methods are you talking about?? could you tell me some for do it?? Thanks! "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 01c2a890$d1539cf0$7c02a8c0@coconut">news:01c2a890$d1539cf0$7c02a8c0@coconut... > > How can i do for printing the value of an array given the

Re: [PHP] the numeric key of an array???

2002-12-20 Thread Philip Olson
No, but you can do this: $arr2 = array_values($array); print $arr2[0]; // VALUE1 Regards, Philip Olson On Fri, 20 Dec 2002, Alexander Guevara wrote: > How can i do for printing the value of an array given the numeric key for > example i have this code: > > $array = array ( > 'VAL1'

RE: [PHP] the numeric key of an array???

2002-12-20 Thread John W. Holmes
> How can i do for printing the value of an array given the numeric key for > example i have this code: > > $array = array ( > 'VAL1' => "VALUE1", > 'VAL2' => "VALUE2", > 'VAL3' => "VALUE3" > ) > > So the only way i have found to print the value is like this : > echo $array['VAL1'

[PHP] the numeric key of an array???

2002-12-20 Thread Alexander Guevara
How can i do for printing the value of an array given the numeric key for example i have this code: $array = array ( 'VAL1' => "VALUE1", 'VAL2' => "VALUE2", 'VAL3' => "VALUE3" ) So the only way i have found to print the value is like this : echo $array['VAL1']; and it prints = VA

RE: [PHP] Re: mail()

2002-12-20 Thread Andy Turegano
Yeah, is the best alternative. On Fri, 20 Dec 2002, John W. Holmes wrote: > > I changed this and it works fine but I now lose my formating. It > doesn't > > seem to recognize the \n breaks. Am I asking for to much? > > Well, you'll be required to learn HTML if you're going to send HTML > emai

RE: [PHP] Re: mail()

2002-12-20 Thread John W. Holmes
> I changed this and it works fine but I now lose my formating. It doesn't > seem to recognize the \n breaks. Am I asking for to much? Well, you'll be required to learn HTML if you're going to send HTML emails. Use . ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals

RE: [PHP] Disable session cookies

2002-12-20 Thread John W. Holmes
> Is there any way to disable using cookies in sessions? I haven't found a > good > reason to do this, only my boss's predisposition against cookies ;). Yep, session.use_cookies setting in php.ini. Set it to zero to not use cookies. ---John W. Holmes... PHP Architect - A monthly magazine for PH

[PHP] text parser

2002-12-20 Thread Uros Gruber
Hi! I wan't to know if there is any goor text parser around here written in php. I'm asking before i create my own. I would like extract some text msgs to words and i would also like take care of stop words, special characters etc... So to know if some word is regular word, or if is number, html

Re: [PHP] Disable session cookies

2002-12-20 Thread Evan Nemerson
Sorry about the double post- I got an error message (which i now realize was from a mirror), so i tried again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php/dreamweaver mx/mysql server question...

2002-12-20 Thread Kelly Meeks
I'm trying to get dreamweaver mx working with php/mysql and a remote server. My remote server is named localhost. How can I change it's name? Is it as simple as change the host value for the user's login? I've tried several things to no avail. TIA, Kelly

Re: [PHP] login

2002-12-20 Thread Justin French
You really need to check out sessions. 1. user logs in by a form 2. php validates the login, checks for a valid uid/pwd 3. if valid, sets a session variable like $_SESSION['uid'] 4. you put session_start() at the top of each page, and php will know that they are logged in as "justin" or whatever.

[PHP] Disable session cookies

2002-12-20 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any way to disable using cookies in sessions? I haven't found a good reason to do this, only my boss's predisposition against cookies ;). Thanks in advance, Evan - -- A leader is the wave pushed ahead by the ship. - -Leo Nikolaevich Tolst

Re: [PHP] libcrypt.a and solaris 8

2002-12-20 Thread Michael Sweeney
I've recently compiled PHP (4.2.3) with openssl support on a Solaris 8 system. openssl does not have a libcrypt.a library - it does have libcrypto.a. How did you install openssl and what is your configuration line for PHP? I've found it to be best to configure openssl so that it installs somewhere

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread Marco Tabini
Well, the execution time depends on a number of factors. If your tables are indexed properly and you take advantage of the indexes, then the growth in execution time is not linear (I'm guessing the indexes are maintained through balanced or semi-balanced trees or a similar method). However, in your

Re: [PHP] Error installing

2002-12-20 Thread Michael Sweeney
If you are trying to load a PHP-Nuke site, your problem is that the page can't access your mysql server. Either the server is not running, or the hostname/username/password is not correct so the program is unable to successfully connect to the mysql server. ..michael.. On Fri, 2002-12-20 at 01:08

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread John Hinton
I was wondering if this would grow linearly... as the data collects? So, if it takes 3 seconds to do 2600 rows, will it take 30 seconds to do 26000 rows? I am using a simple for statement to send the 26 records through the 10 querys. A typical select is: SELECT DISTINCT DATE_FORMAT(date, '%Y%m%d'

[PHP] cookies

2002-12-20 Thread Edward Peloke
I am setting a cookie with this code: 0){ $myrow2 = mysql_fetch_array($result2); $clientid=$myrow2["id"]; $fname=$myrow2["fname"]; $cookievalue=md5($uname.$password); setcookie("aircharteruser",$cookievalue,time()+1800,"/"); }

[PHP] Web-page audio recorder/player combination

2002-12-20 Thread Kendal
Hi All, I posted a preliminary PHP example of how to use a Web-page audio recorder/player combination I developed. User's recordings are saved on, and played from, your server. http://www.freedomaudio.com/examples/recorder102/index.html Naturally, I would appreciate good feedback. Happy Holida

Re: [PHP] Problem with functions

2002-12-20 Thread Jason Wong
On Saturday 21 December 2002 03:27, Beauford.2002 wrote: > Jon, > > You may have answered my question, but I'm still confused. I see from your > example that the actual function comes before the function is called in the > script, and when I changed mine to that format it worked. > > Now the confus

[PHP] Compile with GD TTF FREETYPE

2002-12-20 Thread Breno Cardoso Perucchi
Hello, I am trying compile my php-4.2.3 with FreeType Support enabled FreeType Linkage with TTF library ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-mysql =/usr/local/mysql --with-gd --enable-gd-native-ttf --with-ttf --disable-mbs tr-enc-trans --with-freety

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread Marco Tabini
Well, then, assuming your complexity grows linearly, I guess you'll have to wait a few minutes with 160,000 rows on which you can expect to perform 16,000 queries... You mention that you perform the queries on objects--can you elaborate on this point? Marco -- php|architect - The M

[PHP] Re: Problem with sessions.

2002-12-20 Thread sasha
On Thu, 19 Dec 2002 16:43:10 -0700, Mike Hillyer <[EMAIL PROTECTED]> wrote: Hello All; Please forgive me if I am repeating an often asked question, but I am having a problem with sessions. I simply cannot get them to work. The sample code I provide works on another server perfectly, this is th

[PHP] GD 2.0 Souce tar ball ?

2002-12-20 Thread R'twick Niceorgaw
Hi guys, does any one have latest GD 2.0 source tarball and care to share ? seems like the url http://www.boutell.com/gd is down Regards -R'twick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost

2002-12-20 Thread sasha
On Wed, 18 Dec 2002 15:47:44 -0600, Joseph W. Goff <[EMAIL PROTECTED]> wrote: Is there a difference between PHP versions on your machine and your site? Have you looked at phpinfo() to see what variables have been set on your system? - Original Message - From: "rolf vreijdenberger" <[EMAI

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread John Hinton
In one main instance, I'm doing 10 querys on an array of 26 unique objects extracted from the database. So, I suppose it is running 260 queries on 2600 lines of code. Marco Tabini wrote: > > IMHO it depends on the amount of operations you have to perform on your > rows. If manipulating 2,600 rows

Re: [PHP] Resource limit/performance questions

2002-12-20 Thread Marco Tabini
IMHO it depends on the amount of operations you have to perform on your rows. If manipulating 2,600 rows takes several seconds, then either you're performing some really complicated data manipulation or your db could use some optimization. I have an application that manipulates ~150,000 rows on a P

[PHP] Resource limit/performance questions

2002-12-20 Thread John Hinton
I'm working on a php/mysql ap, which looks as though it will be dealing with an average of 160,000 rows of short text entries = 32 megs of drives space Anybody have ideas about what if any limits I might hit? And how I might be able to determine any limits at this point when we have only 2 weeks

[PHP] Re: Win32 php : MS Access support (odbc support)

2002-12-20 Thread Jeff
Why not connect to MDB via ODBC? "Robert Mena" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I will have to retrieve data stored in a MDB (MS > Access) "database". > > Since this MDB file be hosted in a Windows machine I'd > like to have a CGI version

Re: [PHP] upload_max_filesize + ini_set

2002-12-20 Thread electroteque
and i just tested the script and it let me upload a 2.5M file. so there must be a way to put it in the page aswell "Mike Ford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > -Original Message- > > From: electroteque [mailto:[EMAIL PROTECTED]] > > Sent:

Re: [PHP] upload_max_filesize + ini_set

2002-12-20 Thread electroteque
here is a sample htaccess file with ini rules php_value register_globals Off php_value track_vars On php_value arg_separator.output "&" php_value arg_separator.input "&" php_value upload_max_filesize "3M" i get 3M returned as the upload_max_filesize so it does work "Mike Ford" <[EMAIL PROTECTED]>

Re: [PHP] Problem with functions

2002-12-20 Thread Beauford.2002
Jon, You may have answered my question, but I'm still confused. I see from your example that the actual function comes before the function is called in the script, and when I changed mine to that format it worked. Now the confusion. I have another script which is the opposite of your example, and

Re: [PHP] Strings and default values...

2002-12-20 Thread Leif K-Brooks
1) You most likely have magic_quotes_gpc set to on. Either set it to off or stripslashes() the input. 2) No, it won't print. Think of a heredoc as a quotes string without the quotes. You can, however, do something like: $variable = <<< WHATEVER whatever text goes here WHATEVER; $variable.= exe

[PHP] Strings and default values...

2002-12-20 Thread Steven Kallstrom
Dear List, This is a simple problem, but I can't really find a good solution. and I have a general question also. 1) I have a webform that is save to a variable $html using heredoc. $html = <<< WEBFORM . . the problem is that when you enter an apostrophe, and then repost

[PHP] Equivalent to mysqldump in PHP

2002-12-20 Thread Todd Cary
Is there a function that can be implemented with PHP to do the equivalent of a mysqldump? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Good program to indent large quantity of files?

2002-12-20 Thread Leif K-Brooks
Thanks, but it inserts two line breaks where there should be one, and puts spaces in my html tags so they don't work. Any other ideas? :( michael kimsal wrote: Leif K-Brooks wrote: I haven't been indenting any of my code, but I want to start indenting to make the code more readable. It wou

Re: [PHP] syntax to reference $_POST within function

2002-12-20 Thread Philip Olson
This is a very important point to understand, I tried (and failed) to explain it. I think Leif made it pretty clear though, here's another :) // $a can be anything when you call the function function bar ($a) { print $a; } bar ('Hello World'); bar ($_POST['something']); Regards, Philip Ols

Re: [PHP] syntax to reference $_POST within function

2002-12-20 Thread Leif K-Brooks
You don't need to import the request variables for that to work. The variable names in the function definition have no relationship to variables outside of it. Most likely, you're calling with something like: check_banlist($banlist,$p_email); but you could also call it with: check_banlist($vari

[PHP] Pb installaling gd extension on a win32 server

2002-12-20 Thread fragmonster
Hello, I have migrate my site from a linux to a win32 server :-{ I need to use the php_gd.dll library but my pb is that I've downloaded the php installer from php.net with no external extensions included. So, I have downloaded the php_gd.dll, put it into a directory (d:\php\extension) I have cre

Re: [PHP] mkdir() makes dir, but with wrong owner

2002-12-20 Thread Marek Kilimajer
Another option is to use ftp functions. John W. Holmes wrote: i had a few problems with mkdir() ane uploading files using php. i have a simple script, which is making a dir. but everytime, it makes a dir with totally wrong user. chown wont work. any expirience with this?? i have found

RE: [PHP] Problem with functions

2002-12-20 Thread Jon Haworth
Hi, > I keep getting errors in my script that says 'x' function > is undefined or 'y' function is undefined. I defined it as > 'function test ($a, $b)' and call it using 'test($a, $b)' You need to post code :-) Try this: "; echo "a is $a"; echo "b is $b"; } test(1, 2); ?> C

Re: [PHP] Problem with functions

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

[PHP] Problem with functions

2002-12-20 Thread Beauford.2002
Hi, I keep getting errors in my script that says 'x' function is undefined or 'y' function is undefined. I defined it as 'function test ($a, $b)' and call it using 'test($a, $b)' From my knowledge this is correct, but it just simply doesn't work. Anyone have any ideas on this? TIA -- PHP Gen

Re: [PHP] syntax to reference $_POST within function

2002-12-20 Thread Jamie
Thanks for the vote of confidence. I ended up getting it working with this: import_request_variables('p', 'p_'); function check_banlist($banlist, $p_email) { This is what I had been trying to accomplish but was writing it this way: function check_banlist($banlist, $_POST['email']) { Maybe you

[PHP] Re: Creating reports in database systems implemented over Web interface

2002-12-20 Thread Brian McGarvie
Make use of fpdf - a good dpf creation lib.. type it into google for the site. "Enediel" <[EMAIL PROTECTED]> wrote in message 076a01c2a51c$9c47be50$8a24a8c0@nsoft">news:076a01c2a51c$9c47be50$8a24a8c0@nsoft... > Hi everybody: > > Over linux, I'm using PostgreSQL , Apache server, and PHP pages to cr

Re: [PHP] $_SERVER["PATH_TRANSLATED"] returns empty string

2002-12-20 Thread Dries Verachtert
Is $_SERVER["SCRIPT_FILENAME"] the information you need? (on apache 2.0, php 4.2.2) Kind regards, Dries Verachtert On Fri, 2002-12-20 at 15:40, Robert Nedbal wrote: > On Wed, 18 Dec 2002, Chris Hewitt wrote: > > Robert Nedbal wrote: > > >So should I try to use apache 1.x instead of apache2? > >

Re: [PHP] Problem with static call of method - class::method

2002-12-20 Thread Marek Kilimajer
From what I know about OOP, $this should be undefined if the method call is static. Mirek Novak wrote: Hi everybody, I've problem deciding whether is method call static or dynamic. How can I find it? mirek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] login

2002-12-20 Thread Jason Wong
On Friday 20 December 2002 22:20, Edward Peloke wrote: > Ok, > Newbie Question. > I know have a login and registration page on my website. What is the best > way to check to see if the users have logged in before they access the > other pages? SHould I add to each of the other url's ?clientid

RE: [PHP] How to upload a file

2002-12-20 Thread Rich Gray
And if you select a small file it works fine right? -Original Message- From: Somesh [mailto:[EMAIL PROTECTED]] Sent: 20 December 2002 12:29 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How to upload a file post_max_size 8M upload_tmp_dir It fails immediately after clicking th

Re: [PHP] $_SERVER["PATH_TRANSLATED"] returns empty string

2002-12-20 Thread Robert Nedbal
On Wed, 18 Dec 2002, Chris Hewitt wrote: > Robert Nedbal wrote: > >So should I try to use apache 1.x instead of apache2? > > > Pass on that, I have no experience of Apache 2, but I do not think it is > intended for production yet. Looking at phpinfo() on my computer here > (GNU/Linux RedHat 7.3 PHP

Re: [PHP] Re: mail()

2002-12-20 Thread Bastian Vogt
Hi, if you use plain text use "\n", elseif you use text/html use "" (and all the other html-tags) HTH, Bastian Edward Peloke schrieb: > Can I still keep the formatting? When I added the Content-type: text/html > to the header last night, the link worked but my formatting did not. > Everything

[PHP] libcrypt.a and solaris 8

2002-12-20 Thread dweise
hello, i'm trying to compile php with openssl and ldap. i can't i keep getting an error. i surfed the web and found a reference that the library libcrypt.a in openssl is not compatable with that in solaris 8. is this true? --dave -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] Re: mail()

2002-12-20 Thread Edward Peloke
Can I still keep the formatting? When I added the Content-type: text/html to the header last night, the link worked but my formatting did not. Everything was just a long string. Thanks, Eddie -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 9

RE: [PHP] login

2002-12-20 Thread Edward Peloke
no, I mean logged into the current browser session. I have never used cookies so I will look into that in the php docs. Thanks, Eddie -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 9:00 AM To: Edward Peloke; [EMAIL PROTECTED] Subject: Re: [

Re: [PHP] Re: mail()

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

Re: [PHP] Re: mail()

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

Re: [PHP] login

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

[PHP] login

2002-12-20 Thread Edward Peloke
Ok, Newbie Question. I know have a login and registration page on my website. What is the best way to check to see if the users have logged in before they access the other pages? SHould I add to each of the other url's ?clientid='' and if it is an empty string I know they haven't logged in?

RE: [PHP] Re: mail()

2002-12-20 Thread Edward Peloke
I changed this and it works fine but I now lose my formating. It doesn't seem to recognize the \n breaks. Am I asking for to much? -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: mail()

php-general Digest 20 Dec 2002 13:47:40 -0000 Issue 1774

2002-12-20 Thread php-general-digest-help
php-general Digest 20 Dec 2002 13:47:40 - Issue 1774 Topics (messages 128931 through 128983): Re: Another problem with conditional statements 128931 by: Beauford.2002 128934 by: Sean Malloy 128936 by: Beauford.2002 128958 by: Jason Wong 128959 by: Jaso

[PHP] Re: Good program to indent large quantity of files?

2002-12-20 Thread michael kimsal
Leif K-Brooks wrote: I haven't been indenting any of my code, but I want to start indenting to make the code more readable. It would be near-impossible for me to manually indent what's already there, though. So, I'm looking for a program to indent an entire folder of PHP files at once. Any s

Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-20 Thread ªüYam
thx "Justin French" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] don't filter the quotes... escape them with add_slashes() justin on 20/12/02 10:50 PM, ªüYam ([EMAIL PROTECTED]) wrote: > as title that I'm getting a trouble on filtering the single quote ' , since > there would be error

RE: [PHP] mkdir() makes dir, but with wrong owner

2002-12-20 Thread John W. Holmes
>i had a few problems with mkdir() ane uploading files using php. > >i have a simple script, which is making a dir. but everytime, it >makes a dir with totally wrong user. chown wont work. > >any expirience with this?? i have found some older posts >considering this, but no re

[PHP] XML fopen($url)

2002-12-20 Thread William Bradshaw
Reading Remote Files With FOPEN: This appears to be quite a common problem for installations that run a really tight ship. I am trying to do some XML and have a slight problem: My hosting company does not allow for file sockets. I assume that this means that allow_url_fopen will not work. Exam

Re: [PHP] Apache2 & PHP4

2002-12-20 Thread Dries Verachtert
Hello, I use the following in my VirtualHost example: DocumentRoot /a/b/c/d/ ServerName a.be SetOutputFilter PHP SetInputFilter PHP I don't have AddType's for .html. I also still got the following: AllowOverride All This was needed to make the AddType in .htaccess file

[Fwd: Re: [PHP] PHP not working in html]

2002-12-20 Thread Dries Verachtert
You can also change the apache config to use php for .html pages. example in apache 2.0.x: ... normal stuff like documentroot, servername, .. SetOutputFilter PHP SetInputFilter PHP Or globally in the /etc/httpd/conf.d/php.conf, add a: SetOutputFilter PHP SetInputFilter P

RE: [PHP] How to upload a file

2002-12-20 Thread Somesh
post_max_size 8M upload_tmp_dir It fails immediately after clicking the submit button. [thanx for ur concern] On Wed, 18 Dec 2002, Rich Gray wrote: > What are these settings in your php.ini? > > post_max_size > upload_tmp_dir > > Does the upload_tmp_dir have enough space? Are the permission

RE: [PHP] upload_max_filesize + ini_set

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: electroteque [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 11:35 > To: [EMAIL PROTECTED] > Subject: [PHP] upload_max_filesize + ini_set > > > is there a way to get this setting to work without hard > setting in htaccess > ? i'd like to be able to dynami

Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-20 Thread Justin French
don't filter the quotes... escape them with add_slashes() justin on 20/12/02 10:50 PM, ªüYam ([EMAIL PROTECTED]) wrote: > as title that I'm getting a trouble on filtering the single quote ' , since > there would be error when storing those string into MySQL, thus, i have to > find the appropria

[PHP] Is there any method to filter the single quote from a string?

2002-12-20 Thread ªüYam
as title that I'm getting a trouble on filtering the single quote ' , since there would be error when storing those string into MySQL, thus, i have to find the appropriate method to solve it, anybody can help please? thx a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] upload_max_filesize + ini_set

2002-12-20 Thread electroteque
is there a way to get this setting to work without hard setting in htaccess ? i'd like to be able to dynamically set the max filesize via a defines setting and ini_set rather than statically in htaccess -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Beauford.2002 [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 03:15 > > > Using switch would be more efficiant as it would stop once a > match is made > (if you use break), but with eleif statements each one is evaluated in > order. Not sure that's true

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 02:36 > To: PHP General > Subject: RE: [PHP] Another problem with conditional statements > > > Nowhere in the documentation does it specify switch should be > used in the > context you are attemp

[PHP] Apache2 & PHP4

2002-12-20 Thread Chase Urich
OK, so I've spent the last 2 or 3 hours looking on the net for this. Can anyone tell me the proper way (with Apache 2.0.40) to instruct apache to process .htm and .html files? I've tried: In /etc/httpd/conf/httpd.conf :: AddType application/x-httpd-php .php AddType application/x-ht

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 00:34 > > switch() does not work that way. Switch uses the value in > the parentheses and selects a > CASE based upon that value. Read the manual. > > You will have to use a series of if()-elsei

RE: [PHP] Some discoveries I've made. Anyone care to confirm/deny

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED]] > Sent: 19 December 2002 23:30 > > Firstly, something regarding accessing form/query string variables, on > diffferent versions of PHP. Starts to become a nightmare, but > you also want > to make sure you _aren't_ requiri

[PHP] mkdir() makes dir, but with wrong owner

2002-12-20 Thread Mirza Muharemagic
Hi, i had a few problems with mkdir() ane uploading files using php. i have a simple script, which is making a dir. but everytime, it makes a dir with totally wrong user. chown wont work. any expirience with this?? i have found some older posts considering this, but no real answer

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Beauford.2002 [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 00:19 > > This should be as simple as breathing, but not today. I have > two variables > $a and $b which I need to compare in a switch statement in > several different > ways, but no matter wha

Re: [PHP] PHP not working in html

2002-12-20 Thread Dries Verachtert
You can also change the apache config to use php for .html pages. example in apache 2.0.x: ... normal stuff like documentroot, servername, .. SetOutputFilter PHP SetInputFilter PHP Or globally in the /etc/httpd/conf.d/php.conf, add a: SetOutputFilter PHP SetInputFilter PHP

Re: [PHP] Error installing

2002-12-20 Thread Jason Wong
On Thursday 19 December 2002 23:48, Mako Shark wrote: > Anybody have any bright ideas? > > Trying to install my own PHP on my own server. I'm > getting the error "Redirection limit for this URL > exceeded. Unable to load the requested page." Not sure whether this is your problem, but one thing whi

[PHP] Problem with static call of method - class::method

2002-12-20 Thread Mirek Novak
[re-sending] Hi everybody, I've problem deciding whether is method call static or dynamic. How can I find it? mirek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with static call of method - class::method

2002-12-20 Thread Mirek Novak
[re-sending] Hi everybody, I've problem deciding whether is method call static or dynamic. How can I find it? mirek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL path problems

2002-12-20 Thread ªüYam
Thx for your help, butis there any instructions that let me follow? I'm not familiar with those settings, thx a lot "Peter Houchin" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] > if ur using apache using .htaccess in the directory .. and you can also set > it in the httpd.conf > > > --

[PHP] Problem with static call of method - class::method

2002-12-20 Thread Mirek Novak
Hi everybody, I've problem deciding whether is method call static or dynamic. How can I find it? mirek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another problem with conditional statements

2002-12-20 Thread Jason Wong
On Friday 20 December 2002 08:28, Sean Malloy wrote: > Its all wrong. You shouldn't be using a switch statement anyway. A switch > is for evaluating a single variable. You can use the switch construct in the context that the OP was using it. In fact I prefer use that instead of a whole bunch of i