Re: [PHP] Handles for multiple output buffers?

2004-08-03 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > Again, the internals list sent me to this forum for help. > > In trying to create a series of parsers in PHP, using only PHP > core and no non-standard add-ons, I find myself emulating > multiple character streams in a class that wraps the output > buffer. Every

[PHP] Manufacturing systems and inventory control

2004-08-03 Thread Amimu Austin
Anywhere I can get info on php web database design of inventory control, Manufacturing systems ( modules etc), discussion etc.     regards    

Re: [PHP] Re: php coding software

2004-08-03 Thread Jordi Canals
Oliver John V. Tibi wrote: in addition to brad's post, does anyone know of coding software that supports team development environments and/or a versioning server for windows? I use Zend Studio wich provides CVS integration. But I'm sure you will find some others with CVS support. If not, I will re

[PHP] Re: PEAR Spreadsheet_excel_writer problem

2004-08-03 Thread Alex Othold
Hmm.. I just did some more playing, and I solved the problem for me! It seems that the program did not have write permission to the temp folder because I was running in safe mode (I found this out by enabling all error messages with 'error_reporting (E_ALL);'. After I redirected the temp folder to

[PHP] Unable to Destroy Session

2004-08-03 Thread Harlequin
Morning guys. I'm trying to destroy a session using "session_destroy();" and I get the following error: "Trying to destroy initialised session" I simply want a user to click a logout button that destroys the session cookie. Am I doing this the right way...? -- - Mi

[PHP] Re: Unable to Destroy Session

2004-08-03 Thread Harlequin
Sorted it. for some reason it was holding the session because I had two browser windows open which is the environment it will be used in by the users. strange though... -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin"

RE: [PHP] Re: Unable to Destroy Session

2004-08-03 Thread Jay Blanchard
[snip] for some reason it was holding the session because I had two browser windows open which is the environment it will be used in by the users. strange though... [/snip] Strange how? Since the session is active in at least one stateless browser window you would have to find a way to affect the

Re: [PHP] Another problem with grids and checkboxes

2004-08-03 Thread Henri Marc
Hello, > > 1 > name="grid[1][1]" value="1" type="checkbox"> > > > [snip] > > 1 > name="grid[2][1]" value="1" type="checkbox"> > > > > Is there a reason you're sending a 1, 2 or 3 value > with the checkboxes? Well, I thought it was the good way to do. It helps me to

[PHP] how to change SCRIPT_FILENAME syntax??

2004-08-03 Thread msa
I have the following code on my page: $page = $_SERVER['SCRIPT_FILENAME']; // gets current url this is part of a INSERT INTO mysql/php script. when the table gets populated, the entire url string is there: /home/com/sitename/html/secure/sales2.php I would like it to read: sales2.php How would

RE: [PHP] how to change SCRIPT_FILENAME syntax??

2004-08-03 Thread Jay Blanchard
[snip] I have the following code on my page: $page = $_SERVER['SCRIPT_FILENAME']; // gets current url this is part of a INSERT INTO mysql/php script. when the table gets populated, the entire url string is there: /home/com/sitename/html/secure/sales2.php I would like it to read: sales2.php How

RE: [PHP] multiple checkboxes

2004-08-03 Thread Robert Sossomon
You need to do: Keeping the name the same makes them a RADIO button and you will only get the last one. Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple checkboxes

2004-08-03 Thread Matt M.
> Keeping the name the same makes them a RADIO button and you will only > get the last one. this is not true -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple checkboxes

2004-08-03 Thread John W. Holmes
From: "Robert Sossomon" <[EMAIL PROTECTED]> > You need to do: > > > > Keeping the name the same makes them a RADIO button and you will only > get the last one. This is a valid solution, but it's really just easier to make them into an array like many others have suggested. Using this method, yo

Re: [PHP] multiple checkboxes

2004-08-03 Thread John Nichel
Robert Sossomon wrote: You need to do: Keeping the name the same makes them a RADIO button and you will only get the last one. This is not true. The only thing that will make these a radio button is setting the 'type' to 'radio'. The answers put out to this yesterday were correct. Using s

RE: [PHP] multiple checkboxes

2004-08-03 Thread Robert Sossomon
Sorry, day late and a dollar short on that one... Never once thought about using an array, but after seeing John's and Curt's emails on it (when I realized I was NOT at the top of my emails) I saw how brilliant a solution that is... Robert -- PHP General Mailing List (http://www.php.net/) To un

[PHP] good book on PEAR

2004-08-03 Thread Amanda Hemmerich
Hello! I need a solid foundation on using PEAR. ANy books or websites you would recommend? Thanks, Amanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] javascript type cast

2004-08-03 Thread Josh Close
Is there any way to do a typecast in javascript? I know you can in 2.0, but that won't work here. I have an input field and I need to add a number to it's value. var + 123 == 'var123' You would think that it would automatically typecast var to an int since it's being added to one, but it just c

Re: [PHP] javascript type cast

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 12:28, Josh Close wrote: > P.S. I'm doing this in a php page... that's why I'm asking here. But this doesn't make it a php problem. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: javascript type cast

2004-08-03 Thread Josh Close
...I found you can do var*1 to get it to type cast. Thanks. -Josh On Tue, 3 Aug 2004 11:28:16 -0500, Josh Close <[EMAIL PROTECTED]> wrote: > Is there any way to do a typecast in javascript? I know you can in > 2.0, but that won't work here. > > I have an input field and I need to add a nu

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Yes, but most php users do some web programming and might have come across this before. -Josh On Tue, 3 Aug 2004 12:34:40 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > On Tuesday 03 August 2004 12:28, Josh Close wrote: > > P.S. I'm doing this in a php page... that's why I'm asking here. > > Bu

[PHP] running a script

2004-08-03 Thread Aaron Todd
Is there any way to run a php script by clicking a link? Thanks, Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running a script

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 12:25, Aaron Todd offered up the following tid-bit of information : > Is there any way to run a php script by clicking a link? > > Thanks, > > Aaron Anytime you click on a link to a php document, you are 'running' a php script. Could you be a bit more specific as to wh

Re: [PHP] javascript type cast

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 00:38, Josh Close wrote: > Yes, but most php users do some web programming and might have come > across this before. Most people on this list eat as well, but that doesn't make this list an appropriate forum for discussing food. -- Jason Wong -> Gremlins Associates -

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Wow, no need to be an ass. I just wanted a little help and this list is usually pretty friendly and willing to help. but I guess not. On Wed, 4 Aug 2004 01:01:47 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Wednesday 04 August 2004 00:38, Josh Close wrote: > > Yes, but most php users do

Re: [PHP] running a script

2004-08-03 Thread Aaron Todd
The program I am working on so far will take input from a form and email it out. This information needs to be verified by a human and then somehow the human that verifys the info needs to click some link in order to for all that data to be entered into an SQL database. I was thinking of somehow h

Re: [PHP] javascript type cast

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 01:06, Josh Close wrote: > Wow, no need to be an ass. I just wanted a little help and this list > is usually pretty friendly and willing to help. but I guess not. So you're saying you're taking advantage of (or abusing) the list's readiness to help by asking OT que

Re: [PHP] running a script

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 01:08, Aaron Todd wrote: > The program I am working on so far will take input from a form and email it > out. This information needs to be verified by a human and then somehow the > human that verifys the info needs to click some link in order to for all > that data to

Re: [PHP] running a script

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 13:08, Aaron Todd offered up the following tid-bit of information : > The program I am working on so far will take input from a form and email > it out. This information needs to be verified by a human and then > somehow the human that verifys the info needs to click som

RE: [PHP] running a script

2004-08-03 Thread Vail, Warren
Sounds like a good plan, but if this is outside a firewall on the open internet, it could present some security risks. I'll assume for the moment that it's not. If your script that sends the email can store the information from the form into the database and assign it a unique number, then your h

Re: [PHP] good book on PEAR

2004-08-03 Thread Greg Donald
On Tue, 3 Aug 2004 10:39:42 -0500 (EST), Amanda Hemmerich <[EMAIL PROTECTED]> wrote: > I need a solid foundation on using PEAR. ANy books or websites you > would recommend? You might try http://pear.php.net/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/

RE: [PHP] javascript type cast

2004-08-03 Thread Vail, Warren
I, for one, am not convinced that this all that far off topic. Since the accepted method to generate browser interaction with server side PHP, is to use Javascript, it doesn't seem any more off-topic than dealing with database questions about MySQL. I am probably like most PHP developers, with a

Re: [PHP] javascript type cast

2004-08-03 Thread Matthew Sims
> On Wednesday 04 August 2004 00:38, Josh Close wrote: >> Yes, but most php users do some web programming and might have come >> across this before. > > Most people on this list eat as well, but that doesn't make this list an > appropriate forum for discussing food. > Unless it's about PEAR. ;)

Re: [PHP] javascript type cast

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 13:38, Vail, Warren offered up the following tid-bit of information : > I, for one, am not convinced that this all that far off topic. > > Since the accepted method to generate browser interaction with server > side PHP, is to use Javascript, it doesn't seem any more off-

[PHP] First day of the month

2004-08-03 Thread David Hansen Jr.
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 what day of the week the first day of the month lands on. I can t

Re: [PHP] running a script

2004-08-03 Thread Aaron Todd
I like both of these methods...Is one of them more used regularly with PHP. I don't want to start down a road that will eventually dead end if you know what I mean. Thanks, Aaron "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Tuesday 03 August 2004 13:08, Aaron Tod

Re: [PHP] javascript type cast

2004-08-03 Thread raditha dissanayake
Vail, Warren wrote: I, for one, am not convinced that this all that far off topic. Since the accepted method to generate browser interaction with server side PHP, is to use Javascript, it doesn't seem any more off-topic than dealing with database questions about MySQL. unfortunately it's not qui

Re: [PHP] javascript type cast

2004-08-03 Thread raditha dissanayake
Matthew Sims wrote: On Wednesday 04 August 2004 00:38, Josh Close wrote: Yes, but most php users do some web programming and might have come across this before. Most people on this list eat as well, but that doesn't make this list an appropriate forum for discussing food. Unless it

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

2004-08-03 Thread John Holmes
Josh Acecool M wrote: var $The_Template_Sys; $this -> The_Template_Sys = file_get_contents("$The_Template_File"); $this -> Sub_Template = TRUE; Please respond to the list and not me personally. you say you're getting a parse error. How could anyone possibly help you troubleshoot that parse error

Re: [PHP] First day of the month

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 13:46, David Hansen Jr. offered up the following tid-bit of information : > 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 wonderi

RE: [PHP] javascript type cast OT

2004-08-03 Thread Jay Blanchard
[snip] Since the accepted method to generate browser interaction with server side PHP, is to use Javascript, it doesn't seem any more off-topic than dealing with database questions about MySQL. [/snip] Actually the accepted method to generate browser interaction with server side PHP is http reques

Re: [PHP] running a script

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 13:32, Aaron Todd offered up the following tid-bit of information : > I like both of these methods...Is one of them more used regularly with > PHP. I don't want to start down a road that will eventually dead end if > you know what I mean. > > Thanks, > > Aaron > > B) St

Re: [PHP] First day of the month

2004-08-03 Thread Matthew Sims
> 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 what day of the week the first day of the month > lands on

[PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Michael T. Peterson
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. If true, th

Re: [PHP] javascript type cast

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 01:38, Vail, Warren wrote: > I, for one, am not convinced that this all that far off topic. OK if I asked the question "how do I do type casting in Cobol?", would you agree that it is OT? Cobol has nothing to do with the zend engine, Javascript has nothing to do with

Re: [PHP] running a script

2004-08-03 Thread John Holmes
Aaron Todd wrote: I like both of these methods...Is one of them more used regularly with PHP. I don't want to start down a road that will eventually dead end if you know what I mean. Relating the information to a unique ID and using that in the email is a better approach. Appending all of the dat

RE: [PHP] javascript type cast

2004-08-03 Thread Alex Hogan
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. Perhaps it's because the long time users don't realize they're being so, (unless of co

RE: [PHP] First day of the month

2004-08-03 Thread Vail, Warren
I was going to suggest; $dayofweek = date("D",strtotime(date("Y-m-01"))); Warren Vail -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 11:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] First day of the month On Tuesday 03 August 2004 13:46

Re: [PHP] First day of the month

2004-08-03 Thread John Holmes
David Hansen Jr. 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 what day of the week the first day of the

RE: [PHP] Cannot compile

2004-08-03 Thread Will Collins
Try running 'make clean' before you run 'make' again. I had a problem when trying to run 'make' for the umpteenth time during my recent troubles, and apparently it was because things got a little too cluttered, and this did the trick. Will -Original Message- From: Jason Wong [mailto:[EMA

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

2004-08-03 Thread Vail, Warren
Try reversing the order in the date to -mm-dd and I believe it should work. Keep in mind that the time variable $ts is not the same as a Mysql timestamp for example. It conforms to the unix epoch time variable. Warren Vail -Original Message- From: news [mailto:[EMAIL PROTECTED] On

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

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 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] [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 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] 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 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] 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] 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 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 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 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

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

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

[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 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] 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 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] 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

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.

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] 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] 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] 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

[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.

[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

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

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 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] 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] 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] 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] 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 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] 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] 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] 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] 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 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 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] 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] 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] 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 >

[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] 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

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 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] 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] 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

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

  1   2   >