On Thu, May 12, 2005 8:38 pm, James Williams said:
I just tried a couple of output_buffering on a test script I made and
it won't work... It simply waits for 10 seconds then displays
everything... Kinda sucks.
If you're going to flush() and ob_flush() that much, you might as well not
use
On Thu, May 12, 2005 8:41 pm, Andre Dubuc said:
I've had some rather odd intermittent behavior with a select list drawn by
a
'require' on my production site. Sometimes, rather than displaying 'In
USA/Canada' from the 'option selectedIn USA/Canada/option' code in the
required file, it will
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 9:37 PM
var $exportFile = Export. . date(mdy) . .txt;
I seem to be able to use the date function is I am not starting the
declaration with var, but then my program is not working
On Thu, May 12, 2005 9:27 am, K.S. TANG said:
I have a page using the Basic HTTP Authentication and works well before.
But this night, the server seems to not receiving any $_SERVER pass in
from
Web browsers.
if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER']
!=
On Thu, May 12, 2005 7:05 pm, Miguel Vaz said:
I am having a weird problem with a simple file listing on one of my
client's host.
My code works perfectly on my host, but if i use the same code on his,
it
only lists certain types of files. Heres the code: (i hate hosts that only
Hi,
If the parameters are available at the url of
mysite.com. Then the parameters should be available
there in the page to echo. Instead of $_REQUEST try
$_GET
Try using this..
?php
echo h3mysite.com Homepage /h3 ;
$lang=$_GET['lang'];
$ctry=$_GET['ctry'];
echo Country= .$ctry. br
Richard Lynch wrote:
On Thu, May 12, 2005 4:43 pm, Chris Shiflett said:
From me:
The fact that it uses the character set of your current connection to
MySQL means that what your escaping function considers to be a single
quote is exactly what your database considers to be a single quote. If
these
Hello all,
I guess this comes up once in a while, does anybody know how I can find
the current PHP sessions' IDs? I don't mind if some have passed away,
and the PHP gc hasn't run yet, because I'm doing a garbage collection of
my own, for data identified by session ID -- it doesn't really matter
Richard Lynch wrote:
On Thu, May 12, 2005 6:58 am, Shaun said:
$_SERVER['HTTP_HOST']
Mbneto [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I need to access a website (written in php) using two different
domains (www.foo.com and www.bar.com). I must see the same content.
Since the
Hi All,
Can anyone explain me why the following code:
if (info == 0) echo is 0\n; else echo not 0\n;
Results in: not 0
Whereas:
if (inf == 0) echo is 0\n; else echo not 0\n;
Results in: is 0
Notice the difference: info in the first sample, inf in the second sample.
The used PHP version is PHP
On 13 May 2005, at 01:11, Richard Lynch wrote:
On Thu, May 12, 2005 3:40 am, Marcus Bointon said:
Multilingual domain support e.g. café.com
Er.
Maybe they changed the rules, but I don't think that's a valid
domain name
AT ALL.
So maybe the reason you are having trouble is you are looking
You could try sending all the data to the client at once then achieving
the delay effect with JavaScript perhaps? That way, you are not reliant
on external factors like connection speed.
On Thu, May 12, 2005 8:38 pm, James Williams said:
I just tried a couple of output_buffering on a test script
Bogdan Stancescu wrote:
Hello all,
I guess this comes up once in a while, does anybody know how I can find
the current PHP sessions' IDs? I don't mind if some have passed away,
and the PHP gc hasn't run yet, because I'm doing a garbage collection of
my own, for data identified by session ID --
You probably mis-typed something:
[EMAIL PROTECTED] ~]$ php
?
if (info == 0) echo is 0\n; else echo not 0\n;
?
Content-type: text/html
X-Powered-By: PHP/4.3.11
is 0
Cheers,
Bogdan
Erwin Kerk wrote:
Hi All,
Can anyone explain me why the following code:
if (info == 0) echo is 0\n; else echo not 0\n;
Hello,
Been playing around with classes in php5, extending a base class and using a
constructor etc..
But I seem to have a problem with getting the variables outside the class.
In test1.txt, I cannot anything when I access the public variables for the
class.
In test2, when I make $contact into
Bogdan Stancescu wrote:
You probably mis-typed something:
[EMAIL PROTECTED] ~]$ php
?
if (info == 0) echo is 0\n; else echo not 0\n;
?
Content-type: text/html
X-Powered-By: PHP/4.3.11
is 0
Tried that, but notice the PHP Version, it is failing in PHP 4.1.2!
Erwin Kerk
--
PHP General Mailing List
Hi all,
I have only recently started to look at php, I hope this list dose not
mind 'noob' questions.
I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and 'Web
Database Applications with PHP and MySQL' Hugh E. Williams, David Lane.
I would like to create a 'community' website
-Original Message-
From: Shaw, Chris - Accenture [mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 12:10 PM
To: php-general@lists.php.net
Subject: [PHP] Problem with extending classes.
Have I missed something or is there bugs with extending classes in
php5?
Does this happen in
On Friday 13 May 2005 02:20 am, Richard Lynch wrote:
On Thu, May 12, 2005 8:41 pm, Andre Dubuc said:
I've had some rather odd intermittent behavior with a select list drawn
by a
'require' on my production site. Sometimes, rather than displaying 'In
USA/Canada' from the 'option selectedIn
Richard Lynch wrote:
On Thu, May 12, 2005 12:48 pm, dan said:
I'm trying to override the value of php.ini's 'auto_prepend_file'
function, inside of an Apache Directory container. I'm not having much
luck. In fact, no luck at all. This never happens.
So I'm wondering now, are functions set by
On Fri, 2005-05-13 at 07:10, [EMAIL PROTECTED] wrote:
Hi all,
I have only recently started to look at php, I hope this list dose not
mind 'noob' questions.
I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and 'Web
Database Applications with PHP and MySQL' Hugh E. Williams,
[EMAIL PROTECTED] wrote:
Hi all,
I have only recently started to look at php, I hope this list dose not
mind 'noob' questions.
I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and 'Web
Database Applications with PHP and MySQL' Hugh E. Williams, David Lane.
I would like to create a
Marcus Bointon wrote:
...
They did change the rules starting in November 2000, with RFCs (3454,
3490, 3491, 3492) finalised in 2003. See http://
www.verisign.com/products-services/naming-and-directory-services/
naming-services/internationalized-domain-names/index.html This page may
be of
Hello,
I compiled PHP 5 with following ./configure line
./configure \
--prefix=/usr/local/php5 \
--with-apxs2=/usr/sbin/apxs2-prefork \
--with-config-file-path=/etc/php5 \
--enable-mbstring \
--enable-mbregex \
--with-mysql \
--with-gd \
A community website. Explain. Decide what features you want this
community site to have. Once you've figured out(or explained) what
type of services you want to offer to your community, and then check
out hotscripts.com, or google.
Three scripts that come to mind, are phpgroupware, phpbb, and
On 5/13/2005 3:29:18 PM, Jason Barnett ([EMAIL PROTECTED]) wrote:
[EMAIL PROTECTED] wrote:
Hi all,
I have only recently started to look at php, I hope this list dose not
mind 'noob' questions.
I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and
'Web
Database
Sounds like it might be a browser behavior issue. I've seen some really
weird behavior in browsers when a DOCTYPE is not declared at the start
of the web page. The doctype declaration and the version declared in it
are actually very important to the rendering and behavior of a web
page. Over
i think that you're best bet would be to find some open source
community software and go with that. i built a community site from
scratch one time, and while it was a lot of fun, it proved to be much
more difficult that i had anticipated. so the next client that asked
for a similar site ended up
is upgrading your php out of the question? i would go with at least
4.3.x if not 5... unless you don't have root access on your server...
in which case, i have no advice...
On 5/13/05, Erwin Kerk [EMAIL PROTECTED] wrote:
Bogdan Stancescu wrote:
You probably mis-typed something:
[EMAIL
Well the reason it worked on my site is because my webhost uses linux,
and my localhost is windows.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2005-05-13 at 06:34, Erwin Kerk wrote:
Bogdan Stancescu wrote:
You probably mis-typed something:
[EMAIL PROTECTED] ~]$ php
?
if (info == 0) echo is 0\n; else echo not 0\n;
?
Content-type: text/html
X-Powered-By: PHP/4.3.11
is 0
Tried that, but notice the PHP
I did look at your post on PATH_INFO which did not get me any closer to
the solution. At this point, I am just trying to get an image using
cURL and then force it to download to the computer. Here is the link:
http://205.207.224.90/getimage.php
and here is the code:
header(Content-type:
On 5/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all,
I have only recently started to look at php, I hope this list dose not
mind 'noob' questions.
no we don't mind it, we do mind poor spelling though ;) jk
I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and 'Web
That might be it ( a browser issue) since the behavior seems to occur most in
Opera. I shudder to think what IE must be doing with it. And blush . . . I
didn't have that declaration on the required page (since the page only
contains that code snippet and I thought it unnecessary - guess I was
you can check it out there:
http://www.hashmysql.org/paste/viewentry.php?id=249
also here it is:
/*I'm trying to display messages on my forum recursively, each message can
have answers, the id of the parent post is in parentmessageid, the problem is
that it only displays post that don't have
I'm trying to display messages on my forum recursively, each message can
have answers, the id of the parent post is in parentmessageid, the problem is
that it only displays post that don't have answers ie post that have
parentmessageid null
/* here is my table:
I'm trying to fully chroot my server. Right now, I have Apache running
in a chroot jail, and I need to get php5 working their too... Before I
dive in, I thought I'd just ask if anyone here has any experience
doing this...? Are their any known issues?
Also, I was going to chroot my postgres db,
Thanks you, There is no ['PHP_AUTH_USER'] nor ['PHP_AUTH_PW'] in var_dum()
I've asked the server administrator, He said he has installed a php security
patch two days ago.
Could anyone tell me how to config the php server so that ['PHP_AUTH_USER']
and ['PHP_AUTH_PW'] can be access or avaliable
session_start();
header(Cache-control: private); // IE 6 Fix
$user_quotes = $_SESSION['user_quotes'];
if (!isset($user_quotes) || $user_quotes = count($quote_result) - 1) {
$user_quotes = 0;
} else {
$user_quotes++;
}
echo pre;
echo $_SESSION['user_quotes'] . \n;
print_r($_SESSION);
echo
--
jamwil.com
Also, when I hit reply to James' reply, the to field in my email
client was only sending to James, not to the list.
How so? I've noticed that before. How can sometimes the responses go
to the list, and other times to the person who sent the message?
And isn't there a correct
On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote:
But it gives me error on this line :
$DomDocument = domxml_open_file($file);
What's the error?
Try:
$dom = dom_xml_file($file);
--
s/:-[(/]/:-)/g
BrianGnuPG - KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
I would like to create a 'community' website and was wondering if
there
was a framework available to get me started?
Well now I don't even know what a framework is. I was expecting
someone to say Oh, you should use model view controller or
something.
All the answers seem to be applications.
Hi,
I am getting this error when I try to run configure pfpro with PHP, any
idea?
mkdir: too few arguments
Try `mkdir --help' for more information.
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
Sincerely,
Rezk Mekhael
Anyone run across an issue where a php script works in IE and not Firefox?
Christianboards.org is a PHP nuke site running on a Enism linux box that is
having this issue.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.859 / Virus
Well now I don't even know what a framework is. I was expecting
someone to say Oh, you should use model view controller or
something.
All the answers seem to be applications.
Are applications frameworks?
I never checked the dict def of a framework, but I always considered
them to be
Forgot to cc to list
I'm assuming you're running ./configure, which should be a shell script.
I can't remember whether is's a /bin/sh or /bin/bash script, but if
it's /bin/sh try modding the first line, which should #!/bin/sh to
#!/bin/sh -x, similarly a /bin/bash script would be modded to show
Richard Lynch wrote:
On Thu, May 12, 2005 12:55 pm, dan said:
I was just looking for some sort of confirmity and ease of use. I've
been experimenting with some of my own ways to handle form data.
There's nothing that I hate more than clutter, so that's why I wanted to
break the form apart inside
Richard Lynch wrote:
On Thu, May 12, 2005 12:48 pm, dan said:
I'm trying to override the value of php.ini's 'auto_prepend_file'
function, inside of an Apache Directory container. I'm not having much
luck. In fact, no luck at all. This never happens.
So I'm wondering now, are functions set by
anyone knows how to change php ini location?
I m using php5, apache 1.3 on windows xp.
thx in adv.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
But where in a php-page shall i load classes.
I know about the missing $. But that isent the problem. Here i have a
simple, basic, webbpage. Shall i load my classes at the top like this or ???
My class is in class.inc
?php
include(class.inc);
?
html
head
title/title
meta
I get the same message with firefox and IE:
There seems to be a problem with the MySQL server, sorry for the
inconvenience
JM
-Original Message-
From: Dustin Wish [mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 2:12 PM
To: php-general@lists.php.net
Subject: [PHP] php works in
Dustin Wish wrote:
Anyone run across an issue where a php script works in IE and not Firefox?
Christianboards.org is a PHP nuke site running on a Enism linux box that is
having this issue.
PHP is server side. The browser is irrelevant to the execution of PHP.
--
John C. Nichel
berGeek
PHP does not work in Firefox. It doesn't work in IE either, or any
browser for that matter. It works in Apache and can even work on the
command line.
PHP can generate web pages. The resulting web code may not work right,
but that's not php's fault. That's the fault of the developer who wrote
Fixed it. Corrupted code in php nuke on FTP. Weird. And I understand that
PHP is a language that produces HTML code. Not sure if there was an issue
with Firefox and PHP based pages.
-Original Message-
From: Brent Baisley [mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 3:00 PM
To:
K.S. Tang wrote:
Thanks you, There is no ['PHP_AUTH_USER'] nor ['PHP_AUTH_PW'] in var_dum()
I've asked the server administrator, He said he has installed a php security
patch two days ago.
Could anyone tell me how to config the php server so that ['PHP_AUTH_USER']
and ['PHP_AUTH_PW'] can be
Dustin Wish wrote:
Anyone run across an issue where a php script works in IE and not Firefox?
Christianboards.org is a PHP nuke site running on a Enism linux box that is
having this issue.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Hi,
I'm currently developing a webapplication that uses mod_rewrite.
At some point i have to post data but i't seems to get lost, checking the
web and some archives i've found that normaly mod_rewrite should preserver
this data, but apparently it doesn't. Could anyone help me?
Im using:
[EMAIL PROTECTED] wrote:
I would like to create a 'community' website and was wondering if
there
was a framework available to get me started?
Well now I don't even know what a framework is. I was expecting
someone to say Oh, you should use model view controller or
something.
All the answers seem
Dan wrote:
Richard Lynch wrote:
...
The value added of the central switch seems dubious to me.
Just my opinion.
Richard -
I want your opinion, which is why I'm taking a stab at the list ;)
What other methods would be good to use? Using a giant if statement?
Thanks
-dant
Nononono a giant if
On Fri, 2005-05-13 at 14:12, Dustin Wish wrote:
Anyone run across an issue where a php script works in IE and not Firefox?
Christianboards.org is a PHP nuke site running on a Enism linux box that is
having this issue.
http://www.christianboards.org/ comes up fine for me; firefox/linux
however
Everything in php.ini seems to be correct. Is there soem thign I'm
supposed to pass to 'configure' at compile time?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is solved...
--original--
session_start();
header(Cache-control: private); // IE 6 Fix
$user_quotes = $_SESSION['user_quotes'];
if (!isset($user_quotes) || $user_quotes = count($quote_result) - 1) {
$user_quotes = 0;
} else {
$user_quotes++;
}
echo pre;
echo
There is nothing there about mkdir. The error message you mentioned
isn't in output.txt
you may have to do a: ./configure 2stderr.txt output.txt, and send
us stderr.txt, instead as well as stdout.txt
On 5/13/05, Rezk Mekhael [EMAIL PROTECTED] wrote:
I change the /bin/sh to /bin/sh -x and I
It makes no difference what browser you are using... that site seems
to be down even with IE.
On 5/13/05, Jim Moseby [EMAIL PROTECTED] wrote:
I get the same message with firefox and IE:
There seems to be a problem with the MySQL server, sorry for the
inconvenience
JM
-Original
On Friday 13 May 2005 23:19, Chris Bruce wrote:
I did look at your post on PATH_INFO which did not get me any closer to
the solution. At this point, I am just trying to get an image using
cURL and then force it to download to the computer. Here is the link:
This should work:
$ch =
Think he means a CMS || Forumpackage || Portal package?
www.opensourcecms.com
-brian
- Original Message -
From: Jason Barnett [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Friday, May 13, 2005 3:20 PM
Subject: Re: [PHP] Hello, I'm new...
[EMAIL PROTECTED] wrote:
I would
Brian V Bonini wrote:
Everything in php.ini seems to be correct. Is there soem thign I'm
supposed to pass to 'configure' at compile time?
Session support is now built-in by default, so unless you specifically
compile without it then you should have support for sessions in your
build. Although
Is there any documentation about the curl_multi_* functions?
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Barnett wrote:
Dan wrote:
Richard Lynch wrote:
...
The value added of the central switch seems dubious to me.
Just my opinion.
Richard -
I want your opinion, which is why I'm taking a stab at the list ;)
What other methods would be good to use? Using a giant if statement?
Thanks
-dant
This should work:
$ch = curl_init(); // create cURL handle (ch)
if (!$ch) {
die(Couldn't initialize a cURL handle);
}
// set some cURL options
$ret = curl_setopt($ch, CURLOPT_URL,
http://images.apple.com/home/2005/images/
tigershippingdashboard20050429.jpg);
$ret = curl_setopt($ch,
On OS X 10.3 I installed the latest MySQL from dev.mysql.com for OS X 10.3.
It was a Apple style installer package with a binary of the server and the
client.
The docs weren't exactly written for OS X but I survived the set up and am
able to login as the root MySQL user with the command line
Hello everybody:
I need my PHP application connects through SSH to other server for
getting some info to display and i tried the following code to test
lib ssh2:
$server = ...;
$user = ...;
$passwd = ...;
$con = ssh2_connect($server, 22);
if (ssh2_auth_password($con, $user, $passwd)) {
Burhan Khalid wrote:
Merlin wrote:
Burhan Khalid wrote:
Merlin wrote:
Hi there,
I am wondering if there is a function (I could not find) which does
the same thing like strpos does, but with an array.
For example:
$replace = array(picture, pics);
$pos = strpos ($term, $replace);
//if
I need a new book?
What's up with this filtering thing, Collation in phpMyAdmin?
It's defaulting to latin1_swdish_ci. What can I just set it to to forget
about it till I can read up on it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 14 May 2005 06:45, Chris Bruce wrote:
This should work:
[code snipped]
Did you try this Jason?
Yes, I've tried the code that I posted (using my own URL for the image),
works for me.
When I try it, it just downloads the
getimage.php file with the binary content of the image
Sam Smith wrote:
I need a new book?
What's up with this filtering thing, Collation in phpMyAdmin?
It's defaulting to latin1_swdish_ci. What can I just set it to to forget
about it till I can read up on it?
This is a PHP mailing list, not a phpMyAdmin or MySQL ... (just needed
to get that off
On Fri, 2005-05-13 at 17:51, Jason Barnett wrote:
Brian V Bonini wrote:
Everything in php.ini seems to be correct. Is there soem thign I'm
supposed to pass to 'configure' at compile time?
Session support is now built-in by default, so unless you specifically
compile without it then you
What other methods would be good to use? Using a giant if statement?
Did you read my code for this? It consisted of two lines, which
basicly did the same thing as your massive ugly switch statment. It
also does a limited amount of error-checking, in that it checks to
make sure that the file
Hi all,
can any one plesae help me as I am a learner. I am
working on a Mac OS x machine and I want to see the
errors displayed to the browser. I had changed
display_errors option On in
the php.ini file but still cannot see them displayed.
Any pointers as how to display errors to browser while
I have experience with this on windows, and solved by change my root password
on mySQL.
I don't know, if this wil work on your OS X
rgds
-Original Message-
From: Sam Smith [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14, 2005 5:57 AM
To: PHP
Subject: [PHP] phpMyAdmin authentication
On Fri, May 13, 2005 6:49 pm, hima said:
can any one plesae help me as I am a learner. I am
working on a Mac OS x machine and I want to see the
errors displayed to the browser. I had changed
display_errors option On in
the php.ini file but still cannot see them displayed.
Did you re-start
On Fri, May 13, 2005 3:56 pm, Sam Smith said:
Because the install was from mysql.com I don't want to believe the client
is
out of date. I also don't know how to install another client.
Most likely, it's Apple that's a bit behind the curve...
So your phpMyAdmin is probably trying to use the
On Fri, May 13, 2005 3:45 pm, Chris Bruce said:
header(Content-type: image/jpg);
Header('Content-Disposition: attachment;
file=tigershippingdashboard20050429.jpg');
echo $ret;
Did you try this Jason? When I try it, it just downloads the
getimage.php file with the binary content of the
On Saturday 14 May 2005 09:49, hima wrote:
can any one plesae help me as I am a learner. I am
working on a Mac OS x machine and I want to see the
errors displayed to the browser. I had changed
display_errors option On in
the php.ini file but still cannot see them displayed.
Did you restart
On Saturday 14 May 2005 09:42, Brian V Bonini wrote:
Yeah, I know session support is there and I DO NOT have it set to use
ONLY cookies. But if I disable cookies in the browser stuff relying on
sessions stops working. I'm using 5.0.3
session.use_trans_sid
0
0
Set that to 1. Sessions *are*
I'm making my first shopping cart in PHP. I'm concerned about the
security of my session variables, concerned about people altering data
(lowering the price). Is there anything I should pay attention to.
I've worked extensively with CF, this is my first foray into PHP.
Thanks
On Fri, May 13, 2005 9:49 am, K.S. TANG said:
Thanks you, There is no ['PHP_AUTH_USER'] nor ['PHP_AUTH_PW'] in var_dum()
I've asked the server administrator, He said he has installed a php
security
patch two days ago.
Could anyone tell me how to config the php server so that
On Fri, May 13, 2005 12:20 pm, Faith Emre YILMAZ said:
anyone knows how to change php ini location?
I m using php5, apache 1.3 on windows xp.
Re-compile.
Since that's not practical for most users, you just have to use whatever
phpinfo says is the right directory.
--
Like Music?
88 matches
Mail list logo