[PHP] Re: Location header does not work?

2004-08-03 Thread Nadim Attari
just suggesting... try this: if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid == 162) { session_write_close(); header("Refresh:0; url=https://computing.eng.iastate.edu/mambo/index.php?option=content&task=vi ew&id=159&Itemid=162"); exit; } let us know whether it

[PHP] RE: mysql_connect and PHP 5.0

2004-08-03 Thread Michael Purdy
Have you enabled MYSQL support by removing the semi-colon in front of the extension DLL in the php.ini file? Mike

[PHP] mysql_connect and PHP 5.0

2004-08-03 Thread Michael Marold
I've installed MySQL 5.0 with Apache 2.0.50. Before, I had running MySQL 4.3.3 and 2.0.47 and a Picturegalerie. After migrating to 5.0 i get this error: Call to undefined function mysql_connect() in D:\kreiszner\galerie\includes\db_mysql.php on line 39 This is line 39 and 40: if

[PHP] POST superglobal is empty

2004-08-03 Thread Andy Loftus
Does anyone have any ideas as to why $_POST would be empty when submitting a form to php? I am running PHP5 as CGI in apache 1.3.22 on redhat linux. I've also tried php4.3.8 CGI (same php configuration and .ini file) and I get the same behavior. When I submit an html form with method=post, the $

RE: [PHP] javascript type cast OT

2004-08-03 Thread Ed Lazor
> -Original Message- > Was just wondering... Can you compile php with javascript support on a > Game Boy? Lol Nope, javascript is client-side and not part of PHP :P -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Easy Question (I think)

2004-08-03 Thread Robert Cummings
On Tue, 2004-08-03 at 23:25, Robert Frame wrote: > I am sure this is an obvious answer, but dang if I could find it. > > How do you chop off a decimal value in PHP? I know I can do it using a > combination of modulus, subtraction and division, but isn't there a function > that does this? I think

RE: [PHP] Easy Question (I think)

2004-08-03 Thread Richard Bewley
Are you looking for the round function? $number = "4.3392"; $number = round($number); - Thank you, Richard Bewley [EMAIL PROTECTED] Equinox Systems and Development Website: http://www.eq-dev.com/ Also, please look at our webhost

[PHP] Easy Question (I think)

2004-08-03 Thread Robert Frame
I am sure this is an obvious answer, but dang if I could find it. How do you chop off a decimal value in PHP? I know I can do it using a combination of modulus, subtraction and division, but isn't there a function that does this? I think I am suffering from a giant mental block =) -- PHP Gener

Re: [PHP] smarty and db

2004-08-03 Thread John Holmes
Amanda Hemmerich wrote: ANyway, I need to change the code so that, when there are no row returned by the database, a message is displayed saying, "There are no events scheduled." or what have you. [snip] (in the PHP page) $events = $db->getAll($sql_events, DB_FETCHMODE_ASSOC); $tpl->assign("events"

[PHP] HOWTO run PHP4 and PHP5 on Apache/Linux

2004-08-03 Thread AJL
I ran into so many problems trying to set this up that I thought I'd post my notes to hopefully save others some trouble. I found most of the information I needed at: http://rayh.co.uk/archives/13_PHP5__PHP4_side_by_side.html but the link doesn't seem to be working anymore, so here are my notes.

[PHP] problem with php script

2004-08-03 Thread asolomon15
Hello everyone I have a problem with this php script that gives this error *Fatal error*: Unsupported operand types in */usr/local/www/data-dist/brisk/php/classes/PageContent.php* on line *64 here is the part of the code that gives the error $this->currentWebPageCount += 1; $this->previousPage -=

RE: [PHP] javascript type cast OT

2004-08-03 Thread Alex Hogan
[snip] Perhaps we need a: Subject: [Elite Guide] for the seasoned php poster. Post everyweek :) Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! [/snip] I don't care who you are that's funny r

Re: [PHP] Query Results Question - Solved

2004-08-03 Thread Harlequin
I know what's going to happen though Richard. I'll dump it in their site and it'll look terrible because they don't know how to use CSS effectively. But hey - that's part of the fun. Hyperlinks tomorrow though :| -- - Michael Mason Arras People www.arraspeople.co.u

RE: [PHP] Order by

2004-08-03 Thread Karl-Heinz Schulz
Thank you for your help! -Original Message- From: Jim Grill [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 10:33 PM To: Karl-Heinz Schulz; [EMAIL PROTECTED] Subject: Re: [PHP] Order by - Original Message - From: "Karl-Heinz Schulz" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

RE: [PHP] Query Results Question - Solved

2004-08-03 Thread Richard Bewley
Looks good :) - Thank you, Richard Bewley [EMAIL PROTECTED] Equinox Systems and Development Website: http://www.eq-dev.com/ Also, please look at our webhosting services, specializing in business web hosting starting from $15 per

Re: [PHP] Order by

2004-08-03 Thread Jim Grill
- Original Message - From: "Karl-Heinz Schulz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 03, 2004 9:19 PM Subject: [PHP] Order by > How can I use the "Order" statement for this query? > > $specs_query = mysql_query("select title, information from spec where > prod

Re: [PHP] Order by

2004-08-03 Thread Wesley Furgiuele
Looks like you just forgot some quotes: $specs_query = mysql_query( "select title, information from spec where product=".$id." order by id asc" ); Or just move your quotes to the end -- I think you should be fine: $specs_query = mysql_query( "select title, information from spec where product = $

Re: [PHP] Query Results Question - Solved

2004-08-03 Thread Harlequin
Many thanks Richard. I have the table presenting neatly now, thanks for all your help with this one...! -- - Michael Mason Arras People www.arraspeople.co.uk - "Richard Bewley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

RE: [PHP] Order by

2004-08-03 Thread Karl-Heinz Schulz
Thank you - stupid me -Original Message- From: Wesley Furgiuele [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 10:27 PM To: Karl-Heinz Schulz Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Order by Looks like you just forgot some quotes: $specs_query = mysql_query( "select title, inf

Re: [PHP] Order by

2004-08-03 Thread Jake McHenry
- Original Message - From: "Karl-Heinz Schulz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 03, 2004 10:19 PM Subject: [PHP] Order by > $specs_query = mysql_query("select title, information from spec where > product=".$id order by id asc); > > But it will create the

[PHP] Order by

2004-08-03 Thread Karl-Heinz Schulz
How can I use the "Order" statement for this query? $specs_query = mysql_query("select title, information from spec where product=".$id); I tried to use $specs_query = mysql_query("select title, information from spec where product=".$id order by id asc); But it will create the error. Parse e

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Curt. Thanks for the pointer and yes, I should be doing that and overlooked it this time. It's working now as I seem to be echoing the second record in the table and will plug away at getting the table defined. Thanks for all your help Curt. -- - Michael Mason Arr

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
> I'm only selecting a few fields Richard as I want to try and drop them into an array and display in a table. > I know I'm probably going the long way around doing this but I need to learn from scratch exactly how to do it. > I appreciate your help and patience very much. > I've managed to get

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
I'm only selecting a few fields Richard as I want to try and drop them into an array and display in a table. I know I'm probably going the long way around doing this but I need to learn from scratch exactly how to do it. I appreciate your help and patience very much. I've managed to get the quer

Re: [PHP] Query Results Question

2004-08-03 Thread Curt Zirzow
* Thus wrote Harlequin: > Richard > > Thanks firstly for your help. I renamed the fields so the spaces are > underscores and amended your query but still receive an error: > > "not a valid MySQL result resource " > > Still tinkering though... All this tinkering and database schema's are simply

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
> Richard. > Public. I changed it to "Publish". > But if I use a query window to interrogate the database I still get just two rows using the following query with field names not values for the row cell contents: > SELECT 'ID','Vacancy_Role','Vacancy_Salary','Vacancy_Location','Vacancy_Type' F

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Richard. Public. I changed it to "Publish". But if I use a query window to interrogate the database I still get just two rows using the following query with field names not values for the row cell contents: SELECT 'ID','Vacancy_Role','Vacancy_Salary','Vacancy_Location','Vacancy_Type' FROM vaca

RE: [PHP] RSS / eregi_replace()

2004-08-03 Thread Richard Bewley
* Thus wrote Anthony Ritter: > Greetings, > > I'm using an RSS feed from the New York Times and right now the a href link > takes the user to the same window. > > I'd like the link to open in it's own window by using the target .html > attribute. > > I was hoping that I could use the eregi_repla

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
> Richard > Thanks firstly for your help. I renamed the fields so the spaces are underscores and amended your query but still receive an error: > "not a valid MySQL result resource " > Still tinkering though... Can you paste me a.) Your database structure b.) The exact query you are using Als

Re: [PHP] RSS / eregi_replace()

2004-08-03 Thread Anthony Ritter
Justin Patrin <[EMAIL PROTECTED]> wrote in message: > Thanks, lots of good info here. It's nice to have all of the info at once. > > I don't know about eregs myself, but I'll try a preg solution: > > $new_text = preg_replace('!(.*?)!', ' target="_blank">\1', $text); Thank you. I tried th

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Richard Thanks firstly for your help. I renamed the fields so the spaces are underscores and amended your query but still receive an error: "not a valid MySQL result resource " Still tinkering though... -- - Michael Mason Arras People www.arraspeople.co.uk --

Re: [PHP] Query Results Question

2004-08-03 Thread Curt Zirzow
* Thus wrote Harlequin: > I have the following query which should return just two rows: > > SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy > Type' > FROM vacancy_details > WHERE Publish = 'Yes' > > As only two rows have Publish set to "Yes". > > yet even if I exe

RE: [PHP] Query Results Question

2004-08-03 Thread Richard Bewley
Hi, Take the spaces out of your field names, and then use this: - Thank you, Richard Bewley [EMAIL PROTECTED] Equinox Systems and Development Website: http://www.eq-dev.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] RSS / eregi_replace()

2004-08-03 Thread Curt Zirzow
* Thus wrote Anthony Ritter: > Greetings, > > I'm using an RSS feed from the New York Times and right now the a href link > takes the user to the same window. > > I'd like the link to open in it's own window by using the target .html > attribute. > > I was hoping that I could use the eregi_repla

[PHP] Query Results Question

2004-08-03 Thread Harlequin
I have the following query which should return just two rows: SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy Type' FROM vacancy_details WHERE Publish = 'Yes' As only two rows have Publish set to "Yes". yet even if I execute the query through phpMyAdmin I get two

RE: [PHP] Manipulate web content

2004-08-03 Thread Richard Bewley
> $html = file_get_contents('http://www.yahoo,com'); Thanks! It works perfectly. - Thank you, Richard Bewley [EMAIL PROTECTED] Equinox Systems and Development Website: http://www.eq-dev.com/ Also, please look at our webhosting

Re: [PHP] Manipulate web content

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 20:00:56 -0400, Richard Bewley <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to do some work that involves parsing through the HTML of > some webpages. But, I cannot find an easy way in PHP to actually get that > HTML. Say, for example, I need the HTML returned from > htt

[PHP] Manipulate web content

2004-08-03 Thread Richard Bewley
Hi, I am trying to do some work that involves parsing through the HTML of some webpages. But, I cannot find an easy way in PHP to actually get that HTML. Say, for example, I need the HTML returned from http://www.yahoo.com/, I tried doing an fopen(), but the only way I can do it is if I use

Re: [PHP] I need ob_write($string, $start, $length)

2004-08-03 Thread jtl_phpdotnet
Another way to provide this ob_write() feature is to give me a start offset on fwrite(), as in: fwrite($handle, $string, $length, $stringStartOffset) ~joe P.S. I think I see why the internals group sent me here. I didn't know about the handle-based stream functions, but looking over them they

Re: [PHP] javascript type cast OT

2004-08-03 Thread Jim Grill
Was just wondering... Can you compile php with javascript support on a Game Boy? lol Is it ok to just filter out this subject to deleted items now??? Jim Grill - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 03, 2004 5:58 PM Su

Re: [PHP] I need ob_write($string, $start, $length)

2004-08-03 Thread Justin Patrin
On Mon, 02 Aug 2004 23:58:58 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The guys in the internals list sent me to this forum. > > I am trying to write some serious parsing software in PHP. I need to use plain, > vanilla PHP and no add-on modules, because I need to be able to distribut

Re: [PHP] Handles for multiple output buffers?

2004-08-03 Thread jtl_phpdotnet
Hi again Curt, On 8/3/2004 Curt Zirzow wrote: >You may be seeking: http://php.net/stream-wrapper-register > >With the example listed, you can have as many buffers as you >please. Yeah, I could do what I'm already doing by implementing the interface you pointed me to. The problem is that stdout

Re: [PHP] I need ob_write($string, $start, $length)

2004-08-03 Thread jtl_phpdotnet
Hi Curt, You could use a function of the name and signature you gave, but if you implement it in PHP, you're still creating the substring objects that I don't want created. Notice your call to substr(). Object creation is expensive. If the function were implemented natively, the language nee

Re: [PHP] RSS / eregi_replace()

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 18:36:02 -0400, Anthony Ritter <[EMAIL PROTECTED]> wrote: > Greetings, > > I'm using an RSS feed from the New York Times and right now the a href link > takes the user to the same window. > > I'd like the link to open in it's own window by using the target .html > attribute. >

Re: [PHP] javascript type cast OT

2004-08-03 Thread Curt Zirzow
* Thus wrote Alex Hogan: > > Hmmm, you should see the C++ newsgroup(s). > > Point taken... > > > Common and well established list courtesies established years > > ago are expected to be suspended herewhy? > > Nope and that's wasn't my point. My point was temperance. > > > Having said tha

[PHP] RSS / eregi_replace()

2004-08-03 Thread Anthony Ritter
Greetings, I'm using an RSS feed from the New York Times and right now the a href link takes the user to the same window. I'd like the link to open in it's own window by using the target .html attribute. I was hoping that I could use the eregi_replace() call by inserting: http://\\0";>target="_

[PHP] Re: [tcphp] alternating highlights

2004-08-03 Thread Josh Close
This is very simple actually That was very quick, but I hope it helps. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + FDF and Opera

2004-08-03 Thread Curt Zirzow
* Thus wrote Nicklas Bondesson: > The code should go like this. > > fdf_header(); > $outfdf = fdf_create(); > fdf_set_value($outfdf, "our_ref", $our_ref, 0); > fdf_set_value($outfdf, "your_ref", $your_ref, 0); > fdf_set_file($outfdf, "http://xxx/test.pdf";); > fdf_save($outfdf); > fdf_close($outfd

[PHP] XML Breaking Help!

2004-08-03 Thread Gerard Samuel
Im parsing a document, and its stopping prematurely. I get this error -> not well-formed (invalid token) Its breaking on the word -> Exposé in the document. Is the "é" an illegal character? Any ideas how to work around this??? Thanks for any pointers... -- PHP General Mailing List (http://www.p

RE: [PHP] PHP + FDF and Opera

2004-08-03 Thread Nicklas Bondesson
The code should go like this. fdf_header(); $outfdf = fdf_create(); fdf_set_value($outfdf, "our_ref", $our_ref, 0); fdf_set_value($outfdf, "your_ref", $your_ref, 0); fdf_set_file($outfdf, "http://xxx/test.pdf";); fdf_save($outfdf); fdf_close($outfdf); Nicke -Original Message- From: Nickl

FW: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
> -Original Message- > From: Ed Lazor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 2:33 PM > To: 'Bing Du' > Subject: RE: [PHP] Location header does not work? > > I tried the https address and it lagged badly on me as well. It did > eventually display, so I looked at the s

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Another note: I code for globals off. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M > <[EMAIL PROTECTED]> wrote: > > It has a preg_match in there that looks for \$variable = blah; > > > > I cant help that a file wor

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Globals are off, Magic_quotes are off The file is the same I cant use include with a preg_replace (I replace X with file_get_contents blah because if I dont then the file thats included wont be included in place of the replaced variable, it will be included on the top of the page and not where its

Re: [PHP] Location header does not work?

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > The latest message I got was 'Redirection limit for this URL exceeded. > Unable to load the requested page.This may be caused by cookies that are > blocked.'. > Your page is redirecting you over and over again. Your pro

Re: [PHP] Location header does not work?

2004-08-03 Thread Matthew Sims
> The latest message I got was 'Redirection limit for this URL exceeded. > Unable to load the requested page.This may be caused by cookies that are > blocked.'. > > Bing > Correct me if I'm wrong but I think this is an Apache error. -- --Matthew Sims -- -- PHP General

Re: [PHP] Location header does not work?

2004-08-03 Thread Monty
Do you have a valid and functioning SSL certificate on the IP that points to your "iastate.edu" domain? Have you tried deleting all sites cookies and auto-login passwords that your browser stores, then retrying? Are you using pop-up blocker software? Does this happen on ALL browsers, or just Net

[PHP] PHP + FDF and Opera

2004-08-03 Thread Nicklas Bondesson
Hi! Have anyone sucessfully used the FDF functionallity together with the Opera browser? This code works like a charm in IE6 but not in Opera. fdf_header(); $outfdf = fdf_create(); fdf_set_value($outfdf, "our_ref", $our_ref, 0); fdf_set_value($outfdf, "your_ref", $your_ref, 0); fdf_set_f

Re: [PHP] javascript type cast

2004-08-03 Thread Justin Patrin
On Tue, 03 Aug 2004 16:21:00 -0400, Monty <[EMAIL PROTECTED]> wrote: > Well, all I have to say is thank god for this newsgroup and the core group > of people who answer most of the questions here. I can understand some > crankiness now and then after answering the same questions over and over or >

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M <[EMAIL PROTECTED]> wrote: > It has a preg_match in there that looks for \$variable = blah; > > I cant help that a file works without Eval, and then to eval it, it messes > it up... And why again are you using *eval* on a file? Why not include('fi

RE: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
Oops... forgot to add https Header("Location: https://"; . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); > -Original Message- > From: Ed Lazor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 1:36 PM > To: 'John Nichel'; 'Bing Du'; '[EMAIL PROTECTED]' > Subject: RE: [PHP]

RE: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
header("Location: " . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 12:59 PM > To: Bing Du; [EMAIL PROTECTED] > Subject: Re: [PHP] Location header does not work? > > On Tuesday 03 Augu

Re: [PHP] running a script

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 16:29, Ed Lazor offered up the following tid-bit of information : > > -Original Message- > > If you have register_globals on, you can access it via $id, otherwise > > use $_GET['id'] > > Or $_POST['id'] if you're receiving data from a form (ie. > processForm.php).

Re: [PHP] Location header does not work?

2004-08-03 Thread Bing Du
The latest message I got was 'Redirection limit for this URL exceeded. Unable to load the requested page.This may be caused by cookies that are blocked.'. Bing > On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-bit > of > information : >> I've been struggling with this redire

RE: [PHP] running a script

2004-08-03 Thread Ed Lazor
> -Original Message- > If you have register_globals on, you can access it via $id, otherwise use > $_GET['id'] Or $_POST['id'] if you're receiving data from a form (ie. processForm.php). -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] smarty and db

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 14:21:45 -0500 (EST), Amanda Hemmerich <[EMAIL PROTECTED]> wrote: > Ok, I am starting a new job and learning a new person's code, and trying > to learn Smarty at the same time. > > This question is so basic, but I have no idea where to look for an answer. > > ANyway, I need to

Re: [PHP] javascript type cast

2004-08-03 Thread Monty
Well, all I have to say is thank god for this newsgroup and the core group of people who answer most of the questions here. I can understand some crankiness now and then after answering the same questions over and over or dealing with people who don't read the online manual and come here to post fi

Re: [PHP] Location header does not work?

2004-08-03 Thread Matthew Sims
> I've been struggling with this redirect thing for a while but still cannot > get it work. I'm desperately needing help, please. > > What I want to do is redirect > http://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162 > to > https://computing.eng.iastate.edu

Re: [PHP] running a script

2004-08-03 Thread Matthew Sims
> Thanks for the tips. > > After clicking http://www.mydomain.com/processForm.php?id= is > 'id' > a variable containing 'some id'. Can I access that by '$id' > > I am just trying to figure out how to write the SELECT statement for that > script. I am guessing, but I would do: > "SELECT * FROM

Re: [PHP] Location header does not work?

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 03:41, Bing Du wrote: > == > if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid == > 162) > { > session_write_close(); > header("Location: > https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&; >id=159&Itemid=162"

Re: [PHP] Location header does not work?

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-bit of information : > I've been struggling with this redirect thing for a while but still > cannot get it work. I'm desperately needing help, please. > > What I want to do is redirect > http://computing.eng.iastate.edu/mambo/i

Re: [PHP] running a script

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:24, Aaron Todd offered up the following tid-bit of information : > Thanks for the tips. > > After clicking http://www.mydomain.com/processForm.php?id= is > 'id' a variable containing 'some id'. Can I access that by '$id' > > I am just trying to figure out how to write

RE: [PHP] javascript type cast OT

2004-08-03 Thread Jay Blanchard
[snip] ... flame on and on and on and on ... [/snip] It must be the heat :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] javascript type cast OT

2004-08-03 Thread Ed Lazor
The person starting this thread has been flogged. The flogger has been flogged. The flogging floggers flogger has been flogged. And now, back to the further adventures of PHP... Hint: please kill lame thread > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent:

Re: [PHP] javascript type cast OT

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:38, Josh Close offered up the following tid-bit of information : > On Tue, 3 Aug 2004 15:30:20 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > > On Tuesday 03 August 2004 14:54, Alex Hogan offered up the following > > tid-bit > > > > of information : > > > However ther

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Also, variables do not get passed correctly from the engine to the evaluated pages. "Josh Acecool M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It has a preg_match in there that looks for \$variable = blah; > > I cant help that a file works without Eval, and then to eval it, it

[PHP] Location header does not work?

2004-08-03 Thread Bing Du
I've been struggling with this redirect thing for a while but still cannot get it work. I'm desperately needing help, please. What I want to do is redirect http://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162 to https://computing.eng.iastate.edu/mambo/index.

Re: [PHP] running a script

2004-08-03 Thread Aaron Todd
Thanks for the tips. After clicking http://www.mydomain.com/processForm.php?id= is 'id' a variable containing 'some id'. Can I access that by '$id' I am just trying to figure out how to write the SELECT statement for that script. I am guessing, but I would do: "SELECT * FROM temp_users WHER

Re: [PHP] javascript type cast OT

2004-08-03 Thread Josh Close
On Tue, 3 Aug 2004 15:30:20 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > On Tuesday 03 August 2004 14:54, Alex Hogan offered up the following tid-bit > of information : > > However there is a difference between list courtesy and blatant > > aggression. I understand that there are going to be mo

Re: [PHP] php5: configure --with-pear but there's no pear?

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:30, Jacob Friis Larsen offered up the following tid-bit of information : > When I do configure --with-pear I would assume that pear would be > available after make install, but it isn't. Any ideas? > > Thanks, > Jacob How is it 'not available'? Did the PEAR directory

Re: [PHP] smarty and db

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:21, Amanda Hemmerich offered up the following tid-bit of information : > Ok, I am starting a new job and learning a new person's code, and trying > to learn Smarty at the same time. > > This question is so basic, but I have no idea where to look for an > answer. > > AN

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
On Tue, 03 Aug 2004 14:15:32 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > > > All I have to say is, sorry I asked. > > OK.., now you're really making me want to take a poke at you. > > You posted off topic, knew it was off topic, you got spanked for it. > > Don't make things worse by whining.

[PHP] php5: configure --with-pear but there's no pear?

2004-08-03 Thread Jacob Friis Larsen
When I do configure --with-pear I would assume that pear would be available after make install, but it isn't. Any ideas? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript type cast OT

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 14:54, Alex Hogan offered up the following tid-bit of information : > However there is a difference between list courtesy and blatant > aggression. I understand that there are going to be more newbie's to > programming here than on most language lists. Does this mean th

[PHP] smarty and db

2004-08-03 Thread Amanda Hemmerich
Ok, I am starting a new job and learning a new person's code, and trying to learn Smarty at the same time. This question is so basic, but I have no idea where to look for an answer. ANyway, I need to change the code so that, when there are no row returned by the database, a message is display

RE: [PHP] javascript type cast

2004-08-03 Thread Alex Hogan
> All I have to say is, sorry I asked. OK.., now you're really making me want to take a poke at you. You posted off topic, knew it was off topic, you got spanked for it. Don't make things worse by whining. alex hogan *

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
It has a preg_match in there that looks for \$variable = blah; I cant help that a file works without Eval, and then to eval it, it messes it up... "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh Acecool M wrote: > > var $The_Template_Sys; > > > > $this -> The_Te

Re: [PHP] javascript type cast

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 02:44, Josh Close wrote: > Being a php list, I thought that a few others would have run into the > same issue while doing this. Would it have made it better if I talked > a little about the php work that was being done on the page also? OT is OT, trying to justify it b

Re: [PHP] javascript type cast

2004-08-03 Thread raditha dissanayake
Josh Close wrote: Ok. I write most my web apps in php. I rarely will use js for anything, but I needed it on this rare occasion. I didn't want to have to post to the same php page to get the results to change, so I though a little js would do the job. Being a php list, I thought that a few others w

Re: [PHP] javascript type cast OT

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 14:39, Jay Blanchard offered up the following tid-bit of information : > [snip] > I have been on a number of lists over the years, as what ever technology > I'm using at the time has demanded. > > I would have to say that this list is one of the most curt and > condescend

Re: [PHP] javascript type cast OT

2004-08-03 Thread raditha dissanayake
Jay Blanchard wrote: [snip] I have been on a number of lists over the years, as what ever technology I'm using at the time has demanded. I would have to say that this list is one of the most curt and condescending lists I've ever been on. [/snip] Having said that I suppose that those of us who a

RE: [PHP] javascript type cast OT

2004-08-03 Thread Alex Hogan
> Hmmm, you should see the C++ newsgroup(s). Point taken... > Common and well established list courtesies established years > ago are expected to be suspended herewhy? Nope and that's wasn't my point. My point was temperance. > Having said that I suppose that those of us who are curt and

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Ok. I write most my web apps in php. I rarely will use js for anything, but I needed it on this rare occasion. I didn't want to have to post to the same php page to get the results to change, so I though a little js would do the job. Being a php list, I thought that a few others would have run int

RE: [PHP] javascript type cast OT

2004-08-03 Thread Jay Blanchard
[snip] I have been on a number of lists over the years, as what ever technology I'm using at the time has demanded. I would have to say that this list is one of the most curt and condescending lists I've ever been on. [/snip] Hmmm, you should see the C++ newsgroup(s). Actually I would have to

RE: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Ed Lazor
Check out strtotime in the PHP manual. It gives a few examples of how to use the function that I think will answer your first question. Next, check out mktime, time, and date. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Michael T. Peterson > Sent: Tuesday, Au

RE: [PHP] First day of the month

2004-08-03 Thread Matthew Sims
> I was going to suggest; > > $dayofweek = date("D",strtotime(date("Y-m-01"))); > > Warren Vail > > That probably works but if you look, you're calling a function inside a function that's inside another function. $dayofweek = date("D", mktime(0,0,0,$m,1,$y)); A little more simpler. BTW, "D" or

Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 14:05, Michael T. Peterson offered up the following tid-bit of information : > Evidently the strtotime() function will not convert an SQL datetime to a > timestamp. Am I missing something? Here's an example of what I mean: > > $sql_datetime = '1948-30-03 01:30:00'; > $ts

Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread John Holmes
Michael T. Peterson wrote: Evidently the strtotime() function will not convert an SQL datetime to a timestamp. Am I missing something? Here's an example of what I mean: $sql_datetime = '1948-30-03 01:30:00'; $ts = strtotime( $sql_datetime ); print( $ts.''); When this script is executed, strtotime()

Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 02:05, Michael T. Peterson wrote: > Evidently the strtotime() function will not convert an SQL datetime to a > timestamp. Am I missing something? Here's an example of what I mean: > > $sql_datetime = '1948-30-03 01:30:00'; > $ts = strtotime( $sql_datetime ); > print( $ts

Re: [PHP] First day of the month

2004-08-03 Thread David Hansen Jr.
On Tue, 2004-08-03 at 11:09, Matthew Sims wrote: > > I'm trying to make a custom calendar script for my school district, and > > I'm hitting a little obstacle. I know how I can accomplish what I'm > > after, but it's a lot of extra coding. I'm wondering if there's a > > simple way to figure out w

Re: [PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Matthew Sims
> Evidently the strtotime() function will not convert an SQL datetime to a > timestamp. Am I missing something? Here's an example of what I mean: > > $sql_datetime = '1948-30-03 01:30:00'; > $ts = strtotime( $sql_datetime ); > print( $ts.''); > > When this script is executed, strtotime() returns -1

  1   2   >