Re: [PHP] Re: Evaluating form posts

2004-09-12 Thread Chris Shiflett
--- Alexander Kleshchevnikov <[EMAIL PROTECTED]> wrote: > You should chech for configuration of magic quotes gpc. > Use get_magic_quotes_gpc() function: > > $foo = get_magic_quotes_gpc() ? stripslashes($_POST["foo"]) : > $_POST["foo"]); I agree. However, stripslashes() doesn't necessarily undo ad

Re: [PHP] Re: how to redirect ?

2004-09-12 Thread Chris Shiflett
--- Paul Waring <[EMAIL PROTECTED]> wrote: > > I think you used header() after put out some data or php installed on > > server as CGI. Because send header possible only if php installed as > > apache module. > > Not so - I've used header('Location: http://www.xyz.com/'); with PHP > as a CGI binar

RE: [PHP] MS Outlook 2003 Mail listing

2004-09-12 Thread Ed Lazor
Check out the manual on the date function. It allows you to get names from dates. The PEAR date stuff will allow you to do date math. > -Original Message- > From: Rajesh [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 12, 2004 10:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP] MS Outl

Re: [PHP] Re: Evaluating form posts

2004-09-12 Thread zareef ahmed
HI, A good article about magic quotes http://www.webmasterstop.com/tutorials/magic-quotes.shtml zareef ahmed --- Alexander Kleshchevnikov <[EMAIL PROTECTED]> wrote: > You should chech for configuration of magic quotes > gpc. > Use get_magic_quotes_gpc() function: > > $foo = get_magic_quotes_

Re: [PHP] gtk is working in php 5 ?

2004-09-12 Thread zareef ahmed
HI , --- Nicolae Serban <[EMAIL PROTECTED]> wrote: > i'm new with php 5 and i whant to know if gtk it is > still working with php 5 !! > > Thank you ! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > visit http://gtk.php.net ;)

RE: [PHP] Help With PEAR::DB Connection

2004-09-12 Thread php-list
Jim, Thank you. Problem solved thanks to you. The moment you said that PEAR::DB is not finding the MySQL extention I realized that the extension in php.ini hasn't been commented out and the extension folder had not been recognized by PHP. I forgot we had to do that in PHP5. Everything is working l

Re: [PHP] ftp_nlist()

2004-09-12 Thread zareef ahmed
Hi, --- Jason Wong <[EMAIL PROTECTED]> wrote: > Not sure why you would want to chdir first. Why not > just: > ftp_chdir is usefull on windows specially if directory name has a space in it. zareef ahmed = Zareef Ahmed :: A PHP Developer in Delhi ( India ). Homepage :: http://www.zasaifi.c

RE: [PHP] I don't understand why !!!!

2004-09-12 Thread Mulley, Nikhil
Yeah It was the same problem with me too,When I tried to Google,I found that PHP 5 is not an upgrade of PHP 4 ,but a complete rewrite, So,I thought of switching to php 4,which works quiet relevantly, You need to configure php4.3 wit MYSQL and apache before they are used and the thing is that in

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Jason Davidson
yup, you took the words from my mouth... [EMAIL PROTECTED] wrote: > > dirk wrote: > > >The first function you need to call using to see the > output > >THe second function is not a real function because it has no return > >statement. In german you call this "Prozedur". Don't know if it's the >

[PHP] MS Outlook 2003 Mail listing

2004-09-12 Thread Rajesh
Hai all i just saw MS Outlook 2003 in this applicatioin the mail are sorted in date and given names like Today Yesterday Last Week Two Weeks Ago ... Can anybody give me algorithm to get date in this string version . Thank you, Rajesh

Re: [PHP] safely using input for mail

2004-09-12 Thread John Holmes
Justin French wrote: On 13/09/2004, at 12:45 PM, John Holmes wrote: str_replace(array("\r","\n",'',$text) Is one way to do it. Typo John: str_replace(array("\r","\n"),'',$text); Yeah, that's why I said it was "one way" to do it and not the "correct way" to do it... come on people!! ;) Anyway, I

Re: [PHP] safely using input for mail

2004-09-12 Thread Justin French
On 13/09/2004, at 12:45 PM, John Holmes wrote: str_replace(array("\r","\n",'',$text) Is one way to do it. Typo John: str_replace(array("\r","\n"),'',$text); :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] safely using input for mail

2004-09-12 Thread David T-G
John, et al -- [Been a while! How ya been?] ...and then John Holmes said... % % David T-G wrote: % % >I'd like some sanity checks on safely using input for sending mail. I'm ... % >At the moment, I am running escapeshellcmd() on the From:, To:, Subject:, ... % >his own bandwidth limits). Unf

Re: [PHP] How to change font attributes in dropdown?

2004-09-12 Thread John Holmes
Jeff Swanberg wrote: I've tried many locations but can't figure out how to change the font attributes for just my dropdown list on my page. The dropdown box populates its data perfectly but I'd like to change the font to Arial Bold 10pt on the items. Google -> CSS Tutorial (not a PHP issue) --

Re: [PHP] How to change font attributes in dropdown?

2004-09-12 Thread Franklin van de Meent
Hello Jeff, You can use the style attribute in like you have done in the So this: echo " $row[0] "; Could look like this: echo " $row[0] "; -- Franklin van de Meent [EMAIL PROTECTED] On Sun, 12 Sep 2004 19:46:51 -0700, Jeff Swanberg <[EMAIL PROTECTED]> wrote: > I've tried many locations

[PHP] How to change font attributes in dropdown?

2004-09-12 Thread Jeff Swanberg
I've tried many locations but can't figure out how to change the font attributes for just my dropdown list on my page. The dropdown box populates its data perfectly but I'd like to change the font to Arial Bold 10pt on the items. Here's my code: ?> > "; echo " Choose Event "; mysql_connect

Re: [PHP] safely using input for mail

2004-09-12 Thread John Holmes
David T-G wrote: I'd like some sanity checks on safely using input for sending mail. I'm developing a feature where one can click a 'mail this page' link, fill in the sender's and the recipient[s]'s addresses, and add comments in the body (eg "Hey, Bill, what do you think of this chair?") and then

Re: [PHP] Valid Chars....no fun!

2004-09-12 Thread John Holmes
Jay wrote: I got this code from here, i think it was "Ni Shurong" who gave it to me. The code works pretty good. Except i found that sending "asdas." into the function will return true...it should return false. What i am trying to do is check for valid chars. Only alpha and numeric. Can someone

[PHP] safely using input for mail

2004-09-12 Thread David T-G
Hi, all -- I'd like some sanity checks on safely using input for sending mail. I'm developing a feature where one can click a 'mail this page' link, fill in the sender's and the recipient[s]'s addresses, and add comments in the body (eg "Hey, Bill, what do you think of this chair?") and then gene

[PHP] gtk is working in php 5 ?

2004-09-12 Thread Nicolae Serban
i'm new with php 5 and i whant to know if gtk it is still working with php 5 !! Thank you ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] get_class_vars

2004-09-12 Thread Curt Zirzow
* Thus wrote Sam Hobbs: > Using the code shown below, I get nothing from get_class_vars but I do get > very useful results from get_class_methods. I realize that this is how it is > supposed to be, but it would be useful to be able to get the property > members of the class. The reason I want to

Re: [PHP] Class dependencies

2004-09-12 Thread Curt Zirzow
* Thus wrote Ed Lazor: > > -Original Message- > > What you can do is something like this: > > > > > 1> function __autoload($class_name) { > 2> static $_stack = array(); > 3> > > This didn't seem to work. The stack stuff just ends up dumping the value of > $class_name. Also, why chec

[PHP] Valid Chars....no fun!

2004-09-12 Thread Jay
Hi! I got this code from here, i think it was "Ni Shurong" who gave it to me. The code works pretty good. Except i found that sending "asdas." into the function will return true...it should return false. What i am trying to do is check for valid chars. Only alpha and numeric. Can someone help m

Re: [PHP] move_uploaded_file() access error

2004-09-12 Thread raditha dissanayake
Mike wrote: hi, there! I have a script that basically tries to upload a file to the server. But when the move_uploaded_function is called, it returns these errors: Warning: move_uploaded_file(../Main/ImgStiri/ceva.jpg): failed to open stream: Permission denied in /home/gotech/public_html/Nou/funct

Re: [PHP] I don't understand why !!!!

2004-09-12 Thread Alexander Kleshchevnikov
http://www.php.net/manual/ru/faq.databases.php#faq.databases.mysql.php5 --- Alexander Kleshchevnikov, DirectEDI Developer email:[EMAIL PROTECTED] icq: 153617972 --- "Nicolae Serban" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] I don't understand why !!!!

2004-09-12 Thread Nicolae Serban
-- Forwarded message -- From: Nicolae Serban <[EMAIL PROTECTED]> Date: Mon, 13 Sep 2004 01:58:38 +0300 Subject: [PHP] I don't understand why To: [EMAIL PROTECTED] I just install the PHP 5 ! This is the code and this is the error messege WHY !!! Fatal error: Call to und

[PHP] move_uploaded_file() access error

2004-09-12 Thread Mike
hi, there! I have a script that basically tries to upload a file to the server. But when the move_uploaded_function is called, it returns these errors: Warning: move_uploaded_file(../Main/ImgStiri/ceva.jpg): failed to open stream: Permission denied in /home/gotech/public_html/Nou/functii.php on

[PHP] I don't understand why !!!!

2004-09-12 Thread Nicolae Serban
I just install the PHP 5 ! This is the code and this is the error messege WHY !!! Fatal error: Call to undefined function mysql_connect() in C:\Apache\Apache2\htdocs\ttt.php on line 3 Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Re: how to load extensions outside the extension_dir

2004-09-12 Thread Marten Lehmann
Hello, You can't, It's a security thing. this doesn't make sense. When PHP is running as CGI, everyone can put it's own php.ini in the same directory as the PHP-script. This will overwrite all settings of the main php.ini. This works as described, but I don't want to put my own php.ini for that,

[PHP] Re: getting number of unique values out of array

2004-09-12 Thread M. Sokolewicz
Merlin wrote: Hi there, I am wondering how to count the number of unique values inside an array. For example, there is an array named country and it containes 3 country names, where Germany is doubled. So I would like to know that there are 2 unique country names in the array. Has anybody an ide

[PHP] getting number of unique values out of array

2004-09-12 Thread Merlin
Hi there, I am wondering how to count the number of unique values inside an array. For example, there is an array named country and it containes 3 country names, where Germany is doubled. So I would like to know that there are 2 unique country names in the array. Has anybody an idea how to achiv

[PHP] Re: Evaluating form posts

2004-09-12 Thread Alexander Kleshchevnikov
You should chech for configuration of magic quotes gpc. Use get_magic_quotes_gpc() function: $foo = get_magic_quotes_gpc() ? stripslashes($_POST["foo"]) : $_POST["foo"]) ; Do it with all GET and POST variables. -- Alexander. "Php Mailing List Account" <[EMAIL PROTECTED]> wrote in message news:[

Re: [PHP] Re: Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Nick Wilson
* and then M. Sokolewicz declared > >How come I dont see the html header (it's just a function that returns a > >string with the html up till ) before the entire script has run? > > > >This goes against my understanding, why might this be and what might i > >use to get some output before the s

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Nick Wilson
* and then John Holmes declared > >How come I dont see the html header (it's just a function that returns a > >string with the html up till ) before the entire script has run? > > > >This goes against my understanding, why might this be and what might i > >use to get some output before the scr

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Nick Wilson
* and then Jason Davidson declared > i prefer to escape from php inside my header fucntion, and just not > print it.. > eg. > function header() { >?> > } Yes, i remember now, thanks ;-) I've been using Smarty (smarty.php.net) for so long now that i've forgotten how this stuff works

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread raditha dissanayake
dirk wrote: The first function you need to call using to see the output THe second function is not a real function because it has no return statement. In german you call this "Prozedur". Don't know if it's the same as procedure in english. But you will call this piece header(); ?> to see some out

[PHP] Re: Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread M. Sokolewicz
Nick Wilson wrote: Hi all, Say i have a php script like this: How come I dont see the html header (it's just a function that returns a string with the html up till ) before the entire script has run? This goes against my understanding, why might this be and what might i use to get some output be

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread dirk
Well, there is a difference between > function html_head() { > $html = " > return $html; > } and > function header() { > ?> > } The first function you need to call using to see the output THe second function is not a real function because it has no return statement. In german you call

Re: [PHP] JDBC Driver for MySQL

2004-09-12 Thread Daniel Schierbeck
Manoj Nahar wrote: see this link http://dev.mysql.com/downloads/connector/j/3.0.html official mysql jdbc driver. PS. Give google a chance. On Sun, 12 Sep 2004 15:52:12 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote: I'm sorry if this is off-topic, but i figured this was the best place to ask:

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Jason Davidson
There is nothing wrong with what your doing, i use this sort of thing for all the big sites i make, i use a page class and use methods to create the header and footer, so your concept is good. I would investigate your html_head() function, to make sure its actually returning something. Sinse your

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread John Holmes
Nick Wilson wrote: Say i have a php script like this: How come I dont see the html header (it's just a function that returns a string with the html up till ) before the entire script has run? This goes against my understanding, why might this be and what might i use to get some output before the s

[PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Nick Wilson
Hi all, Say i have a php script like this: How come I dont see the html header (it's just a function that returns a string with the html up till ) before the entire script has run? This goes against my understanding, why might this be and what might i use to get some output before the script

[PHP] Re: create and read array

2004-09-12 Thread Alexander Kleshchevnikov
Yeah, thanks. Good idea! It is good to code that: $authors = array(); while ($authors[] = mysql_fetch_assoc($news)); "Chris Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Alexander Kleshchevnikov wrote: > > Maybe you want this: > > > > while ($data = mysql_fetch_assoc($ne

Re: [PHP] JDBC Driver for MySQL

2004-09-12 Thread Manoj Nahar
see this link http://dev.mysql.com/downloads/connector/j/3.0.html official mysql jdbc driver. PS. Give google a chance. On Sun, 12 Sep 2004 15:52:12 +0200, Daniel Schierbeck <[EMAIL PROTECTED]> wrote: > I'm sorry if this is off-topic, but i figured this was the best place to > ask: > > I've b

[PHP] JDBC Driver for MySQL

2004-09-12 Thread Daniel Schierbeck
I'm sorry if this is off-topic, but i figured this was the best place to ask: I've begun using the Eclipse IDE, and has downloaded the Quantum DB plugin. It says that i need a JDBC driver in order to connect to a remote MySQL database - where do i get that? I've looked at mysql.com, but i couldn'

Re: [PHP] Re: Very OT [PHP] CSS not picked up

2004-09-12 Thread raditha dissanayake
php guy wrote: On Sat, 2004-09-11 at 22:36, Jeff Swanberg wrote: Nope, I have them all. Any other ideas??? Do I need to load the style.css on every sub-page or just on the main page? Perhaps the style sheet is cached so, after I upload a new one, I need to do something to flush the cache?

Re: [PHP] ftp_nlist()

2004-09-12 Thread Jason Wong
On Sunday 12 September 2004 10:08, Karol Krizka wrote: > function get_files($dir="/") { > ftp_chdir($this->connection,$dir); > $array=ftp_nlist($this->connection,ftp_pwd($this->connection)); > var_dump($array); > } > When I connect to ftp server for my website at > ftp:/

[PHP] Re: Very OT [PHP] CSS not picked up

2004-09-12 Thread php guy
On Sat, 2004-09-11 at 22:36, Jeff Swanberg wrote: > Nope, I have them all. Any other ideas??? Do I need to load the style.css > on every sub-page or just on the main page? Perhaps the style sheet is > cached so, after I upload a new one, I need to do something to flush the > cache? > > js >