[PHP] Re: Converting HTML to BBCode [SOLVED]

2006-03-07 Thread J_K9
\1" == "" ? "[*]" : "" )', ); $string = preg_replace(array_keys($arr_replace), array_values($arr_replace), $string); return $string; } $text = to_bbcode($text); echo '' . "$text"

[PHP] Re: Converting HTML to BBCode

2006-03-06 Thread J_K9
echo '' . "$text" . ''; ?> ---/CODE--- However, I get the following error appearing in between the two textareas: ---ERROR--- Warning: preg_replace() [function.preg-replace]: No ending matching delimiter '>' found in /var/www/

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-15 Thread J_K9
there... Cheers, J_K9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] missing modules ??? help please ...

2006-02-15 Thread J_K9
ways which you can resolve the problems - you've just got to choose which path to take. Cheers, J_K9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Routing downloads through PHP - Thanks!

2006-02-15 Thread J_K9
Thanks everyone, especially Barry for that great script which I've tested on a home server and _does_ work... So, I'm going to wait for my external hosting company to get back to me and alter the files there so that it'll work on my website. Thanks again! ;-) J_K9 -- PHP

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
a server. I've already contacted my hosters, so I should receive an answer pretty soon. As for the code - lemme get down to setting up that server ;) Thanks guys for all your help - I'll let you know if it works out! J_K9 -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Barry wrote: J_K9 wrote: Duncan Hill wrote: On Wednesday 15 February 2006 11:35, J_K9 wrote: Duncan Hill wrote: On Wednesday 15 February 2006 11:05, J_K9 wrote: Here's the exact 500 error I'm getting: Standard Apache error. Look in your error log for more details like it

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Duncan Hill wrote: On Wednesday 15 February 2006 11:35, J_K9 wrote: Duncan Hill wrote: On Wednesday 15 February 2006 11:05, J_K9 wrote: Here's the exact 500 error I'm getting: Standard Apache error. Look in your error log for more details like it suggests? I would, but I can&#x

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Duncan Hill wrote: On Wednesday 15 February 2006 11:05, J_K9 wrote: Here's the exact 500 error I'm getting: Standard Apache error. Look in your error log for more details like it suggests? I would, but I can't find it. I thought it was under /var/log, but having taken a g

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Thanks, J_K9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
#x27;s the full code I'm using: Downloads Any idea what could be going wrong? Thanks, J_K9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Barry wrote: J_K9 wrote: This is what I used: As you can see, there is no output before the headers are set. In fact, the error say that the headers were set on line 6, which is default headers? Thanks, J_K9 What is before line 6? Because the Lines 1-10: Downloads

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Barry Krein wrote: J_K9 wrote: Barry wrote: J_K9 wrote: Curt Zirzow wrote: On Tue, Feb 14, 2006 at 09:02:50PM +, J_K9 wrote: Hi, I'm currently learning PHP, and I'd like to put it into practice to help me learn. I want to make a download script so that if the value of

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Barry wrote: J_K9 wrote: Curt Zirzow wrote: On Tue, Feb 14, 2006 at 09:02:50PM +, J_K9 wrote: Hi, I'm currently learning PHP, and I'd like to put it into practice to help me learn. I want to make a download script so that if the value of a certain variable is 

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread J_K9
Curt Zirzow wrote: On Tue, Feb 14, 2006 at 09:02:50PM +, J_K9 wrote: Hi, I'm currently learning PHP, and I'd like to put it into practice to help me learn. I want to make a download script so that if the value of a certain variable is '1', the first download is

Re: [PHP] Routing downloads through PHP

2006-02-14 Thread J_K9
(Reply beneath quotes) Richard Lynch wrote: On Tue, February 14, 2006 3:41 pm, J_K9 wrote: "data/download1.zip", "a1"=>"data/download2.zip"); $location = $filearray['a'.$fileid]; if($location!='') { header("LOCATION: $loc

Re: [PHP] Routing downloads through PHP

2006-02-14 Thread J_K9
t;); } ?> But when I send it: http://example.com/download.php?file_id=0 , I get the following error- Warning: Cannot modify header information - headers already sent by (output started at /public_html/download.php:6) in /public_html/download.php on line 18 Any idea w

[PHP] Routing downloads through PHP

2006-02-14 Thread J_K9
s/downloadme.zip <http://example.com/hidden--files/download1.zip> will come up but without displaying where the file is. How can I do this? Thanks, J_K9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php