|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 12 Sep 2003 06:23:58 -0000 Issue 2292
php-general-digest-help
lists.php.net
Date: Fri Sep 12 2003 - 01:23:58 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 12 Sep 2003 06:23:58 -0000 Issue 2292
Topics (messages 162319 through 162381):
Re: Problem with HTML Text box and PHP variable.
162319 by: Robert Cummings
162320 by: Chris Sherwood
162323 by: murugesan
162332 by: CPT John W. Holmes
162343 by: Jim Lucas
162348 by: CPT John W. Holmes
162351 by: Vail, Warren
162352 by: CPT John W. Holmes
162377 by: Brad Pauly
Re: URGENT BUSINESS RELATIONSHIP
162321 by: Shadow
162357 by: Cody Phanekham
162358 by: daniel.electroteque.org
162360 by: daniel.electroteque.org
162361 by: John Howard
162363 by: daniel.electroteque.org
162364 by: Cody Phanekham
some kind of redirection (not the header function)
162322 by: Juan Nin
162324 by: Ed Curtis
162326 by: Juan Nin
162328 by: Ed Curtis
162329 by: Peter James
162330 by: Juan Nin
162331 by: Juan Nin
162333 by: CPT John W. Holmes
Using a jpGraph image in an FPDF pdf output...
162325 by: Jay Blanchard
rename()
162327 by: Edward Peloke
162334 by: CPT John W. Holmes
162336 by: Edward Peloke
Access Violation at 77XXXXX on Windows
162335 by: Mats Dahlgren
162367 by: Evan Nemerson
Re: php editor
162337 by: zerof
PHP 4.3.3 Install, Errors??
162338 by: Adam Douglas
162365 by: Evan Nemerson
Re: storing quotes into a variable
162339 by: CPT John W. Holmes
Re: Attention Moderator - Autoresponder Needs Unsubing from list
162340 by: Dan Anderson
getting download resume to work
162341 by: Scott Dotson
162375 by: Raditha Dissanayake
162378 by: Chris Shiflett
Integrating an Applet with PHP
162342 by: Todd Cary
162344 by: Vail, Warren
162345 by: Todd Cary
162347 by: Vail, Warren
162379 by: Tom Rogers
Re: Escaping the " ' " character
162346 by: Chris W. Parker
162354 by: Dan Anderson
162356 by: Robert Cummings
Re: loading classes and efficiency
162349 by: Chris W. Parker
162350 by: daniel.electroteque.org
162353 by: Dan Anderson
162355 by: daniel.electroteque.org
162376 by: Dan Anderson
Searching with Date Ranges
162359 by: Seth Willits
162362 by: CPT John W. Holmes
Re: URGENT REMOVAL
162366 by: daniel.electroteque.org
issue with sending a request_uri in a url
162368 by: daniel.electroteque.org
162370 by: daniel.electroteque.org
162372 by: Chris Shiflett
162373 by: Chris Shiflett
Dynamic Drill down menus
162369 by: Dan J. Rychlik
162374 by: Raditha Dissanayake
Re: issue with sending a request_uri in a url (ignore)
162371 by: daniel.electroteque.org
AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters)
162380 by: ashish borkar
HTTP_REFERER
162381 by: Louie Miranda
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Proper HTML attribute values are surrounded by double quotes. Otherwise
in sloppy mode, the HTML parser sees the pace between Hello and 1 and
things a new attribute by the name of 1 has been encountered.
Cheers,
Rob.
On Thu, 2003-09-11 at 13:05, Golawala, Moiz M (IndSys, GE Interlogix)
wrote:
> I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is "Hello" the line below will render it correctly
> echo "<td><input type=text name=value".$j.$i." size=20 value=".$myString."></td>";
>
> However if the value of $myString is "Hello 1" then the line above will populate the text box with only "Hello" and it will loose the "1"
>
> If I change the problem line to the following:
>
> echo "<td>".$myString."</td>";
>
> I don't have a problem. "Hello 1" will be rendered correctly. But then I don't have a text box to edit the value. Please help.
>
> Thanks
> Moiz
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
attached mail follows:
try closing the value sections with single quotes that way the html
processiing can see the value
it was
echo "<td><input type=text name=value".$j.$i." size=20
value=".$myString."></td>";
now is
echo "<td><input type=text name=value'".$j.$i."' size=20
value='".$myString."'></td>";
----- Original Message -----
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <Moiz.Golawala
ge.com>
To: <php-general
lists.php.net>
Sent: Thursday, September 11, 2003 10:05 AM
Subject: [PHP] Problem with HTML Text box and PHP variable.
I am having a problem with rendering PHP variables in an HTML text box. If
the value of $myString is "Hello" the line below will render it correctly
echo "<td><input type=text name=value".$j.$i." size=20
value=".$myString."></td>";
However if the value of $myString is "Hello 1" then the line above will
populate the text box with only "Hello" and it will loose the "1"
If I change the problem line to the following:
echo "<td>".$myString."</td>";
I don't have a problem. "Hello 1" will be rendered correctly. But then I
don't have a text box to edit the value. Please help.
Thanks
Moiz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
This will help you
<?php
$dins="Dinesh";
echo "<input type=text name=dins class='textbox' value='$dins' >";
?>
-Murugesan
----- Original Message -----
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <Moiz.Golawala
ge.com>
To: <php-general
lists.php.net>
Sent: Thursday, September 11, 2003 10:35 PM
Subject: [PHP] Problem with HTML Text box and PHP variable.
I am having a problem with rendering PHP variables in an HTML text box. If
the value of $myString is "Hello" the line below will render it correctly
echo "<td><input type=text name=value".$j.$i." size=20
value=".$myString."></td>";
However if the value of $myString is "Hello 1" then the line above will
populate the text box with only "Hello" and it will loose the "1"
If I change the problem line to the following:
echo "<td>".$myString."</td>";
I don't have a problem. "Hello 1" will be rendered correctly. But then I
don't have a text box to edit the value. Please help.
Thanks
Moiz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
From: "murugesan" <mukeshgct
hotpop.com>
> This will help you
>
> <?php
> $dins="Dinesh";
> echo "<input type=text name=dins class='textbox' value='$dins' >";
> ?>
Use double quotes for HTML attributes.
---John Holmes...
attached mail follows:
Why do you say that?
Jim Lucas
----- Original Message -----
From: "CPT John W. Holmes" <holmes072000
charter.net>
To: "murugesan" <mukeshgct
hotpop.com>; "Golawala, Moiz M (IndSys, GE
Interlogix)" <Moiz.Golawala
ge.com>; <php-general
lists.php.net>
Sent: Thursday, September 11, 2003 11:56 AM
Subject: Re: [PHP] Problem with HTML Text box and PHP variable.
> From: "murugesan" <mukeshgct
hotpop.com>
>
>
> > This will help you
> >
> > <?php
> > $dins="Dinesh";
> > echo "<input type=text name=dins class='textbox' value='$dins' >";
> > ?>
>
> Use double quotes for HTML attributes.
>
> ---John Holmes...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Jim Lucas wrote:
>>><?php
>>> $dins="Dinesh";
>>> echo "<input type=text name=dins class='textbox' value='$dins' >";
>>>?>
>>
>>Use double quotes for HTML attributes.
>
> Why do you say that?
Yeah, I figured someone would ask that. :) I couldn't find anything
definitive on w3c.org; can someone back me up?
AFAIK, they are required in XML and XHTML. It's a good habit to get into
with regular HTML, also (although, yes, both will work in HTML).
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
Question: will the substitution for the variable $dins occur if surrounded by single quotes?
I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes.
Warren Vail
-----Original Message-----
From: John W. Holmes [mailto:holmes072000
charter.net]
Sent: Thursday, September 11, 2003 5:03 PM
To: Jim Lucas
Cc: murugesan; Golawala, Moiz M (IndSys, GE Interlogix);
php-general
lists.php.net
Subject: Re: [PHP] Problem with HTML Text box and PHP variable.
Jim Lucas wrote:
>>><?php
>>> $dins="Dinesh";
>>> echo "<input type=text name=dins class='textbox' value='$dins' >";
>>>?>
>>
>>Use double quotes for HTML attributes.
>
> Why do you say that?
Yeah, I figured someone would ask that. :) I couldn't find anything
definitive on w3c.org; can someone back me up?
AFAIK, they are required in XML and XHTML. It's a good habit to get into
with regular HTML, also (although, yes, both will work in HTML).
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Vail, Warren wrote:
> Question: will the substitution for the variable $dins occur if surrounded by single quotes?
>
> I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes.
In PHP, no, variables will not be evaluated within single quotes. The
original question was about HTML attributes, though.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
On Thu, 2003-09-11 at 18:02, John W. Holmes wrote:
> Jim Lucas wrote:
>
> >>><?php
> >>> $dins="Dinesh";
> >>> echo "<input type=text name=dins class='textbox' value='$dins' >";
> >>>?>
> >>
> >>Use double quotes for HTML attributes.
> >
> > Why do you say that?
>
> Yeah, I figured someone would ask that. :) I couldn't find anything
> definitive on w3c.org; can someone back me up?
Sorta! Unfortunately not with a reference =/
> AFAIK, they are required in XML and XHTML. It's a good habit to get into
> with regular HTML, also (although, yes, both will work in HTML).
This is also my understanding. I could swear that I read it somewhere. I
just don't remember where.
- Brad
attached mail follows:
God!!! This crap is even following me to the newsgroups!
Shadow
attached mail follows:
What are you talking about? This is a once in a life time opportunity! who hasnt dreamt of receiving 15 million for doing absolutely nothing
contact me benny boy !! my number is 0055 all night long O_o
> -----Original Message-----
> From: Shadow [mailto:shadow
shadowsnetwork.com]
> Sent: Friday, 12 September 2003 04:14
> To: php-general
lists.php.net
> Subject: [PHP] Re: URGENT BUSINESS RELATIONSHIP
>
>
> God!!! This crap is even following me to the newsgroups!
> Shadow
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
*************************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.
The information contained within this e-mail may be solely the opinion of the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
*************************************************************************************
attached mail follows:
how can we get this cunt, he obviously has a massive database, a friend and
i found a db password in a spammers cgi script, i couldnt help myself i had
to drop a few tables, i dont know how far my mate got though. i wish i
could fight back they are obviouslly using spamming tools from the security
sites, bah to the developers of these tools. sorry for swearing :\
attached mail follows:
he even found my work email obviouslly from the mysql list
> What are you talking about? This is a once in a life time opportunity!
> who hasnt dreamt of receiving 15 million for doing absolutely nothing
>
> contact me benny boy !! my number is 0055 all night long O_o
>
>> -----Original Message-----
>> From: Shadow [mailto:shadow
shadowsnetwork.com]
>> Sent: Friday, 12 September 2003 04:14
>> To: php-general
lists.php.net
>> Subject: [PHP] Re: URGENT BUSINESS RELATIONSHIP
>>
>>
>> God!!! This crap is even following me to the newsgroups!
>> Shadow
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
****************************************************************************
*********
> This e-mail, including any attachments to it, may contain confidential
> and/or personal information. If you have received this e-mail in error,
> you must not copy, distribute, or disclose it, use or take any action
> based on the information contained within it.
>
> Please notify the sender immediately by return e-mail of the error and
> then delete the original e-mail.
>
> The information contained within this e-mail may be solely the opinion
> of the sender and may not necessarily reflect the position, beliefs or
> opinions of Salmat on any issue.
>
> This email has been swept for the presence of computer viruses known to
> Salmat's anti-virus systems.
>
> For more information, visit our website at www.salmat.com.au.
>
****************************************************************************
*********
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
No! That $15 million is mine! I feel so honoured that you have picked me!
Send me the details! Address them to
The Lodge
Canberra ACT
Australia
Perhaps I can fly over to meet you and your money. I have no suspicions
that you will kill me or anything!
Regards,
Bob Irwin
Server Admin & Web Apps
----- Original Message -----
From: "Cody Phanekham" <Cody.Phanekham
salmat.com.au>
To: <php-general
lists.php.net>
Sent: Friday, September 12, 2003 10:36 AM
Subject: RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP
What are you talking about? This is a once in a life time opportunity! who
hasnt dreamt of receiving 15 million for doing absolutely nothing
contact me benny boy !! my number is 0055 all night long O_o
> -----Original Message-----
> From: Shadow [mailto:shadow
shadowsnetwork.com]
> Sent: Friday, 12 September 2003 04:14
> To: php-general
lists.php.net
> Subject: [PHP] Re: URGENT BUSINESS RELATIONSHIP
>
>
> God!!! This crap is even following me to the newsgroups!
> Shadow
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
****************************************************************************
*********
This e-mail, including any attachments to it, may contain confidential
and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or
disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and then
delete the original e-mail.
The information contained within this e-mail may be solely the opinion of
the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to
Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
****************************************************************************
*********
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
attached mail follows:
lol The Lodge
hey check this out
http://www.potifos.com/fraud/
and this
http://www.nigerian419fraud.freeserve.co.uk/
i did find a link from this list about a site where the guy actually sent
false details and the guy believed him, i think he sent a passport of
himself as captian kirk LOL
> No! That $15 million is mine! I feel so honoured that you have picked
> me!
>
> Send me the details! Address them to
>
> The Lodge
> Canberra ACT
> Australia
>
> Perhaps I can fly over to meet you and your money. I have no
> suspicions that you will kill me or anything!
>
>
> Regards,
> Bob Irwin
> Server Admin & Web Apps
> ----- Original Message -----
> From: "Cody Phanekham" <Cody.Phanekham
salmat.com.au>
> To: <php-general
lists.php.net>
> Sent: Friday, September 12, 2003 10:36 AM
> Subject: RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP
>
>
> What are you talking about? This is a once in a life time opportunity!
> who hasnt dreamt of receiving 15 million for doing absolutely nothing
>
> contact me benny boy !! my number is 0055 all night long O_o
>
>> -----Original Message-----
>> From: Shadow [mailto:shadow
shadowsnetwork.com]
>> Sent: Friday, 12 September 2003 04:14
>> To: php-general
lists.php.net
>> Subject: [PHP] Re: URGENT BUSINESS RELATIONSHIP
>>
>>
>> God!!! This crap is even following me to the newsgroups!
>> Shadow
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
****************************************************************************
> *********
> This e-mail, including any attachments to it, may contain confidential
> and/or personal information.
> If you have received this e-mail in error, you must not copy,
> distribute, or disclose it, use or take any action
> based on the information contained within it.
>
> Please notify the sender immediately by return e-mail of the error and
> then delete the original e-mail.
>
> The information contained within this e-mail may be solely the opinion
> of the sender and may not necessarily
> reflect the position, beliefs or opinions of Salmat on any issue.
>
> This email has been swept for the presence of computer viruses known to
> Salmat's anti-virus systems.
>
> For more information, visit our website at www.salmat.com.au.
>
****************************************************************************
> *********
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
from http://www.nigerian419fraud.freeserve.co.uk/
[snip]
A conservative estimate from the USA is that Americans are defrauded of at least $100 million every year.
[/snip]
hmmm me thinks im in the wrong business ;)
seriously, I didnt think there would be some many gullible people out in cyberspace
> -----Original Message-----
> From: daniel
electroteque.org [mailto:daniel
electroteque.org]
> Sent: Friday, 12 September 2003 10:49
> To: bob
pnc.com.au
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] Re: URGENT BUSINESS RELATIONSHIP
>
>
> lol The Lodge
>
> hey check this out
>
> http://www.potifos.com/fraud/
> and this
>
> http://www.nigerian419fraud.freeserve.co.uk/
>
> i did find a link from this list about a site where the guy
> actually sent
> false details and the guy believed him, i think he sent a passport of
> himself as captian kirk LOL
>
*************************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.
The information contained within this e-mail may be solely the opinion of the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
*************************************************************************************
attached mail follows:
Hi!!!
I´m programming a site in PHP, where I want to do the following:
I will have a set of different directories, where each directory must
execute the same PHP pages, but giving as result different data,
according to the directory where you are located (obtained by
$_SERVER[´PHP_SELF´] for example).
For example I have:
http://www.domain.com/directoryA/
http://www.doamin.com/directoryB/
So each one must have (or should act as if they had) the same PHP pages
and directories under them.
The solution I thought, as copying each page in every directory makes no
sense (if I modify the code I´ll have to change all the pages in all
directories), is to have an includes directory. where I put all the PHP
pages, and in each of the different directories I create pages that
simply include or require the ones from the include directories.
That way I´ll only modify code inone place..
Now.. is there any better way to achieve this??
I thought that maybe with some Apache stuff, but I don´t think there¶
something that will help, since directives such as RedirectMatch, etc.
rewrite the URL, and I don´t want that, I want the URL to remain
http://www.domain.com/directoryX/whatever.php
Is there any way to do this, or I should stick up with the includes??
Thnx in advance,
Juan
attached mail follows:
Is there any type of criteria that would point a user to directoryA or
directoryB?
I recently rebuilt a site that handled a couple thousand
different working directories for clients but used only one set of
scripts for all. The user would have to login and variables were pulled
from a database to set the directory that they would work in. The
directory name could be passed from script to script or stored in
sessions.
Ed
On Thu, 11 Sep 2003, Juan Nin wrote:
> Hi!!!
>
> I´m programming a site in PHP, where I want to do the following:
>
> I will have a set of different directories, where each directory must
> execute the same PHP pages, but giving as result different data,
> according to the directory where you are located (obtained by
> $_SERVER[´PHP_SELF´] for example).
>
> For example I have:
>
> http://www.domain.com/directoryA/
> http://www.doamin.com/directoryB/
>
> So each one must have (or should act as if they had) the same PHP pages
> and directories under them.
>
> The solution I thought, as copying each page in every directory makes no
> sense (if I modify the code I´ll have to change all the pages in all
> directories), is to have an includes directory. where I put all the PHP
> pages, and in each of the different directories I create pages that
> simply include or require the ones from the include directories.
>
> That way I´ll only modify code inone place..
>
> Now.. is there any better way to achieve this??
> I thought that maybe with some Apache stuff, but I don´t think there¶
> something that will help, since directives such as RedirectMatch, etc.
> rewrite the URL, and I don´t want that, I want the URL to remain
> http://www.domain.com/directoryX/whatever.php
>
> Is there any way to do this, or I should stick up with the includes??
>
> Thnx in advance,
>
> Juan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
On Thu, 2003-09-11 at 15:39, Ed Curtis wrote:
> Is there any type of criteria that would point a user to directoryA or
> directoryB?
>
> I recently rebuilt a site that handled a couple thousand
> different working directories for clients but used only one set of
> scripts for all. The user would have to login and variables were pulled
> from a database to set the directory that they would work in. The
> directory name could be passed from script to script or stored in
> sessions.
The beheaviour I want to acomplish is the same as in yahoorgoups.
You can access a mian page, where you login and have a list of all the groups you are subscribe to.
You click on the link to each one and it redirects you to: http://groups.yahoo.com/groups/yourGroup/
There it displays the page for your group with all it´s characteristics. The same behaviour
if you access that URL directly. Or you can also access http://groups.yahoo.com/groups/yourGroup/messages/ etc
That¶ what I ant to do :)
Any ideas?
thnx again,
Juan
attached mail follows:
I'm pretty sure that YahooGroups uses cookies for this to hold values
while you're not on their site. When you return it checks for the cookies
and reloads the values from the last visit. You can accomplish this with
PHP as well.
Ed
On Thu, 11 Sep 2003, Juan Nin wrote:
> On Thu, 2003-09-11 at 15:39, Ed Curtis wrote:
> > Is there any type of criteria that would point a user to directoryA or
> > directoryB?
> >
> > I recently rebuilt a site that handled a couple thousand
> > different working directories for clients but used only one set of
> > scripts for all. The user would have to login and variables were pulled
> > from a database to set the directory that they would work in. The
> > directory name could be passed from script to script or stored in
> > sessions.
>
> The beheaviour I want to acomplish is the same as in yahoorgoups.
>
> You can access a mian page, where you login and have a list of all the groups you are subscribe to.
> You click on the link to each one and it redirects you to: http://groups.yahoo.com/groups/yourGroup/
>
> There it displays the page for your group with all it´s characteristics. The same behaviour
> if you access that URL directly. Or you can also access http://groups.yahoo.com/groups/yourGroup/messages/ etc
>
> That¶ what I ant to do :)
>
> Any ideas?
>
> thnx again,
>
> Juan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
> I thought that maybe with some Apache stuff, but I don´t think there¶
> something that will help, since directives such as RedirectMatch, etc.
> rewrite the URL, and I don´t want that, I want the URL to remain
> http://www.domain.com/directoryX/whatever.php
mod_rewrite allows you to do internal redirects. This would keep your
user's URL the same, but actually point to a different page internally.
This is, of course, depends on whether you or your host have mod_rewrite
installed.
attached mail follows:
On Thu, 2003-09-11 at 16:04, Ed Curtis wrote:
> I'm pretty sure that YahooGroups uses cookies for this to hold values
> while you're not on their site. When you return it checks for the cookies
> and reloads the values from the last visit. You can accomplish this with
> PHP as well.
that´s clear, I know that, but that¶ not what I want...
I mean, the thing is that I want to execute the same PHP scripts, no matter what directory I´m in, but
show data according to what directory I´m in, exactly the same that happens with yahoogroups and it´s groups
that´s why I´m thinking in putting the PHP pages in each directory which just include the common PHPs
from an include directory (could use hard links either, but I prefer doing it via PHP and not depend on Os stuff)
so that´s what I´m asking, if there´s a better way to achieve this, not talking about cookies :)
Juan
attached mail follows:
On Thu, 2003-09-11 at 16:20, Peter James wrote:
> mod_rewrite allows you to do internal redirects. This would keep your
> user's URL the same, but actually point to a different page internally.
> This is, of course, depends on whether you or your host have mod_rewrite
> installed.
cool, it was the first thing I had thought off, but after giving a quick
look at it I thought it rewrited the URLs...
I´ll take a better look at it!!!
Thanks!!!
I guess there´s no way to do something like this only with PHP, without
Apache conf, is there?
thnx again,
Juan
attached mail follows:
From: "Juan Nin" <juaid
juanin.com>
> The beheaviour I want to acomplish is the same as in yahoorgoups.
>
> You can access a mian page, where you login and have a list of all the
groups you are subscribe to.
> You click on the link to each one and it redirects you to:
http://groups.yahoo.com/groups/yourGroup/
>
> There it displays the page for your group with all it´s characteristics.
The same behaviour
> if you access that URL directly. Or you can also access
http://groups.yahoo.com/groups/yourGroup/messages/ etc
>
> That¶ what I ant to do :)
>
> Any ideas?
This is doable. It's discussed on here often. Basically, you use an apache
command to FORCE "groups" to be a PHP file. Then the remainder of the URL is
available in $_SERVER['REQUEST_URI']. You parse that to determine what group
the user is after, retrieve the content, and show it.
Search the archives or google for "search friendly urls" and you should get
some good tutorials or instructions.
---John Holmes...
attached mail follows:
Has anyone ever suceesfully embedded a jpGraph image in an FPDF output?
FPDF uses this function for an image
$pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG');
but when image.jpg is created with jpgraph it throws errors. I am sure
that I am missing something quite obvious, but alas I cannot see it.
Thanks!
attached mail follows:
This is probably an easy question but I have been looking at this code for a
while and it is all blurry..:)
I have an uploaded image in a temp file that I want to rename and put in
another folder. I am using rename() which works fine, the problem is, I
want to force an overwrite if the file already exists. For example, I am
allowing customers to upload an image for a certain product (row) in the db,
I get the row id and rename the image to a guid while they preview, then
move it into the permanent folder and rename it to image_$rowid. They only
get one picture per row so if they want to change the picture, I want to do
the same process and just overwrite the old picture with the new one when
doing the rename.
Problem is, the rename throws errors if the image name already exists. So I
have added unlink() do delete the image....but then I have to add code to
only delete if the image already exists...I am just looking for an easy way
to rename,move, and overwrite all in one step.
If anyone cares, I am working with oscommerce and trying to prevent
different users from uploading a picture with the same name, that is why I
am trying to rename the image to image_$rowid.
Thanks,
Eddie
attached mail follows:
From: "Edward Peloke" <epeloke
echoman.com>
> This is probably an easy question
Yep.. ;)
> I have an uploaded image in a temp file that I want to rename and put in
> another folder. I am using rename() which works fine, the problem is, I
> want to force an overwrite if the file already exists. [snip]
You should use move_uploaded_file(), which will overwrite the destination
file if it exists. It also has the added security that rename() does not in
that it will ENSURE the file actually came from an HTTP POST operation.
http://us2.php.net/manual/en/function.move-uploaded-file.php
---John Holmes...
attached mail follows:
Thanks John,
I had actually looked that one up not to long ago...I just had a nice
'ping-pong' break (helps me think :)) and I might re-write it anyway, but I
will still be using the move_uploaded_file() this time.
Thanks,
Eddie
-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000
charter.net]
Sent: Thursday, September 11, 2003 3:19 PM
To: Edward Peloke; Php-General
Lists. Php. Net
Subject: Re: [PHP] rename()
From: "Edward Peloke" <epeloke
echoman.com>
> This is probably an easy question
Yep.. ;)
> I have an uploaded image in a temp file that I want to rename and put in
> another folder. I am using rename() which works fine, the problem is, I
> want to force an overwrite if the file already exists. [snip]
You should use move_uploaded_file(), which will overwrite the destination
file if it exists. It also has the added security that rename() does not in
that it will ENSURE the file actually came from an HTTP POST operation.
http://us2.php.net/manual/en/function.move-uploaded-file.php
---John Holmes...
attached mail follows:
Hello,
I have encountered the error message PHP has encountered an Access
Violation at 77XXXXX as described in the
http://bugs.php.net/bug.php?id=17563 bug. The reported bug only relates
to MSSQL, but the application I'm working on uses MySQL. Could this
error occur due to other Win-related probelms? Like file locking or
cacheing? The problematic application runs on Win2000, IIS 5 and PHP 4.3.2.
(I have never run across the problem on any of several Linux-hosted
applications.)
Thanks for all help,
mats d.
--
mats dahlgren SSSK's web: http://www.sssk.se/
matsd
sssk.se Skridskonätet: http://www.skridsko.net/
Täby, Sweden
attached mail follows:
Perhaps you should re-open the bug report. It was closed due to lack of
feedback, so it's prolly not fixed yet. Can you get a backtrace? Reproducing
code? Need more details...
With regard to the second paragraph, the obvious solution is to use Linux...
Evan Nemerson
On Thursday 11 September 2003 01:08 am, Mats Dahlgren wrote:
> Hello,
>
> I have encountered the error message PHP has encountered an Access
> Violation at 77XXXXX as described in the
> http://bugs.php.net/bug.php?id=17563 bug. The reported bug only relates
> to MSSQL, but the application I'm working on uses MySQL. Could this
> error occur due to other Win-related probelms? Like file locking or
> cacheing? The problematic application runs on Win2000, IIS 5 and PHP
> 4.3.2.
>
> (I have never run across the problem on any of several Linux-hosted
> applications.)
>
> Thanks for all help,
> mats d.
attached mail follows:
Dreamweaver MX 2004.
-----
zerof
attached mail follows:
Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted
to upgrade it to PHP 4.3.3. So I did the following below as SU and received
the below errors. Is this something I should be worried about? How can I
resolve the errors? Never have had this happen before in the past. I ran
phpinfo() and it shows PHP 4.3.3, but is the install of PHP okay?
If you require any additional information let me know, thanks!
# make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module: apache
[activating module `php4' in /var/www/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/modules/libphp4.so
chmod 755 /usr/lib/apache/modules/libphp4.so
cp /var/www/conf/httpd.conf /var/www/conf/httpd.conf.bak
cp /var/www/conf/httpd.conf.new /var/www/conf/httpd.conf
rm /var/www/conf/httpd.conf.new
Installing shared extensions:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
Parse error: parse error in
/usr/files/storage/Software/php-4.3.3/pear/package-Archive_Tar.xml on line 1
*** Error code 255
Stop in /usr/files/storage/Software/php-4.3.3 (line 263 of Makefile).
*** Error code 1
Stop in /usr/files/storage/Software/php-4.3.3 (line 269 of Makefile).
attached mail follows:
Unless you need PEAR, you're fine. Try configuring --without-pear. You should
really be doing this anyways unless actually need PEAR.
Evan Nemerson
On Thursday 11 September 2003 02:10 pm, Adam Douglas wrote:
> Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted
> to upgrade it to PHP 4.3.3. So I did the following below as SU and received
> the below errors. Is this something I should be worried about? How can I
> resolve the errors? Never have had this happen before in the past. I ran
> phpinfo() and it shows PHP 4.3.3, but is the install of PHP okay?
>
> If you require any additional information let me know, thanks!
>
>
> # make install
> Installing PHP CLI binary: /usr/local/bin/
> Installing PHP CLI man page: /usr/local/man/man1/
> Installing PHP SAPI module: apache
> [activating module `php4' in /var/www/conf/httpd.conf]
> cp libs/libphp4.so /usr/lib/apache/modules/libphp4.so
> chmod 755 /usr/lib/apache/modules/libphp4.so
> cp /var/www/conf/httpd.conf /var/www/conf/httpd.conf.bak
> cp /var/www/conf/httpd.conf.new /var/www/conf/httpd.conf
> rm /var/www/conf/httpd.conf.new
> Installing shared extensions:
> /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
> Installing PEAR environment: /usr/local/lib/php/
>
> Parse error: parse error in
> /usr/files/storage/Software/php-4.3.3/pear/package-Archive_Tar.xml on line
> 1 *** Error code 255
>
> Stop in /usr/files/storage/Software/php-4.3.3 (line 263 of Makefile).
> *** Error code 1
>
> Stop in /usr/files/storage/Software/php-4.3.3 (line 269 of Makefile).
attached mail follows:
Doug Parker wrote:
> isn't there a function that allows me to store a string with a bunch of
> quotes in it (like an html tag) into a variable?
>
> for example, i need something like: $perf_mod = <a href="#"
> onclick="popWindow('popup.php')">
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
I get the same. (Although aurel
hs.ro is now being filtered to the
trash. :-D )
-Dan
On Thu, 2003-09-11 at 07:34, Jay Blanchard wrote:
> Each time I send/respond I get an autoresponder from (major snippage to
> header)
>
> Received: from lns.hs.ro (lns.hs.ro [194.102.195.10])
> Received: from Aurel ([194.102.195.25])
> by lns.hs.ro (8.11.6/8.11.0) with SMTP id h8BBR8s32710
> Message-ID: <000201c37857$d59f9880$19c366c2
HS>
> From: "Aurel Tirnovanu" <aurel
hs.ro>
> Return-Path: aurel
hs.ro
>
> From: "Aurel Tirnovanu" <aurel
hs.ro>
> Subject: Raspuns:
>
> The e-mail is blank but contains an attached e-mail in what appears to
> be Romanian. I am sure that others are getting this. Can a mod please
> remove them?
>
> Thanks!
attached mail follows:
I am trying to get the ability to resume broken downloads with a client
(such as FlashGet, GetRight, etc...) I am able to download the complete
file without resume and everything works properly, but, when using a
download manager, if I break the download then continue, the byte count
never matches up. I am checking for the $_ENV['HTTP_RANGE'] and setting up
my headers based on this info. But, the byte count continues to be
incorrect. Could someone point me in the right direction? Thanks in
advance for any assistance. Below you will find my code....
<?php
session_cache_limiter('public');
session_start();
set_time_limit(0);
$file=$_REQUEST['file'];
$extstart=strpos($file, ".");
$ext=substr($file, $extstart+1);
$dir="d:\\downloadable_courses";
$size=filesize($dir."\\".$file);
header("Accept-Ranges: bytes");
if(isset($_ENV['HTTP_RANGE'])) {
list($a, $range)=explode("=",$_ENV['HTTP_RANGE']);
str_replace($range, "-", $range);
$size2=$size-1;
header("Content-Range: $range$size2/$size");
$new_length=$size2-$range;
header("Content-Length: $new_length");
} else {
$size2=$size-1;
header("Content-Range: bytes 0-$size2/$size");
header("Content-Length: ".$size2);
}
header("Content-Type: application/".$ext);
header("Content-Disposition: inline; filename=$file");
$fp=fopen($dir."\\".$file, "rb");
fpassthru($fp);
exit;
?>
attached mail follows:
hi,
AFAIK this is not something that you need to bother with in your php
scripts. this is a web server level issue
Scott Dotson wrote:
>I am trying to get the ability to resume broken downloads with a client
>(such as FlashGet, GetRight, etc...) I am able to download the complete
>file without resume and everything works properly, but, when using a
>download manager, if I break the download then continue, the byte count
>never matches up. I am checking for the $_ENV['HTTP_RANGE'] and setting up
>my headers based on this info. But, the byte count continues to be
>incorrect. Could someone point me in the right direction? Thanks in
>advance for any assistance. Below you will find my code....
>
><?php
>session_cache_limiter('public');
>session_start();
>set_time_limit(0);
>$file=$_REQUEST['file'];
>$extstart=strpos($file, ".");
>$ext=substr($file, $extstart+1);
>$dir="d:\\downloadable_courses";
>$size=filesize($dir."\\".$file);
>header("Accept-Ranges: bytes");
>if(isset($_ENV['HTTP_RANGE'])) {
> list($a, $range)=explode("=",$_ENV['HTTP_RANGE']);
> str_replace($range, "-", $range);
> $size2=$size-1;
> header("Content-Range: $range$size2/$size");
> $new_length=$size2-$range;
> header("Content-Length: $new_length");
>} else {
> $size2=$size-1;
> header("Content-Range: bytes 0-$size2/$size");
> header("Content-Length: ".$size2);
>}
>header("Content-Type: application/".$ext);
>header("Content-Disposition: inline; filename=$file");
>$fp=fopen($dir."\\".$file, "rb");
>fpassthru($fp);
>exit;
>?>
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
Can you help explain this code? It looks like you're on the right track but
have a few flaws (at first glance).
> <?php
> session_cache_limiter('public');
> session_start();
Is there a reason to be using sessions here?
> set_time_limit(0);
> $file=$_REQUEST['file'];
> $extstart=strpos($file, ".");
What does $extstart contain now?
> $ext=substr($file, $extstart+1);
So $ext is now a piece of the file. Why?
> $dir="d:\\downloadable_courses";
> $size=filesize($dir."\\".$file);
> header("Accept-Ranges: bytes");
So $size is now the size of the entire file (not the piece).
> if(isset($_ENV['HTTP_RANGE'])) {
> list($a, $range)=explode("=",$_ENV['HTTP_RANGE']);
So $a is now bytes, and $range is something like 123-456
> str_replace($range, "-", $range);
This makes no sense. The range requested is bytes 123 through 456, and you're
converting this to 123456. Why?
> $size2=$size-1;
> header("Content-Range: $range$size2/$size");
> $new_length=$size2-$range;
This will definitely not work, based on my comments above.
If someone sends this header:
Range: bytes=0-1023
and your resource is 2048 bytes in size, your response should include this
header:
Content-Range: bytes 0-1023/2048
Work on generating the correct string before you bother actually using them as
headers and trying for the full solution.
Hope that helps.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
attached mail follows:
I have located an HTML editor written in Java that works with my clients
various computers (e.g. Linux, PC and Macs). What I need to do is learn
how to take the output from an Applet and put it into a PHP variable.
Since I have no experience with Java, I am at a disadvantage, so if
someone could point me toward some literature that explains this or if
someone already has the experience and can look at the source and tell
me how, it would be greatly appreciated.
http://209.204.172.137/editor/ekit.php
Todd
--
attached mail follows:
There may be other methods, but one that seems to be available from your form will require some JavaScript code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below).
document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText();
I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the "hidden" value to your php program on your server. Don't forget to have your form action field invoke your php program and with method=post you could retrieve the value as below;
$htmltext = $_POST["hiddenfld"];
hope this helps,
Warren Vail
-----Original Message-----
From: Todd Cary [mailto:todd
aristesoftware.com]
Sent: Thursday, September 11, 2003 3:36 PM
To: php-general
lists.php.net
Subject: [PHP] Integrating an Applet with PHP
I have located an HTML editor written in Java that works with my clients
various computers (e.g. Linux, PC and Macs). What I need to do is learn
how to take the output from an Applet and put it into a PHP variable.
Since I have no experience with Java, I am at a disadvantage, so if
someone could point me toward some literature that explains this or if
someone already has the experience and can look at the source and tell
me how, it would be greatly appreciated.
http://209.204.172.137/editor/ekit.php
Todd
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Warren -
That works...
http://209.204.172.137/editor/ekit.php
Now the next challenge is to put the value in $text into the HTML editor with some JavaScript...any suggestions?
Todd
Vail, Warren wrote:
>There may be other methods, but one that seems to be available from your form will require some JavaScript code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below).
>
>document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText();
>
>I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the "hidden" value to your php program on your server. Don't forget to have your form action field invoke your php program and with method=post you could retrieve the value as below;
>
>$htmltext = $_POST["hiddenfld"];
>
>hope this helps,
>
>Warren Vail
>
>
>-----Original Message-----
>From: Todd Cary [mailto:todd
aristesoftware.com]
>Sent: Thursday, September 11, 2003 3:36 PM
>To: php-general
lists.php.net
>Subject: [PHP] Integrating an Applet with PHP
>
>
>I have located an HTML editor written in Java that works with my clients
>various computers (e.g. Linux, PC and Macs). What I need to do is learn
>how to take the output from an Applet and put it into a PHP variable.
>Since I have no experience with Java, I am at a disadvantage, so if
>someone could point me toward some literature that explains this or if
>someone already has the experience and can look at the source and tell
>me how, it would be greatly appreciated.
>
>http://209.204.172.137/editor/ekit.php
>
>Todd
>
>
--
attached mail follows:
Again, this is a guess, but it looks like two parameters to the applet are used;
One called Document and another to indicate that BASE64 encoding was used to encode the html so that the browser doesn't try to render the html into a page.
when you output your form (FROM PHP, of course), somehow include the following among the parameters for the applet;
echo "<param NAME=\"DOCUMENT\" VALUE=\"".base64_encode($htmlsource)."\"\n"
."<param NAME=\"BASE64\" VALUE=\"true\">\n";
odds are against this working(I'm a pessimist), but it is what I would try before moving on.
Warren
-----Original Message-----
From: Todd Cary [mailto:todd
aristesoftware.com]
Sent: Thursday, September 11, 2003 4:39 PM
To: Vail, Warren; php-general
lists.php.net
Subject: Re: [PHP] Integrating an Applet with PHP
Warren -
That works...
http://209.204.172.137/editor/ekit.php
Now the next challenge is to put the value in $text into the HTML editor with some JavaScript...any suggestions?
Todd
Vail, Warren wrote:
There may be other methods, but one that seems to be available from your form will require some JavaScript code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below).
document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText();
I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the "hidden" value to your php program on your server. Don't forget to have your form action field invoke your php program and with method=post you could retrieve the value as below;
$htmltext = $_POST["hiddenfld"];
hope this helps,
Warren Vail
-----Original Message-----
From: Todd Cary [ mailto:todd
aristesoftware.com]
Sent: Thursday, September 11, 2003 3:36 PM
To: php-general
lists.php.net
Subject: [PHP] Integrating an Applet with PHP
I have located an HTML editor written in Java that works with my clients
various computers (e.g. Linux, PC and Macs). What I need to do is learn
how to take the output from an Applet and put it into a PHP variable.
Since I have no experience with Java, I am at a disadvantage, so if
someone could point me toward some literature that explains this or if
someone already has the experience and can look at the source and tell
me how, it would be greatly appreciated.
http://209.204.172.137/editor/ekit.php
Todd
--
attached mail follows:
Hi,
Friday, September 12, 2003, 9:38:48 AM, you wrote:
TC> Warren -
TC> That works...
TC> http://209.204.172.137/editor/ekit.php
TC> Now the next challenge is to put the value in $text into the HTML editor with some JavaScript...any suggestions?
TC> Todd
TC> Vail, Warren wrote:
>>There may be other methods, but one that seems to be available from your form will require some JavaScript code. Clicking the button located below the applet (onclick event), performs an
>>assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below).
>>
>>document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText();
>>
>>I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the "hidden" value to your php program on your server. Don't forget to have your form action
>>field invoke your php program and with method=post you could retrieve the value as below;
>>
>>$htmltext = $_POST["hiddenfld"];
>>
>>hope this helps,
>>
>>Warren Vail
>>
>>
>>-----Original Message-----
>>From: Todd Cary [mailto:todd
aristesoftware.com]
>>Sent: Thursday, September 11, 2003 3:36 PM
>>To: php-general
lists.php.net
>>Subject: [PHP] Integrating an Applet with PHP
>>
>>
>>I have located an HTML editor written in Java that works with my clients
>>various computers (e.g. Linux, PC and Macs). What I need to do is learn
>>how to take the output from an Applet and put it into a PHP variable.
>>Since I have no experience with Java, I am at a disadvantage, so if
>>someone could point me toward some literature that explains this or if
>>someone already has the experience and can look at the source and tell
>>me how, it would be greatly appreciated.
>>
>>http://209.204.172.137/editor/ekit.php
>>
>>Todd
>>
>>
What I do in a similar situation is to pass the data in a hidden field
and then pass that to the java applet. As it is html you will be
passing you have to use rawurlencode($data) in the php script
<?
$data = rawurlencode($data);
?>
In the html part
<body onload="whatever.applet.Value = unescape(document.form1.data.value);">
<form name="form1" action=........>
<input type="hidden" name="data" value="<? echo $data?>">
..
--
regards,
Tom
attached mail follows:
Dan Anderson <mailto:dan
mathjunkies.com>
on Wednesday, September 10, 2003 5:17 PM said:
> If you don't like somebodys post just ignore it. I'd bet your 2 cents
> that you don't find every post to this list interesting. Do you reply
> to those people and ask them to not post stuff that doesn't interest
> you?
Dan,
You've completely misread and misinterpreted Robert's comments. He
didn't say he didn't want to read posts he wasn't interested in and he
didn't ask the poster to not post things he wasn't interested in
reading. He DID however request that people not send html emails to the
list.
How the heck did you turn a request for no html emails into a request
for people to not post things Robert is uninterested in??????
Chris.
attached mail follows:
> You've completely misread and misinterpreted Robert's comments. He
> didn't say he didn't want to read posts he wasn't interested in and he
> didn't ask the poster to not post things he wasn't interested in
> reading. He DID however request that people not send html emails to the
> list.
Oh wait, he means HTML e-mails? I thought he meant posts regarding to
HTML. Please disregard my previous posts.
lower_flamethrower();
-Dan
attached mail follows:
*chuckle* this explains your responses to me. In this new light I
apologize for my condescending responses.
Cheers,
Rob.
On Thu, 2003-09-11 at 20:17, Dan Anderson wrote:
> > You've completely misread and misinterpreted Robert's comments. He
> > didn't say he didn't want to read posts he wasn't interested in and he
> > didn't ask the poster to not post things he wasn't interested in
> > reading. He DID however request that people not send html emails to the
> > list.
>
> Oh wait, he means HTML e-mails? I thought he meant posts regarding to
> HTML. Please disregard my previous posts.
>
> lower_flamethrower();
>
> -Dan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'
attached mail follows:
Dan Anderson <mailto:dan
mathjunkies.com>
on Wednesday, September 10, 2003 5:44 PM said:
> require_once() or include_once()
>
> The files containing the class files before you need them. They will
> only be loaded when needed that way.
Not true. www.php.net/require_once
The way I understand it (maybe you know something I don't?)
require/include_once only prevent an included file from being included
MORE than one time, hence the character string _once tacked onto the end
of include() and require().
It does NOT however include a file only when it's needed, it merely
includes it once.
Please correct me if I'm wrong.
Chris.
attached mail follows:
thats how i saw it includes it once so it prevents say functions being
reincluded
> Dan Anderson <mailto:dan
mathjunkies.com>
> on Wednesday, September 10, 2003 5:44 PM said:
>
>> require_once() or include_once()
>>
>> The files containing the class files before you need them. They will
>> only be loaded when needed that way.
>
> Not true. www.php.net/require_once
>
> The way I understand it (maybe you know something I don't?)
> require/include_once only prevent an included file from being included
> MORE than one time, hence the character string _once tacked onto the
> end of include() and require().
>
> It does NOT however include a file only when it's needed, it merely
> includes it once.
>
>
> Please correct me if I'm wrong.
>
> Chris.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> The way I understand it (maybe you know something I don't?)
> require/include_once only prevent an included file from being included
> MORE than one time, hence the character string _once tacked onto the end
> of include() and require().
>
> It does NOT however include a file only when it's needed, it merely
> includes it once.
Yes, and this can be used to help reduce overhead. For instance, if you
require_once() a script which connects to a database in every function
you write which uses a database, you will never connect to the database
unless you use a function which needs it. Same concept applies to other
functions, etc. you can write.
PHP never "magically" decides what you need. But it does ensure that
things which require system resources (whether they be variables or a
connection to a database or classes) are never included unless the
function they are require_once()d in is called (or the branch of the if
statement or whatever). This can be used to save system resources:
1. If no function calling a require_once() is called persistent
resources are never used. (Persistent in the sense that they take up
resources for a scripts execution once called)
2. If a function calling a require_once() is called persistent
resources persist -- i.e. you don't need to reconnect to a database
(which takes more resources) or run an if (!($foo)) { $foo =
'something'; } (which saves coding time -- and makes code easier to
read).
3. If a function calling a require_once() is never called the script
will never be parsed (and resources used).
Perhaps I was not 100% clear in my original post, but require_once()s
/can/ be used to not eat massive system resources.
-Dan
attached mail follows:
will never be parsed (and resources used).
woah u kiddin me ? i'm sure i edited a function in a functions file which
wasnt executed and it still got parsed (spat out errors)
that would be a kool resource saver if it did though
attached mail follows:
> woah u kiddin me ? i'm sure i edited a function in a functions file which
> wasnt executed and it still got parsed (spat out errors)
Well connecting to a database, etc. does take overhead above and beyond
a function. So yes, it does save resources to include it.
And I am not completely sure of the way PHP handles things internally,
but I have noticed that functions don't cause PHP to yelp and moan
unless they are called (for some errors). Plus if a function uses
several kb of memory include_once or require_once() ing them /will/ save
resources on a server.
-Dan
attached mail follows:
If I want to show events (records in a MySQL table) for the next 10
days (and I do), what would be the best approach to searching with this
range? (The dates in my table are stored as a string in the format
YYYY/MM/DD.)
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames
"Read the book! Be patient! All success comes from acquiring knowledge
and experience."
-- Seth Willits
------------------------------------------------------------------------
---
attached mail follows:
Seth Willits wrote:
> If I want to show events (records in a MySQL table) for the next 10
> days (and I do), what would be the best approach to searching with this
> range? (The dates in my table are stored as a string in the format
> YYYY/MM/DD.)
SELECT * FROM Table WHERE event_date BETWEEN NOW() AND NOW() + INTERVAL
10 DAY;
> "Read the book! Be patient! All success comes from acquiring knowledge
> and experience."
> -- Seth Willits
You quote yourself in your own signature? Isn't that... illegal or
something... ;)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
enough or mr Larry E. Ullman will kick some butt
attached mail follows:
Hi there, i have come to a solution, due the fact that the client does not
store the http_referer on a javascript location.href, is to send the
refering url into the url, there is an issue though say it looks like
something.php?action=delete&return_url=someother.php?action=edit&id=1
it will come out as
something.php?action=delete&return_url=someother.php
i tried urlencode but still no luck any ideas ?
attached mail follows:
Aplogies, that was my app although i am having more issues now, i use
switch statements on a get action variable.
here is the full link
manage.php?
action=deleteconfirm&asset_modelID=82&table=asset_models&return_url=/assets/
manage.php?table=asset_models&ID=82&action=edit
it now things its a edit action instead of a deleteconfirm action :\
> Hi there, i have come to a solution, due the fact that the client does
> not store the http_referer on a javascript location.href, is to send
> the refering url into the url, there is an issue though say it looks
> like
>
> something.php?action=delete&return_url=someother.php?action=edit&id=1
>
> it will come out as
>
> something.php?action=delete&return_url=someother.php
>
> i tried urlencode but still no luck any ideas ?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
--- daniel
electroteque.org wrote:
> something.php?action=delete&return_url=someother.php?action=edit&id=1
>
> it will come out as
>
> something.php?action=delete&return_url=someother.php
>
> i tried urlencode but still no luck any ideas?
What did you try to URL encode? You need to encode the URL that is the value of
return_url. So, you want to end up with this:
something.php?action=delete&return_urlsomeother.php%3faction%3dedit%26id%3d1
Hope that helps.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
attached mail follows:
> something.php?action=delete&return_urlsomeother.php%3faction%3dedit%26id%3d1
There should be an equal sign between return_url and someother, in case you try
to copy/paste that for some reason.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
attached mail follows:
Hello,
I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name another list is suppossed to populate the address or addresses, if multiple occur, and you can select the address.
I am not able to sucessfully pull off this dynamic drill down list in my form because I do not know how to check data from a form field that hasnt been posted through $POST VARS array.
My question is, is their a way to do this in PHP? Do I have to learn javascript in order to accomplish this task or will I have to have a submit button for each form element?
Thanks in advance,
Daniel
attached mail follows:
If you want to process the conent of a form without passing it back to
the server you definitely need to learn javasript.
Dan J. Rychlik wrote:
>Hello,
>
>I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name another list is suppossed to populate the address or addresses, if multiple occur, and you can select the address.
>
>I am not able to sucessfully pull off this dynamic drill down list in my form because I do not know how to check data from a form field that hasnt been posted through $POST VARS array.
>
>My question is, is their a way to do this in PHP? Do I have to learn javascript in order to accomplish this task or will I have to have a submit button for each form element?
>
>Thanks in advance,
>Daniel
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
back to urlencode it worked this time, really sorry
attached mail follows:
Hi ,
I am writing a php extension module on AIX 4.3.3 RS6000 machine.I
have compiled php as CGI.When I test my php extension module function
from a test php script I get a CORE dump.The gdb php core is as below
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
#0 0xd0990180 in zend_parse_parameters ()
(gdb) bt
#0 0xd0990180 in zend_parse_parameters ()
#1 0xd0990930 in zif_myfunction ()
#2 0x1002c5a4 in execute (op_array=0x200e6c70, tsrm_ls=0x20027738)
at /usr/local/php-4.3.2/Zend/zend_execute.c:1606
#3 0x1000e0d4 in zend_execute_scripts (type=8, tsrm_ls=0x20027738,
retval=0x0, file_count=3)
at /usr/local/php-4.3.2/Zend/zend.c:869
#4 0x10007410 in php_execute_script (primary_file=0x5,
tsrm_ls=0x3027738)
at /usr/local/php-4.3.2/main/main.c:1671
#5 0x10001ec8 in main (argc=2, argv=0x2ff228c0) at
/usr/local/php-4.3.2/sapi/cgi/cgi_main.c:1501
#6 0x100001dc in __start ()
I have tried all combinations of ZTS=0 ZEND_DEBUG =0
ZTS=0 ZEND_DEBUG =1
ZTS=1 ZEND_DEBUG =0
ZTS=1 ZEND_DEBUG =1
for compiling php as well as my extension module. All give the same
result :-(
Has anyone encountered this on a AIX machine.
If not atleast has anyone successfully tested a PHP extension module on
a AIX machine.I urgently need some Help.No matter what I tried till now
All has failed.
Thanks & Regards
Ashish Borkar
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
attached mail follows:
Does php support this? HTTP_REFERER
or simply cgi and ssi only?
-
Louie
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]