[PHP] checkbox = POST = array??

2002-08-10 Thread PeterV

I,
I don't have my books here and it's been a while since I did PHP, and 
google isn't helping:
How do I code a bunch of checkboxes with id's, and then loop trough the 
result as an array after POSTing it?
What I have now:
input type='checkbox' id='45' name='topic[]' value='45'
doesn't return an array $topic??
Thanks,
Peter


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Invalid content using FastTemplates

2002-07-09 Thread PeterV

Help!
I was using FastTemplates on my local machine AND on my personal server and 
it all worked well. When I am uploading the code to my client's server 
today, I get this strange warning whenever using FastTemplates:

Warning:  Invalid content of \{\} in 
/home/httpd/includes/fasttemplate.class.php on line 199

I get about 50 lines like this.
A google search shows other sites have had the same problem with FastTemplates:
http://www.google.com/search?sourceid=navclientq=%22Invalid+content%22
But a search on the php.net site didn't give any results.

In the code, line 199 of fasttemplate.class.php is empty, followed by the 
following code:

 function utime ()

 {

 $time = explode(  , microtime());

 $usec = (double)$time[0];

 $sec = (double)$time[1];

 return $sec + $usec;

 }

I really am stuck: this didn't happen on my local machine or on my test 
server, it's happening on the client's machine now and they are expecting 
the site today and I have no idea what's wrong. We've had problems with 
permissions on their server, maybe that has something to do with it I'm 
no sysadmin and the sysadmin they use doesn't know much.

Any ideas on what to do?? I really need to fix this asap - help!
Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Invalid content using FastTemplates

2002-07-09 Thread PeterV

I am using php4.0.6, and on this page
http://twig.screwdriver.net/file.php3?file=FAQplaintext=1
I found a mention of this error saying that it is because of changes in 
PHP4. However, I am using PHP 4 locally and on the test server and they 
both work.
Do I have to ask them to upgrade to PHP 4.2.0?? If that doesn't fix it I'll 
look stupid having asked that!
Peter



At 11:38 AM 7/9/2002, you wrote:
Help!
I was using FastTemplates on my local machine AND on my personal server 
and it all worked well. When I am uploading the code to my client's server 
today, I get this strange warning whenever using FastTemplates:

Warning:  Invalid content of \{\} in 
/home/httpd/includes/fasttemplate.class.php on line 199

I get about 50 lines like this.
A google search shows other sites have had the same problem with 
FastTemplates:
http://www.google.com/search?sourceid=navclientq=%22Invalid+content%22
But a search on the php.net site didn't give any results.

In the code, line 199 of fasttemplate.class.php is empty, followed by the 
following code:

 function utime ()

 {

 $time = explode(  , microtime());

 $usec = (double)$time[0];

 $sec = (double)$time[1];

 return $sec + $usec;

 }

I really am stuck: this didn't happen on my local machine or on my test 
server, it's happening on the client's machine now and they are expecting 
the site today and I have no idea what's wrong. We've had problems with 
permissions on their server, maybe that has something to do with it 
I'm no sysadmin and the sysadmin they use doesn't know much.

Any ideas on what to do?? I really need to fix this asap - help!
Peter



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Invalid content using FastTemplates

2002-07-09 Thread PeterV

The fix presented on the top of this page
http://www.thewebmasters.net/php/FastTemplate.phtml
Doesn't solve the problem. I have tried to replace
$key = '{'.$key.'}';½
with
$key = '\{'.$key.'\}';
still no luck!

Is there a version of FastTemplates available somewhere that just works?
thanks
Peter

At 11:38 AM 7/9/2002, you wrote:
Help!
I was using FastTemplates on my local machine AND on my personal server 
and it all worked well. When I am uploading the code to my client's server 
today, I get this strange warning whenever using FastTemplates:

Warning:  Invalid content of \{\} in 
/home/httpd/includes/fasttemplate.class.php on line 199

I get about 50 lines like this.
A google search shows other sites have had the same problem with 
FastTemplates:
http://www.google.com/search?sourceid=navclientq=%22Invalid+content%22
But a search on the php.net site didn't give any results.

In the code, line 199 of fasttemplate.class.php is empty, followed by the 
following code:

 function utime ()

 {

 $time = explode(  , microtime());

 $usec = (double)$time[0];

 $sec = (double)$time[1];

 return $sec + $usec;

 }

I really am stuck: this didn't happen on my local machine or on my test 
server, it's happening on the client's machine now and they are expecting 
the site today and I have no idea what's wrong. We've had problems with 
permissions on their server, maybe that has something to do with it 
I'm no sysadmin and the sysadmin they use doesn't know much.

Any ideas on what to do?? I really need to fix this asap - help!
Peter



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] newbie: redirecting a POSTed form

2002-05-29 Thread PeterV

Hi,
I have to redirect a POSTed form, ie. a form gets posted to my PHP page, 
and I then do some database stuff and then redirect it to another site. I 
know of header(http://othersite.com;); to redirect a simple URL request, 
but how can I redirect a post with a bunch of form fields in it? I don't 
think I am allowed to use GET for this (it's a credit card authorization 
provider).

Thanks for any tips, I'm a bit baffled by this..
Peter 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] newbie: redirecting a POSTed form

2002-05-29 Thread PeterV


I think the CURL library
(http://www.php.net/manual/en/ref.curl.php) is your best bet for
doing this, since you must need SSL (you mentioned credit card
authorization).

Is there not a simpler way of doing this?? I thought there would be... I 
can't install extra software on the server. help?
Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php script for backlinks?

2002-05-12 Thread PeterV

http://www.iawiki.net/ReferrerLinking
I'm looking for existing PHP scripts that generate a list of pages linking 
to your page. Anything already written out there?
Thanks,
Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php