Re: [PHP] Re: create htaccess.

2004-12-05 Thread adwinwijaya
Hello Matthew, Monday, December 6, 2004, 11:33:28 AM, you wrote: MWOP> In you .htaccess: MWOP> MWOP> ForceType application/x-httpd-php MWOP> MWOP> DirectoryIndex index MWOP> Then, in your script, you'll need to access the PATH_INFO environment MWOP> variable via the $_SERVE

[PHP] create htaccess.

2004-12-05 Thread adwinwijaya
Hello php-general, I have a question about htaccess (I cannot modify httpd.conf in the server since I just host on server, not dedicated one. I want to be able to convert from : www.mysite.com/index.php?f=module_a.php into www.mysite.com/index/module_a.php and am I able to do : www.mysite.co

[PHP] handling tag and quote (' & ")

2004-11-16 Thread adwinwijaya
Hello php-general, I have question for you :) Is there suggestion about how to remove html tag, javascript and quote (' & ") from user's input at the same time ? thx ;) -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re[2]: [PHP] email templating system

2004-10-04 Thread adwinwijaya
Hello John, Tuesday, October 5, 2004, 11:59:19 AM, you wrote: JH> Yes, that is what you mean. fetch() is going to parse the smarty "email" JH> template (where you have your IF, FOR, smarty variables, etc) and return JH> the parsed template to you. Then you stick that into mail(). JH> If you want

Re[2]: [PHP] email templating system

2004-10-04 Thread adwinwijaya
AIL PROTECTED]> JH> User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) JH> X-Accept-Language: en-us, en JH> MIME-Version: 1.0 JH> To: adwinwijaya <[EMAIL PROTECTED]> JH> CC: [EMAIL PROTECTED] JH> References: <[EMAIL PROTECTED]> JH> In-Reply-To: &l

[PHP] email templating system

2004-10-04 Thread adwinwijaya
Hello php-general, Currently I use Smarty for page templating system, and I am happy with this. But is there any way to produce a file with smarty instead of displaying it as a page. I want to use this as email templating, I want to create an email and I have a template like smarty and I want to

Re[2]: [PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hello Marek, Monday, September 20, 2004, 6:58:46 PM, you wrote: MK> adwinwijaya wrote: >> Hi all ... >> >> >> I have script that looks like : >> >> if(file_exists($filename)){ >> $len = filesize($filename); >> //header(&

[PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header("Content-type: attachment/pdf"); header('Content-Type: application/pdf'); //header("Content-Type: application/octet-stream"); header("Cont

[PHP] download pdf using php script

2004-09-15 Thread adwinwijaya
Hello PHP Users, I have files (that protected from direct download) and I put it outside public_html/ directory (outside web server directory). and the people from outside could access the file by typing: www.myweb.com/download.php?filename=xzy.pdf can someone give me hint how to do this ? than

Re[2]: [PHP] complex array and smarty

2004-08-09 Thread adwinwijaya
Hello John, Tuesday, August 10, 2004, 12:35:30 AM, you wrote: JWH> From: "adwinwijaya" <[EMAIL PROTECTED]> >> Assume I have array that looks like : >> >> Array( >> 'type'->'Fiction', >> 'notes&#x

[PHP] complex array and smarty

2004-08-08 Thread adwinwijaya
Hello all, Assume I have array that looks like : Array( 'type'->'Fiction', 'notes'->'Fiction books from a-z', 'list'-> Array( 'list'-> [0]->array( 'title'->'xzy', 'id'->'1') [1]->array(

[PHP] PHP Bug ?

2004-07-01 Thread adwinwijaya
Hi... I found a bug (may be) I tried to do like this: $temp = $country_list[$country_symbol['AU']] ; this didnt work, so I have to change to : $symbol = $country_symbol['AU']; $temp = $country_list[$symbol] ; is this PHP bug ? -- Best regards, adwinwijaya

Re[2]: [PHP] tracking ip and its location

2004-05-14 Thread adwinwijaya
Hello Tom, Friday, May 14, 2004, 7:21:39 PM, you wrote: TC> Try: TC> http://www.1phpstreet.com/vb/scripts/ShowCode.asp?txtCodeId=318&lngWId=8 TC> Regards, TC> Tom so, where i can download the list of countries and its ip address ? thx -- Best regards, adwin -- PHP General Mailing List (http:/

[PHP] tracking ip and its location

2004-05-13 Thread adwinwijaya
Hello PHP, Is there any function/class to search the location based on ip address ? For example, I got ip 144.xxx.xxx.xxx and it can displaying that IP comes from X country. thxs -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] problem with SSL

2004-04-19 Thread adwinwijaya
Hello php-general, Before, our project didnt use SSL mode and it work perfectly. But now, when we want to use ssl mode, it didnt work as we expected.. for example, when I try to type https://localhost/ it display : Fatal error: Cannot instantiate non-existent class: smarty in /var/www/html/HOME/w

[PHP] detecting type of field from $_POST ?

2004-04-05 Thread adwinwijaya
when I use input that produce array (like multiple checkbox will produce an array in $_POST). Is there any way to do this ? thank you -- Best regards, adwinwijaya mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] april mop in phpinfo()

2004-04-01 Thread adwinwijaya
Hello php-general, Happy april mop ... look at your phpinfo() :) whose picture is it ? -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date() before 1 Jan 1970...

2004-03-08 Thread adwinwijaya
Hello php-general, how to display date like Monday, 1 January 1903 18:11 pm in php ? (since the date() function only able to display date before 1970) (and why it only support date after 1 Jan 1970) ? thanks -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To u

[PHP] my checkbox array striped ?

2004-03-03 Thread adwinwijaya
Hi all, I have a script like this: in html and in process.php I have: $value){ $_POST[$key] = trim($value); $_POST[$key] = stripTags($value) ; } } print "" ; print_r($_POST); print "" ; ?> and the output will b

Re[3]: [PHP] where is my uploaded file ? (solved)

2004-02-24 Thread adwinwijaya
a> $uploadfile = $uploaddir . $_FILES['userfile']['name']; the problem is solved now ... I am very careless ... i forgot to rename userfile to image ... thank you for your help :) -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re[2]: [PHP] where is my uploaded file ?

2004-02-24 Thread adwinwijaya
Hello Mike, Tuesday, February 24, 2004, 11:05:17 PM, you wrote: FML> On 24 February 2004 06:58, adwinwijaya wrote: >> >> $uploadfile = $uploaddir . $_FILES['userfile']['name']; >> Array >> ( >> [image] => Array F

[PHP] where is my uploaded file ?

2004-02-23 Thread adwinwijaya
txt [type] => text/plain [tmp_name] => C:\WINDOWS\TEMP\php471.tmp [error] => 0 [size] => 2048 ) ) and when I look up at C:/Program Files/Apache Group/Apache2/htdocs/test/ (the target directory) .. I never found the fi

Re[2]: [PHP] help please

2004-02-22 Thread adwinwijaya
Hello ajay, Sunday, February 22, 2004, 9:05:52 PM, you wrote: a> hi! a> the code is a> include("classes/DB.php"); a> include("classes/PageMaker.php"); hmm... may be you need to add '/' in front of classess try this one: include(dirname(__FILE__)."/classes/DB.php"); hope it wil

Re: [PHP] help please

2004-02-22 Thread adwinwijaya
would you like to show us part of the code (especially on --> index.php line 18) -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: tow dimenshional arrays

2004-02-21 Thread adwinwijaya
$array_j = $array[$i] ; count($array_j) ; 2. foreach($array as $sub_array){ foreach($subarray as $key=>$value) echo $key.'=='.$value ; } cmiiw -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] redirecting

2004-02-18 Thread adwinwijaya
pache\htdocs\usydbasketball\subscribe_mailing_list.php:6) in c:\program >> files\apache >> group\apache\htdocs\usydbasketball\subscribe_mailing_list.php on >> line 67 >> >> so how do i workaround that? >> >> thanks >> >> regards

Re: [PHP] Call to a member function on a non-object

2004-02-12 Thread adwinwijaya
uire .. hope it work :) -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: weird header() (bug may be)

2004-02-12 Thread adwinwijaya
'location: foo.php'); the php processor should terminated and open the page foo.php instead ... cmmiw -- Best regards, adwinwijayamailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] weird header() (bug may be)

2004-02-12 Thread adwinwijaya
logic ... after sending the (redirect) to another --> page .. the process shall be stopped and thanks for your --> advise ... I just know that I have to write location: with space --> ... I am get used to do that for almost 1 year :) -- Best regards, adwinwijaya

[PHP] weird header() (bug may be)

2004-02-11 Thread adwinwijaya
'something' .. it wont redirect me to to_another_page.php but if I put die(); after calling header(); .. it will work ... is this the bug ? I use php 4.3.4 ... and Apache 2.x thanks -- Best regards, adwinwijaya mailto:[EMAIL PROTECTED] --

[PHP] julian date

2004-02-08 Thread adwinwijaya
Hello php-general, I wonder is there any class/function in php to convert from dates (dd/mm/ hh:mm:ss) to Julian date ? (I also wonder why there is no Julian date function in php function libraries ... i think it is nice to have Julian date ) thx -- Best regards, adwinwijaya