[PHP] Dynamic tables

2003-10-16 Thread irinchiang
Hi all, Having a slight problem with dynamic tables here. I am trying to create a timetable using PHP, HTML, and MySQL, where all the cells in the table are coloured and that the colour of the cells can be changed using a drop down menu. Here's a snip of the code that I have done: class

Re: [PHP] Use of Objects in PHP

2003-10-16 Thread Robert Cummings
On Fri, 2003-10-17 at 01:43, Nagib Abi Fadel wrote: > Hi, > i have been using php for 1 year till now, and i never > felt the need to use an object. > > Can some one tell me where and why should i use the > object oriented coding in PHP ? > I meen i have been able to do all the things i want > wit

Re: [PHP] error reporting

2003-10-16 Thread daniel
> ---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 Heh yes umm i know this. But how i

[PHP] Use of Objects in PHP

2003-10-16 Thread Nagib Abi Fadel
Hi, i have been using php for 1 year till now, and i never felt the need to use an object. Can some one tell me where and why should i use the object oriented coding in PHP ? I meen i have been able to do all the things i want without using any object (I know that objects could make my code more s

[PHP] Passing values dynamically

2003-10-16 Thread Rashini Jayasinghe
Hi, I am getting a one column table as a result for a select statement. Now I want to pass obtained values dynamically to invoke another query in a new page. I tried to pass the values with sessions. But every time I get the last value of the previous result. Any suggestions as how I could pass

RE: [PHP] Session cookie issue...

2003-10-16 Thread Jake McHenry
John W. Holmes wrote: > Jake McHenry wrote: > >> What should I be using then.. Apache 1.3? And will this fix the >> problem... Or is it in the version of php I have? > > Well, yes, you _should_ be using 1.3 and the latest version of PHP. I > think just upgrading PHP and still using Apache2 will

Re: [PHP] Session cookie issue...

2003-10-16 Thread John W. Holmes
Jake McHenry wrote: What should I be using then.. Apache 1.3? And will this fix the problem... Or is it in the version of php I have? Well, yes, you _should_ be using 1.3 and the latest version of PHP. I think just upgrading PHP and still using Apache2 will fix this bug, though, and it should s

RE: [PHP] Session cookie issue...

2003-10-16 Thread Jake McHenry
Jake McHenry wrote: > John W. Holmes wrote: >> Jake McHenry wrote: >> >>> Php 4.2.2 and yes, apache 2 >> >> You know that's not recommended, right? PHP is not stable with >> Apache2 yet. Either way, there is a bug with a specific version of >> PHP and Apache2 that messes up request variables like

Re: [PHP] using ImageGIF

2003-10-16 Thread Jason Wong
On Friday 17 October 2003 11:04, Louie Miranda wrote: > yes, thanks for the information. Is there any other similar types like gd > that can create gif's? There are non-official versions of gd lib that has gif support, ask google. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open So

Re: [PHP] Offering files from below the webroot

2003-10-16 Thread Mohamed Lrhazi
Read the user comments here: http://www.php.net/manual/en/function.header.php On Thu, 2003-10-16 at 23:12, Ryan A wrote: > (b)open a file save dialog, give him the file > > I can do (a)...how to do (b)? I have checked up fpassthru and readfile...got > confused and came here :-D, any pointers?

RE: [PHP] Session cookie issue...

2003-10-16 Thread Jake McHenry
John W. Holmes wrote: > Jake McHenry wrote: > >> Php 4.2.2 and yes, apache 2 > > You know that's not recommended, right? PHP is not stable > with Apache2 > yet. Either way, there is a bug with a specific version of PHP and > Apache2 that messes up request variables like you are talking about. > I

Re: [PHP] using ImageGIF

2003-10-16 Thread Paul
maybe imagemagick? not sure otherwise theres a program called gfont that i believe can. --- Louie Miranda <[EMAIL PROTECTED]> wrote: > yes, thanks for the information. Is there any other > similar types like gd > that can create gif's? > > > -- - > Louie Miranda > http://www.axishift.com > >

Re: [PHP] error reporting

2003-10-16 Thread John W. Holmes
[EMAIL PROTECTED] wrote: on the topic of error reporting, am i able to catch fatal/parse errors yet ? How could a PHP script catch a Parse Error? The script hasn't started because there is, ummm, a Parse Error! :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ ph

Re: [PHP] error reporting

2003-10-16 Thread daniel
on the topic of error reporting, am i able to catch fatal/parse errors yet ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Offering files from below the webroot

2003-10-16 Thread Ryan A
Hi, this has been discussed before on the list but am unable to find it on http://marc.theaimsgroup.com/?l=php-general If anybody can point me to the correct URL or tell me how you did it I would really appreciate it. Problems simple: offer downloads from below the webroot, something like: somsite

Re: [PHP] using ImageGIF

2003-10-16 Thread Louie Miranda
yes, thanks for the information. Is there any other similar types like gd that can create gif's? -- - Louie Miranda http://www.axishift.com - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "Louie Miranda" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 1

Re: [PHP] using ImageGIF

2003-10-16 Thread Louie Miranda
And here's the error [Fri Oct 17 10:52:20 2003] [error] PHP Fatal error: Call to undefined function: imagegif() in /Volumes/WWW_Root/louie/test.php on line 6 -- - Louie Miranda http://www.axishift.com - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: [PHP] using ImageGIF

2003-10-16 Thread Paul
To my understanding, gif is licensed, therefore its not used in the current gd libraries. I believe the licensing is up in july of 2004, and the support would be reimplemented after then, but not 100% positive. Go head over to the GD website to read more info about gif. --- Louie Miranda <[EMAI

Re: [PHP] SQL injection

2003-10-16 Thread John W. Holmes
Yann Larrivee wrote: Hi i read many thing on sql injection but i just cant sumarize all the information. Most site (PHPadvisory.com, phpsecure.info, other found on google) dont talk to mutch on how to prevent SQL injection. At some place, they mentionned having a badword list, but really in a prod

[PHP] using ImageGIF

2003-10-16 Thread Louie Miranda
Im trying to show gif images on a browser, since on my work. Not all are using Internet explorer on windows. One of my test shows on a Mac OS X 10.1 IE 5.5 the jpeg and png files are not supported and only gif images. I tried this syntax to generate gif files.. --php code-- $im = ImageCreate(2

Re: [PHP] Session cookie issue...

2003-10-16 Thread John W. Holmes
Jake McHenry wrote: Php 4.2.2 and yes, apache 2 You know that's not recommended, right? PHP is not stable with Apache2 yet. Either way, there is a bug with a specific version of PHP and Apache2 that messes up request variables like you are talking about. If you upgrade to the latest or a newer

RE: [PHP] Session cookie issue...

2003-10-16 Thread Jake McHenry
John W. Holmes wrote: > Jake McHenry wrote: >> In my original script, I had the main document using cookies. Now >> that I'm setting up session, when I retrieve the cookie and put it >> in the browser in my original script, I get NTCookie appended to the >> data stored in the original cookie. NTCoo

Re: [PHP] Session cookie issue...

2003-10-16 Thread John W. Holmes
Jake McHenry wrote: In my original script, I had the main document using cookies. Now that I'm setting up session, when I retrieve the cookie and put it in the browser in my original script, I get NTCookie appended to the data stored in the original cookie. NTCookie is what I have the name of the s

[PHP] Re: php site

2003-10-16 Thread Gabriel Peugnet
Answering, I sent a message "Links for PHP." "Kenny Lai" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > hey, does anyone have any good links they use for their php references? > > i'd also like to know how most people approach coding php from an OOP > standpoint -- PHP Gene

[PHP] Links for PHP.

2003-10-16 Thread Gabriel Peugnet
Some body asked for links related to PHP. It's a good idea. Here are some. If some one has more feel free to tell us. PHP Hypertext Preprocessor http://www.php.net/ Build Your Own Database Driven Website Using PHP & MySQL http://www.sitepoint.com/books/phpmysql1/ FAQTs - Knowledge Base - faqts

[PHP] Session cookie issue...

2003-10-16 Thread Jake McHenry
In my original script, I had the main document using cookies. Now that I'm setting up session, when I retrieve the cookie and put it in the browser in my original script, I get NTCookie appended to the data stored in the original cookie. NTCookie is what I have the name of the session cookie set to

[PHP] SQL injection

2003-10-16 Thread Yann Larrivee
Hi i read many thing on sql injection but i just cant sumarize all the information. Most site (PHPadvisory.com, phpsecure.info, other found on google) dont talk to mutch on how to prevent SQL injection. At some place, they mentionned having a badword list, but really in a product description we c

[PHP] Re: [PHP-DB] Re: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread Peter Beckman
On Fri, 17 Oct 2003, BAO RuiXian wrote: > I see you can achieve this by two ways: > > 1. Take out all the inside quotes (single or double) like the following: > > $sql="insert into $table set Name = $_POST[elementName]"; This is bad. Using no quotes MAY work, but it is considered a

[PHP] Re: [PHP-DB] $_POST in MySQL query issue...

2003-10-16 Thread Peter Beckman
On Thu, 16 Oct 2003, Adam Reiswig wrote: > $sql="insert into $table set Name = '$_POST["elementName"]'"; > > Unfortunately this and every other combination I can think of, > combinations of quotes that is, does not work. I believe the source of > the problem is the quotes within quotes within quo

[PHP] Re: $_POST in MySQL query issue...

2003-10-16 Thread Lang Sharpe
> $sql="insert into $table set Name = '$_POST["elementName"]'"; The problem with this is that you need to use curly braces around the variable being substituted in the string. Also use single quotes around the array index. $sql="insert into $table set Name = '{$_POST['elementName']}'"; See the

Re: [PHP] Hanmir I'm gonna kill you, you son of a..........

2003-10-16 Thread Richard Baskett
on 10/16/03 18:35, Ryan A at [EMAIL PROTECTED] wrote: > Has this crap from hanmir started again? > Everytime I post to the list i get that @[EMAIL PROTECTED]@# letter from there > telling me > his mailbox if full. > Nearly every 2 weeks the mods kick the SOB out but he or someone else from > that

[PHP] Hanmir I'm gonna kill you, you son of a..........

2003-10-16 Thread Ryan A
Has this crap from hanmir started again? Everytime I post to the list i get that @[EMAIL PROTECTED]@# letter from there telling me his mailbox if full. Nearly every 2 weeks the mods kick the SOB out but he or someone else from that damn domain comes bouncing right back in Its really p155ing m

Re: [PHP] Weird results for 2 lines of damn code

2003-10-16 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hi everyone, > This "very simple" program is driving me nuts, heres what i am doing: > 1.making a timestamp with the current time. > 2.reading from the timestamp and trying to "render" the date again > > $ryan=strtotime ("now"); echo $ryan.""; > echo strf

[PHP] Chris->[PHP] Re: Weird results for 2 lines of damn code

2003-10-16 Thread Ryan A
Hey Chris, Thanks for replying. Its certainly weird how its working with you, it should have worked with me too as I did that example straight out of the manual (slightly modified to suit my needs) Anyway, here is a solution sent to me by Jon from the list which works great, might work with your

Re[2]: [PHP] preg help please :)

2003-10-16 Thread Tom Rogers
Hi, Friday, October 17, 2003, 10:26:40 AM, you wrote: JF> On Thursday, October 16, 2003, at 04:32 PM, Eugene Lee wrote: >> Try inverting the greediness with a "U" pattern modifier: >> >> "/$quote(.*)$quote:$quote(.*)$quote/U" >> >> For more details: >> >> http://www.php.net/manual/en/p

[PHP] Re: Weird results for 2 lines of damn code

2003-10-16 Thread Ryan A
Hey, Thanks, it works!! >Replace %G _with_ %Y cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_POST in MySQL query issue...

2003-10-16 Thread Jon Kriek
I concur, assign the superglobal array to a variable ... $table= 'elements'; $Name = mysql_escape_string($_POST['elementName']); $sql = "INSERT INTO $table SET Name= '$Name'"; ... then use that opportunity to run a check on the output. -- Jon Kriek http://phpfreaks.com -- PHP General M

Re: [PHP] Weird results for 2 lines of damn code

2003-10-16 Thread Chris Wanstrath
Hey Ryan, Just did a straight copy and paste of your code into a php page on my server. CODE: $ryan=strtotime ("now"); echo $ryan.""; echo strftime("%G-%m-%a %H:%M:%S", $ryan).""; RESULT: 1066353488 2003-10-Thu 21:18:08 Seems to work fine for me...This seems to be a deeper problem than your code

[PHP] Re: $_POST in MySQL query issue...

2003-10-16 Thread DvDmanDT
$sql="insert into $table set Name = '".$_POST["elementName"]."'"; or even better: $sql="insert into ".$table." set Name = '".$_POST["elementName"]."'"; But the method both Jake and Bao suggested will also work (temporary var)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Adam

[PHP] Re: Weird results for 2 lines of damn code

2003-10-16 Thread Jon Kriek
Replace %G _with_ %Y -- Jon Kriek http://phpfreaks.com "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everyone, > This "very simple" program is driving me nuts, heres what i am doing: > 1.making a timestamp with the current time. > 2.reading from the timestamp and tryi

[PHP] Weird results for 2 lines of damn code

2003-10-16 Thread Ryan A
Hi everyone, This "very simple" program is driving me nuts, heres what i am doing: 1.making a timestamp with the current time. 2.reading from the timestamp and trying to "render" the date again $ryan=strtotime ("now"); echo $ryan.""; echo strftime( "%G-%m-%a %H:%M:%S", $ryan).""; This is the resu

RE: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread Jake McHenry
Adam Reiswig wrote: > Greetings to all. I am trying for the life of me to place a $_POST[] > variable in my MySQL query. I am running the latest stable > versions of > PHP, MySQL and Apache 2 on my Win2kPro machine. My > register_globals are > set to off in my php.ini. My code I am attempting c

Re: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread BAO RuiXian
Adam Reiswig wrote: $table="elements"; $sql="insert into $table set Name = '$elementName'"; This works with register_globals set to on. But, I want to be able to turn that off. My code then, I am guessing, be something as follows: $table="elements"; $sql="insert into $table set Name = '$_POS

Re: [PHP] error reporting

2003-10-16 Thread Richard Baskett
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote: > Richard Baskett wrote: >> If I use: >> >> ini_set("error_reporting", 0); >> ini_set("display_errors", 0); >> >> It still shows the errors.. if I use the error_reporting function.. it still >> shows the errors, no matter what I do..

[PHP] $_POST in MySQL query issue...

2003-10-16 Thread Adam Reiswig
Greetings to all. I am trying for the life of me to place a $_POST[] variable in my MySQL query. I am running the latest stable versions of PHP, MySQL and Apache 2 on my Win2kPro machine. My register_globals are set to off in my php.ini. My code I am attempting create is basically as follow

Re: [PHP] preg help please :)

2003-10-16 Thread Justin French
On Thursday, October 16, 2003, at 04:32 PM, Eugene Lee wrote: Try inverting the greediness with a "U" pattern modifier: "/$quote(.*)$quote:$quote(.*)$quote/U" For more details: http://www.php.net/manual/en/pcre.pattern.modifiers.php Nope -- didn't help sorry... if there's two links in a bl

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Curt Zirzow
* Thus wrote John Herren ([EMAIL PROTECTED]): > If I call a pdf file directly, the Acrobat plugin begins to display the > file almost immediately. Here is the reponse header for calling the file > directly: > Last-Modified: Thu, 16 Oct 2003 17:08:17 GMT > ETag: "94174-341fcb-3f8ed081" > Conten

[PHP] Re: intercepting URLs in a "control-system"

2003-10-16 Thread Cristian Lavaque
http://www.sitepoint.com/article/485 That could have the answer you're looking for. Alan Lord wrote: > Please forgive any obvious ignorances on my part, I am just learning > PHP... > > Having read quite a bit on-line, I am interested in trying to "trap" > URLs sent to my site so I can process

[PHP] imageloadfont() broken?

2003-10-16 Thread Paul
Ok ive spent numerous hours trying to just find one working example of imageloadfont() and i have yet to come across one. Right now im at about the point to hack apart the gd source code to change one of their built in fonts. but id rather not do that. So exactly how does imageloadfont() work,

Re: [PHP] error reporting

2003-10-16 Thread Richard Baskett
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote: > Richard Baskett wrote: >> If I use: >> >> ini_set("error_reporting", 0); >> ini_set("display_errors", 0); >> >> It still shows the errors.. if I use the error_reporting function.. it still >> shows the errors, no matter what I do..

Re: [PHP] error reporting

2003-10-16 Thread John W. Holmes
Richard Baskett wrote: If I use: ini_set("error_reporting", 0); ini_set("display_errors", 0); It still shows the errors.. if I use the error_reporting function.. it still shows the errors, no matter what I do.. it still shows the errors! What am I missing? I have it set in the php,ini to show err

[PHP] error reporting

2003-10-16 Thread Richard Baskett
If I use: ini_set("error_reporting", 0); ini_set("display_errors", 0); It still shows the errors.. if I use the error_reporting function.. it still shows the errors, no matter what I do.. it still shows the errors! What am I missing? I have it set in the php,ini to show errors, but I want to be

Re: [PHP] PHP Date()ing logic.....

2003-10-16 Thread Becoming Digital
If you want to manipulate months in this manner, you'll first need a month input box. Once you've got that covered, it's just a matter of using mktime() to create the appropriate date. Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.a

Re: [PHP] where is my session data on my new server?

2003-10-16 Thread David T-G
Mike -- ...and then Ford, Mike [LSS] said... % % On 14 October 2003 14:45, David T-G wrote: % % > ...and then Ford, Mike [LSS] said... % > % % > % On 14 October 2003 11:26, David T-G wrote: % > % % > % > I ran a phpinfo() comparison and didn't see anything markedly ..

Re: [PHP] converting GET to POST

2003-10-16 Thread Marek Kilimajer
Lee Doolan wrote: Actually, I think that if you do it this way, someone will have to click on the submit button. If you want to redirect with a post, then look in to using the CURL library. Kris wants to redirect the user so CURL library would not work for this. -- PHP General Mailing List (http:

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
Curt Zirzow wrote: * Thus wrote John Herren ([EMAIL PROTECTED]): header("Content-Type: application/pdf"); header("Accept-Ranges: bytes"); header("Content-Length: ".filesize($thefile)); readfile($thefile); Can anybody tell me why the browser is waiting for the entire file before it's displayed(us

Re: [PHP] converting GET to POST

2003-10-16 Thread John Nichel
Lee Doolan wrote: "Marek" == Marek Kilimajer <[EMAIL PROTECTED]> writes: "Kris" == Kris Yates writes: Marek> You can do it this way: Marek> https://www.fake.com/fake.php";> Marek> Marek> Marek> Actually, I think that if you do it this way, someone will have to click on the

Re: [PHP] converting GET to POST

2003-10-16 Thread Lee Doolan
> "Marek" == Marek Kilimajer <[EMAIL PROTECTED]> writes: > "Kris" == Kris Yates writes: Marek> You can do it this way: Marek> https://www.fake.com/fake.php";> Marek> Marek> Marek> Actually, I think that if you do it this way, someone will have to click on the submit

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Curt Zirzow
* Thus wrote John Herren ([EMAIL PROTECTED]): > > header("Content-Type: application/pdf"); > header("Accept-Ranges: bytes"); > header("Content-Length: ".filesize($thefile)); > readfile($thefile); > > Can anybody tell me why the browser is waiting for the entire file > before it's displayed(using

Re: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Marek Kilimajer
Another option besides mod_rewrite is ErrorDocument directive in .htaccess: ErrorDocument 404 404.php In 404.php you trap the request, url will be in $_SERVER['REQUEST_URI'] Alan Lord wrote: Please forgive any obvious ignorances on my part, I am just learning PHP... Having read quite a bit on-l

Re: [PHP] php site

2003-10-16 Thread Becoming Digital
The object-oriented design is part of why I like InterJinn so much. Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Lai,

RE: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Chris W. Parker
Alan Lord on Thursday, October 16, 2003 1:40 PM said: > Having read quite a bit on-line, I am interested in trying to "trap" > URLs sent to my site so I can process the request and respond without > neccessarily having a "real" page to serve. If this makes any sense,

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
OK, here's a different problem. If I call a pdf file directly, the Acrobat plugin begins to display the file almost immediately. Here is the reponse header for calling the file directly: HTTP/1.1 200 OK Date: Thu, 16 Oct 2003 20:41:28 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.

Re: [PHP] Alternative to die()????

2003-10-16 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > I am wondering if there is an better alternative to the die() > > because it prevent the HTML codes from being send to the browser, > > including some php echo codes with HTML in it. > > Please exp

Re: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Ray Hunter
> Having read quite a bit on-line, I am interested in trying to "trap" URLs > sent to my site so I can process the request and respond without > neccessarily having a "real" page to serve. If this makes any sense, how do > I do it? Because I expect that apache (in my case) would not like a URL tha

Re: [PHP] Regular Expressions

2003-10-16 Thread Curt Zirzow
* Thus wrote Shmuel ([EMAIL PROTECTED]): > Eugene Lee wrote: > >On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: > >: > >: I have a misspelled sentence like this: "I am not aIone". > >: I want to change the capital I to small l, but only in > >: the beginning of a word. > > > >This doesn't

Re: [PHP] converting GET to POST

2003-10-16 Thread Marek Kilimajer
You can do it this way: https://www.fake.com/fake.php";> Kris Yates wrote: Currently, I am posting via GET to third party server as seen below: $item=urlencode($item); header("Location: https://www.fake.com/fake.php?item=$item";); I want to reconfigure my header calls to POST instead of

[PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Alan Lord
Please forgive any obvious ignorances on my part, I am just learning PHP... Having read quite a bit on-line, I am interested in trying to "trap" URLs sent to my site so I can process the request and respond without neccessarily having a "real" page to serve. If this makes any sense, how do I do it

Re: [PHP] converting GET to POST

2003-10-16 Thread Chris Shiflett
--- Kris Yates <[EMAIL PROTECTED]> wrote: > Currently, I am posting via GET to third party server as seen below: > > $item=urlencode($item); > header("Location: https://www.fake.com/fake.php?item=$item";); > > I want to reconfigure my header calls to POST instead of using GET > for sendin

[PHP] converting GET to POST

2003-10-16 Thread Kris Yates
Currently, I am posting via GET to third party server as seen below: $item=urlencode($item); header("Location: https://www.fake.com/fake.php?item=$item";); I want to reconfigure my header calls to POST instead of using GET for sending $item to third party server. Is this doable? Thank you

RE: [PHP] HTML output buffering

2003-10-16 Thread Robin Kopetzky
Thank you for responding - Doh! I didn't look before leaping "Oh, boy..." Sparky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML output buffering

2003-10-16 Thread Marek Kilimajer
Yes! And surprisingly it is called output buffering. Search the manual before you post. Robin Kopetzky wrote: Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Robin 'Sparky' Kopetzky Black Mesa Computers/Interne

Re: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Bob Rea
At 02:35 PM 10/16/2003 -0400, Brent Baisley wrote: craigslist.org is a popular spot to post requests for projects, jobs or assistance. If you want official bidding and management assistance, eWork.com is a site I've used before as a bidder. www.webhostingtalk.com has specific forums for discussio

Re: [PHP] HTML output buffering

2003-10-16 Thread CPT John W. Holmes
From: "Robin Kopetzky" <[EMAIL PROTECTED]> > Is there a simple way to have PHP buffer all HTML output via echo/print > until the program flushes the output buffer?? You can buffer the output yourself using the output buffering functions. Is that what you're looking for? More info: http://us2.php

Re: [PHP] HTML output buffering

2003-10-16 Thread Mohamed Lrhazi
On Thu, 2003-10-16 at 15:50, Robin Kopetzky wrote: > Good afternoon! > > Is there a simple way to have PHP buffer all HTML output via echo/print > until the program flushes the output buffer?? > http://us2.php.net/manual/en/ref.outcontrol.php -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] HTML output buffering

2003-10-16 Thread Chris Shiflett
--- Robin Kopetzky <[EMAIL PROTECTED]> wrote: > Is there a simple way to have PHP buffer all HTML output via > echo/print until the program flushes the output buffer?? Yes, output buffering: http://www.php.net/ob_start Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Develop

[PHP] HTML output buffering

2003-10-16 Thread Robin Kopetzky
Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] PHP Date()ing logic.....

2003-10-16 Thread Ryan A
Hi, I'm just screwing around with the date() function and timestamps but have run into a little logic problem... So far (as you can see with the below posted code) I can manipulate days,hours and minutes...any idea on how to do months and years? Lastly the goal of this is to make take all the param

Re: [PHP] Regular Expressions

2003-10-16 Thread Eugene Lee
On Thu, Oct 16, 2003 at 09:41:39PM +0300, Shmuel wrote: : Eugene Lee wrote: : >On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : >: : >: I have a misspelled sentence like this: "I am not aIone". : >: I want to change the capital I to small l, but only in : >: the beginning of a word. : > :

[PHP] Re: mozilla

2003-10-16 Thread Jay Smith
Joseph Bannon wrote: > Does IE use mozilla? I'm writing a PHP script to keep track of user > agents. > > J. Have you tried using the get_browser() function? Take a look at it, it'll make keeping track of user agents must easier. (It was recently given a facelift in PHP 4.3.3, so try to use that.

Re: [PHP] Alternative to die()????

2003-10-16 Thread Robert Cummings
On Thu, 2003-10-16 at 14:44, Scott Fletcher wrote: > I am wondering if there is an better alternative to the die() because it > prevent the HTML codes from being send to the browser, including some php > echo codes with HTML in it. You can use exit() Cheers, Rob. -- .

Re: [PHP] Alternative to die()????

2003-10-16 Thread Leif K-Brooks
Scott Fletcher wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. If you don't want the page to end, don't use die at all. Simple as that. -- The above message is

Re: [PHP] Alternative to die()????

2003-10-16 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I am wondering if there is an better alternative to the die() > because it prevent the HTML codes from being send to the browser, > including some php echo codes with HTML in it. Please explain what you're wanting to do. This question makes as much s

[PHP] Re: mozilla

2003-10-16 Thread Scott Fletcher
Later version of IE will display the Mozilla in the user agent coding So, PHP or JavaScript user agent stuffs is pretty useless Mozilla can also pretent to be a different browser, like Opera or IE, etc.. Scott F. "Joseph Bannon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Regular Expressions

2003-10-16 Thread Shmuel
Eugene Lee wrote: On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : I have a misspelled sentence like this: "I am not aIone". : I want to change the capital I to small l, but only in : the beginning of a word. This doesn't make sense. It sounds like you want to replace every occurance

[PHP] Alternative to die()????

2003-10-16 Thread Scott Fletcher
I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. Thanks.. Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Brent Baisley
craigslist.org is a popular spot to post requests for projects, jobs or assistance. If you want official bidding and management assistance, eWork.com is a site I've used before as a bidder. On Thursday, October 16, 2003, at 02:21 PM, Joseph Bannon wrote: Are there any sites I can post a bid req

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Scott Fletcher
IE just don't work depending on some of the IE's version because of the IE's countless bugs. So, a different method of controlling the data output to the browser is needed. That's when I use the fopen() stuffs and it solve the problem. It is evident by reduced customer's calling tech support (us

RE: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Didier McGillis
I've asked for help and replied to help, but try and do the answer back off list. From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Joseph Bannon" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: RE: [PHP] Looking for a programmer & designer to hire Date: Thu, 16 Oct 2003 11:26:55 -0700 Joseph

Re: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread John Nichel
Joseph Bannon wrote: Are there any sites I can post a bid request for programmers and graphic designers? J. There's Rent-A-Coder (http://www.rentacoder.com/RentACoder/default.asp) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Dan Joseph
www.itmoonlighter.com -Dan Joseph > Are there any sites I can post a bid request for programmers and > graphic designers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Chris W. Parker
Joseph Bannon on Thursday, October 16, 2003 11:22 AM said: > Are there any sites I can post a bid request for programmers and > graphic designers? I've seen requests posted to this list in the past and not heard anyone complain (that I can remember). So it should b

[PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Joseph Bannon
Are there any sites I can post a bid request for programmers and graphic designers? J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Jake McHenry
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 16, 2003 8:36 AM Subject: [PHP] Sessions.. (I'm learning), can't call a variable? > Not sure if this is a MySQL Q. or a PHP one, but here goes... > > I'm just learning sessions... > And I'm tr

Re: [PHP] Slow searches in large database

2003-10-16 Thread Cesar Cordovez
Curt, et al: You just described my procedure! I do exacly that, plus, I also save a soundex or metaphone code for each word so I can check spelling and closest matches. Cesar. Curt Zirzow wrote: Instead of just adding a word to table of words, you add a field that holds the qty of times it ap

Re: [PHP] Slow searches in large database

2003-10-16 Thread Cesar Cordovez
Manu, et al, The database in alenet.com is rather tiny (about 28 docs, as you mentioned). I developed the procedure for a intranet with some 5000 records. It is working fine. It has some 20+ clients that are constantly hitting the database. The server is a desktop (nothing out of the ordin

Re: [PHP] How do you keep browser from timing out during lengthy process

2003-10-16 Thread Rory McKinley
James Courtesy of a site called "Freshwater Software": To change the timeout value that Internet Explorer uses: 1. Start the Registry Editor 2. Go to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ InternetSettings 3. Select New > DWORD from the Edit menu 4. Call it Receive

RE: [PHP] nested require_once

2003-10-16 Thread Chris W. Parker
Craig Lonsbury on Thursday, October 16, 2003 9:45 AM said: > I know this seems to be exactly what the whole 'once' part is about, > but better safe than sorry. That is correct. It only includes the file once regardless of how many times the file is requested within

Re: [PHP] mozilla

2003-10-16 Thread Chris Shiflett
--- Joseph Bannon <[EMAIL PROTECTED]> wrote: > Does IE use mozilla? No. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] nested require_once

2003-10-16 Thread Craig Lonsbury
Hi All, I just wanted to confirm that require_once works as I think it should, but the manual isn't too clear about nesting scripts (or i'm just thick =). What I think is/should be happening is that dbLib.ink is only included in index.php once, but when I run helperLib.php on its own, it has dbLib

  1   2   >