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
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
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
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
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?
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
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
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)) {
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
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
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
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:
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
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
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();
* 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
* 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
* 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
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
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
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
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
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
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
-- 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);
?
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
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
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
* 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
* 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
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
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
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
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
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;
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
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)
--
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).
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
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
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
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
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
43 matches
Mail list logo