php-general Digest 12 Dec 2004 11:01:50 - Issue 3165
Topics (messages 204074 through 204092):
FTP_PUT 0kb problem
204074 by: jpb
204076 by: Marek Kilimajer
php variables in a backtick command
204075 by: Jonathan Duncan
204077 by: Jonathan Duncan
php-general Digest 12 Dec 2004 23:04:24 - Issue 3166
Topics (messages 204093 through 204121):
Re: Question: Repopulating form parameters
204093 by: Stuart Felenstein
204094 by: Jason Wong
204095 by: Stuart Felenstein
204096 by: Jason Wong
204104 by:
On Sunday 12 December 2004 18:15, Stuart Felenstein wrote:
Still stuck on this one. I know I'm doing something
wrong and wouldn't mind some correction:
Did you mockup some test HTML in a wysisyg editor as suggested?
Code now:
if (count($Ind) 0 AND is_array($Ind)) {
$Ind =
--- Jason Wong [EMAIL PROTECTED] wrote:
Close but no cigar. Since $Ind is already
imploded my
thinking is it need not be incremented in the echo
statement ?
You tell me, print_r() and var_dump() it before you
use it and decide whether
it is correct.
One final thing: '$Ind' is
--- Jason Wong [EMAIL PROTECTED] wrote:
I'm pretty sure I need to loop through the $_Get
of
the array. Not sure , and haven't found anything
that shows this.
Yes, you need to reference $_GET to see whether an
option was selected and
change the echo above accordingly.
Still
--- Jason Wong [EMAIL PROTECTED] wrote:
On Sunday 12 December 2004 18:15, Stuart Felenstein
wrote:
Still stuck on this one. I know I'm doing
something
wrong and wouldn't mind some correction:
Did you mockup some test HTML in a wysisyg editor as
suggested?
Yep like this :
select
On Sunday 12 December 2004 20:18, Stuart Felenstein wrote:
If I choose 1, 2 , 3 then
print_r($Ind); returns
'1','2','3'
This looks okay.
You *should* know what it should look like so I'll take your word for it.
I could not find a difference with '$Ind', or $Ind,
except I would think
Hi again everybody,
well, I've asked it before, but I couldn't work on this at all.
As some knows I have a system witch has a category system. The generic
part of the site is handled by a generic module called contents...
generic like products, services, company, etc. Where the content layout
I have several website that use mysql as a database and I would like them to
access each other DB. The problem is that I can't connect to each other mysql
DB so I'm looking for a way to do so. I'm thinking of droping the mysql
database in xml files that could be parse using php xml parser but
Hi David,
Thanks for your help. I've taken out the @ character, and added the
error-trapping code to my file.
The results:
When I run the file, nothing untoward is reported, and I end up with a blank
screen in IE / Moxilla Firebird / Opera. There are no errors reported.
In the Apache error log,
Hi Group Members
i have a problem with function empty()
i use it to check if user entered the form fields and store it in array
for example :
if (empty($Game_rating))
$errors[] = You didn't enter the Online Status for the Game.;
the problem when the user enters 0 in the form field
the
On Sunday 12 December 2004 21:40, Mike Francis wrote:
Please do not top post.
Hi David,
Thanks for your help. I've taken out the @ character, and added the
error-trapping code to my file.
The results:
When I run the file, nothing untoward is reported, and I end up with a
blank screen in
On Sunday 12 December 2004 21:35, p80 wrote:
I have several website that use mysql as a database and I would like them
to access each other DB. The problem is that I can't connect to each other
mysql DB so I'm looking for a way to do so. I'm thinking of droping the
mysql database in xml files
trim it then use an operator..eg
if(trim($Game_rating) == '')
{
// error ..
}
- Original Message -
From: Ahmed Abdel-Aliem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:58 AM
Subject: [PHP] empty() problem
Hi Group Members
i have a problem with function
How about:
if($Game_Rating == )
$errors[] = You didn't enter the Online Status for the Game.;
This should work for you.
-Matt
Ahmed Abdel-Aliem [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Group Members
i have a problem with function empty()
i use it to check if user
Ahmed Abdel-Aliem wrote:
Hi Group Members
i have a problem with function empty()
i use it to check if user entered the form fields and store it in array
for example :
if (empty($Game_rating))
$errors[] = You didn't enter the Online Status for the Game.;
the problem when the user enters
disregard this topic.. i slept on it and found out how to do it.
- Original Message -
From: Sebastian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 11:06 PM
Subject: [PHP] dynamic include() in while loop
this is a brain buster, at least for me.
i have a
I use this function which I find is very useful:
function isEmpty( $var )
{
return isset($var) strlen(trim($var)) == 0;
}
On Sun, 12 Dec 2004 10:12:34 -0500, John Holmes
[EMAIL PROTECTED] wrote:
Ahmed Abdel-Aliem wrote:
Hi Group Members
i have a problem with function empty()
i
On Sunday 12 December 2004 22:33, p80 wrote:
eg do you want to only make available
specific pre-defined bits of data to client websites,
yes this is how I'd like to proceed
OK, if there are only a limited number of these pre-defined bits of data
then the easiest way is probably just
Hi,
On Sun, 12 Dec 2004 09:15:46 -0600
Travis Conway [EMAIL PROTECTED] wrote:
How do you reference command line arguments in php?
i.e., chkmd5.php file.md5
I am wanting to reference file.md5. Since the output of md5sum is
not in the RFC I am having to manually parse each md5 and detect
On Sunday 12 December 2004 05:15 pm, Jason Wong wrote:
On Sunday 12 December 2004 22:33, p80 wrote:
eg do you want to only make available
specific pre-defined bits of data to client websites,
yes this is how I'd like to proceed
OK, if there are only a limited number of these
- Original Message -
From: - Edwin - [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Travis Conway [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 10:40 AM
Subject: Re: [PHP] Command Line
Hi,
On Sun, 12 Dec 2004 09:15:46 -0600
Travis Conway [EMAIL PROTECTED] wrote:
How do you reference
Matt Palermo wrote:
I realize that I can use the strip_tags function to remove HTML. But I
don't want to remove HTML tags. I just want to make sure all open HTML tags
are closed. For example if they user submits HTML with a table tag and
never closes it, then the rest of the page will look
Hi,
Can someone tell me how to create my own PS() in the source code
eg, i want to make PS(sidd) in the session.c but it complains when I compile
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you for DAO class that you recommended to me.
I would like to read the Pear and Metalstorage documentation ( tried
it) first before deciding which one I would like to use ;)
--
===
Best Regards
Adwin Wijaya
www.kuya-kuya.net
www.e-rhema.net
===
--
From: p80 [EMAIL PROTECTED]
I have several website that use mysql as a database and I would like them
to access each other DB. The problem is that I can't connect to each other
mysql
DB so I'm looking for a way to do so.
Why aren't you able to connect to the other databases?
cause
Ahmed Abdel-Aliem wrote:
Hi Group Members
i have a problem with function empty()
i use it to check if user entered the form fields and store it in array
for example :
if (empty($Game_rating))
$errors[] = You didn't enter the Online Status for the Game.;
the problem when the user enters
your question is hard to answer. The difference between classes and
functions is like the difference between a toolbox, and a spanner. A
class is a container, that contains functions, and variables, or as
they are called in Object-Oriented-Speak(methods, and properties).
A method is a function
Hi all,
I have faced the upload file permission denied for weeks. I can't
write a new file/create a directory. I did a test in PHP standalone
(Linux shell). The operation is very normal.
But in web environment, I got this error message:
Warning: move_uploaded_file()
Dear Michael,
I spent the better part of today trying to get a file upload script to work
too. Same sort of problem: local linux works ok, but web - nope.
Looking at your error message, it might be the renaming of the temp file that
is barfing.
if (($_FILES[pix][size] 0)($_FILES[pix][size]
Hi Andre,
thank you, I have hided my html path in the message. I have replace
my real path with '/var/www/html/'. the error message should be like
this.
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move '/tmp/phpjsLZfC' to '/var/www/html/test/icons.zip' in
How do I make automaticly PHP playing a sound (Ogg, or
MP3 format file) when MySql (in Table, or Coulom)
reach a number (for example 5)
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
On Mon, 13 Dec 2004 00:56, Stuart Felenstein wrote:
--- Jason Wong [EMAIL PROTECTED] wrote:
If in doubt, print it out (TM)
echo '$Indbr', $Indbr, $Ind;
$Ind
'1','2','3','4'
'1','2','3','4'
Funny, they are both the same.
I think you are missing the point Jason was trying to
On Sun, 12 Dec 2004 23:50, Bruno b b magalhães wrote:
Hi again everybody,
well, I've asked it before, but I couldn't work on this at all.
As some knows I have a system witch has a category system. The generic
part of the site is handled by a generic module called contents...
generic like
Ha!
Sorry for that Fedora 3 is causing all kinds of havoc. I would stay away
for a while.
Trav
- Original Message -
From: Michael Leung [EMAIL PROTECTED]
To: Andre Dubuc [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 7:25 PM
Subject: Re: [PHP] PHP Apache
Hi all,
I am more believing this is a kind of apache configure problem. If
that's Fedora 3 problem, I can't do this kind in command line.
Therefore, if I bypassed Apache, my problem is solved. Moreover, my
system is highly OOP , I can't fall back into PHP 4.
yours,
Michael
--
PHP General
Yes, this kind of script is working in my pervious old server. But
after I have upgraded the OS to Fedora 3 with PHP 5.0.2 and Apache 2.
Then as I mentioned in my previous mail SELinux is to blame. Uninstall
it or disable it. (pass selinux=0 when you boot).
--
Raditha Dissanayake.
What user did you run your command line as?
Trav
- Original Message -
From: Michael Leung [EMAIL PROTECTED]
To: Travis Conway [EMAIL PROTECTED]
Cc: Andre Dubuc [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:01 PM
Subject: Re: [PHP] PHP Apache Upload file Permission
I have a form and a php file. I enter some values from the form and click to
submit button. The values that I enter can't be seen on the output. I'm using
Php php-4.0.5 and my register_global is set to Off.
HTML file:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
Hello!
Currently I'm playing with LDAP referrals in a PHP application and
I've reached a point, where it's not clear if there's some kind of
misunderstanding on my side, or if there's a problem either in the
PHP functions or the OpenLDAP server here...
The attached mini script tries to access
--- Jason Wong [EMAIL PROTECTED] wrote:
If in doubt, print it out (TM)
echo '$Indbr', $Indbr, $Ind;
$Ind
'1','2','3','4'
'1','2','3','4'
Funny, they are both the same.
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sunday 12 December 2004 03:16 pm, Jason Wong wrote:
On Sunday 12 December 2004 21:35, p80 wrote:
I have several website that use mysql as a database and I would like them
to access each other DB. The problem is that I can't connect to each
other mysql DB so I'm looking for a way to do
How do you reference command line arguments in php?
i.e., chkmd5.php file.md5
I am wanting to reference file.md5. Since the output of md5sum is not in the
RFC I am having to manually parse each md5 and detect whether it is in
Win32, Linux, or BSD format. And since php has good built in md5()
I have several website that use mysql as a database and I would like them
to access each other DB. The problem is that I can't connect to each other
mysql
DB so I'm looking for a way to do so.
Why aren't you able to connect to the other databases?
cause hosters forbid it.
--
PHP General
On Fri, 2004-12-10 at 13:23, Richard Lynch wrote:
Where exactly is png.h in your directory system?
If libpng is installed, it should be there.
What are you using after the --with-png-dir=
Whatever you are using, it must be a directory far enough *above* png.h to
encompass not only
Michael Leung wrote:
Hi all,
I have faced the upload file permission denied for weeks. I can't
write a new file/create a directory. I did a test in PHP standalone
(Linux shell). The operation is very normal.
But in web environment, I got this error message:
Something that just occurred to
Maybe this can help you.
If (empty((string)$Game_rating))
--
: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED]
: 20041212 21:58
: [EMAIL PROTECTED]
: [PHP] empty() problem
Hi Group Members
i have a problem with function empty()
i use it to check if user entered the form fields and store
Whoops. For some reason I've attached the wrong file. Here's the correct one.
Cajus
#!/usr/bin/php4 -q
?php
# T E S T - V A R I A B L E S ##
$server= localhost;
$filter= (uid=*);
$base = dc=example,dc=net;
F U N C T I O N S
48 matches
Mail list logo