php-general Digest 13 Sep 2004 00:56:09 -0000 Issue 2992

2004-09-12 Thread php-general-digest-help
php-general Digest 13 Sep 2004 00:56:09 - Issue 2992 Topics (messages 196437 through 196460): Re: ftp_nlist() 196437 by: Jason Wong Re: Very OT [PHP] CSS not picked up 196438 by: raditha dissanayake JDBC Driver for MySQL 196439 by: Daniel Schierbeck 196440

Re: [PHP] Evaluating form posts

2004-09-12 Thread Jason Wong
On Sunday 12 September 2004 08:53, PHP Mailing list account wrote: I had an apache server running with php 5. Now I installed unix on that pc and apache and php 5. I am using some forms on web pages and get their values by writing $foo = $_POST[foo]; Since I 'upgraded' to unix i am getting a

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

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

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?

[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

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 begun

[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($news)) {

[PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Nick Wilson
Hi all, Say i have a php script like this: ?php print(html_head()); // do loads of time taking stuff print(html_footer()); ? How come I dont see the html header (it's just a function that returns a string with the html up till body) before the entire script has run? This goes against my

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: ?php print(html_head()); // do loads of time taking stuff print(html_footer()); ? How come I dont see the html header (it's just a function that returns a string with the html up till body) before the entire script has run? This goes

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

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 dirk
Well, there is a difference between function html_head() { $html = html; return $html; } and function header() { ? html head title ? } The first function you need to call using ? echo header(); ? to see the output THe second function

[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: ?php print(html_head()); // do loads of time taking stuff print(html_footer()); ? How come I dont see the html header (it's just a function that returns a string with the html up till body) before the entire script has run? This

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

2004-09-12 Thread raditha dissanayake
dirk wrote: The first function you need to call using ? echo header(); ? 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();

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() { ? html head title ? } Yes, i remember now, thanks ;-) I've been using Smarty (smarty.php.net) for so long now that i've forgotten

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

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

[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

[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

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

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

2004-09-12 Thread Nicolae Serban
I just install the PHP 5 ! This is the code ?php $link=mysql_connect(localhost,root,1234); mysql_close($link); ? 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

[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
-- 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 ?php $link=mysql_connect(localhost,root,1234); mysql_close($link); ?

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

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

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

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 check to see if the

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

[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

[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

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

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

[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: ? div style=position:absolute; top:100px;

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 option like you have done in the div So this: echo option value=\$row[0]\ $row[0] /option; Could look like this: echo option value=\$row[0]\ style=\font-family:arial; font-size:10pt; font-weight:bold;\ $row[0] /option; -- Franklin van de Meent

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

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

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 uhmm... did

[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] 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 ? echo header(); ? 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

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