[PHP] Using PHP on an .html file

2003-08-24 Thread Pag
want to have some PHP code that actually gets executed. Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] finding out localhost :-P

2003-08-24 Thread Pag
to the database, i use localhost. How can i find out the real server to connect to from the other site? I tried using the whole domain, like www.crappyserver.com, but doesnt work. :-P Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session variables

2003-03-19 Thread Pag
. Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hacker problem

2003-03-12 Thread Pag
, the http_referral obviously thinks its coming from inside the site. :-P How can i solve this? Is there any way to prevent data adding from outside? Maybe some invisible check on the form or something? Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Follow-up to Hacker problem

2003-03-12 Thread Pag
a long word, the infamous horizontal scroll bar would appear. How can i check for long words on a string and remove them before they get written on the DB? Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Online Store

2003-03-10 Thread Pag
of parser would collect the new info from it. The problem with that approach would be if the supplier changes a cel on some product name, then everything would be ruined. How is it usually done? Big thanks, i am completely blind in this. Pag -- PHP General Mailing List (http://www.php.net

[PHP] problem with and '

2003-02-10 Thread Pag
); $comentarioc = str_replace(\r, \n, $comentarioc); Is there a way to solve this? So it can accept both and ', and be able to alter/print it with no problem? Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File upload problem

2003-02-10 Thread Pag
it to you or post it here. :-) Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] and ' giving problems

2003-02-10 Thread Pag
); $comentarioc = str_replace(\r, \n, $comentarioc); Is there a way to solve this? So it can accept both and ', and be able to alter/print it with no problem? Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] counter freezes whole site!

2003-02-05 Thread Pag
Hi, I am having a serious problem on my site. It was working fine until a day ago, when it simply freezes. After i made a few checks i realized it loops on this code. I tried everything but i cant understand why and i am going crazy trying to figure it out! This code is supposed to write a

[PHP] How to check for refresh in PHP

2003-01-30 Thread Pag
is doing a refresh or coming from somewhere else. If its a refresh, the counter would simply not increase. That would be sufficient to keep the i-want-my-news-to-have-the-higher-number-of-visitors author, from having his way. Thanks. Pag -- PHP General Mailing List (http://www.php.net

[PHP] Login and sessions?

2003-01-23 Thread Pag
logged on and then have like a box on the site displaying who and how many users are logged in? Sorry for the messed up explanation, but i really dont know what do do about it. Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dumb time question

2003-01-13 Thread Pag
digit when the minutes are between 00 and 10. I know its going to be stupid but anyway, could use your help, i cant see anything straight in this code anymore. :-P Sorry and thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FORM text formatting problem

2002-12-30 Thread Pag
(\r\n, \n, $texto); $texto = str_replace(\r, \n, $texto); And when i want to retrieve the text from the database to display it on the site, i do: $texto = str_replace(\n, br, $texto); Some help, please? Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] FORM text formatting problem

2002-12-30 Thread Pag
it seems i will be using it a lot. :-) Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
. :-) Thanks for all the help, guys, you got me in the right direction. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
, thanks john) Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
history forget that redirect. :-P But you are right, Jason, time wise i was wrong in going for the popup, not to mention those other very relevant facts john mentioned too. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
this header right after all the database writes. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
Got it to work. I removed everything except the PHP script. Works like a charm, no problem on the browser back button. Great help from you guys. Thanks a lot! Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Form duplicate post problem

2002-12-28 Thread Pag
to display the article and the existing comments here -- form here if user clicks send, puts $flag=1 and calls same page -- How can i prevent these double entries? Some command to definitely clear the variables? Thanks. Pag -- PHP General Mailing List (http

Re: [PHP] Form duplicate post problem

2002-12-28 Thread Pag
while, since the original is a bit heavy on the download side. ;-) Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form duplicate post problem

2002-12-28 Thread Pag
a little more transparent to the user, i thought of using a popup window instead, you know, a tiny window pops up, with the code to insert the comment on the database, and closes right after it does so. but err..how can i close it right after the database insert? Pag -- PHP General

[PHP] include problem

2002-12-26 Thread Pag
of backend in the ways of greymatter, that people can change the looks of the news entries by themselves. Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] news site, recent entries retrieval

2002-11-13 Thread Pag
recent entries of type = 2, for example? I am lost, could really use some help. Thanks! Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Pag
command query that can count how many records exist with a given field content? Example: Count on a database how many peters there are in there? Is there a specific SQL select or something, or i have to make a loop just to count them? Thanks. /Pag

[PHP] database value count retrieval

2002-08-19 Thread Pag
/Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] security login

2002-08-12 Thread Pag
the help. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getaddrinfo failed

2002-06-23 Thread Pag
. Pag ? $linha=file('downs.txt'); $t=count($linha); $l = $t - 1; $fim = $l - 3; if ($l 3) { $fim=$l - 3; } else { $fim = 0; } for ($i = $l; $i = $fim ; $i--) { $array=explode(|,$linha[$i]); print(div align=\left

[PHP] Whos online at the moment in PHP

2002-06-23 Thread Pag
. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] getaddrinfo failed

2002-06-22 Thread Pag
is so small and simple, is there something wrong in it? But if it is, why does the error only appears randomly? I get this error on a different script on my site, also of the same type, reading a few lines from a txt file and displaying them. Thanks. Pag -- PHP

[PHP] Weird error!!

2002-06-21 Thread Pag
randomly? I get this error on a different script on my site, also of the same type, reading a few lines from a txt file and displaying them. Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php_network_getaddresses

2002-05-04 Thread Pag
thing i noticed is that the error is less frequent on IE6 at home than it is at work. At home i acess the net by adsl and at the office we use isdn but by router/lan. Something to do with that? Dont know the reason for such errors. Pag -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Pag
for the next user, going over it again, dynamically. Sorry if i cant explain this very well. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Pag
on the cache instead of getting it fresh from the server. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP editing environment

2002-05-03 Thread Pag
and PHP and get everything working normally when i preview the code in internet explorer, that would be perfect, is it possible? How do you guys and girls work with php, what editors and/or tools you use? Thanks. Pag -- PHP General Mailing List (http://www.php.net