[PHP] creating link

2004-03-11 Thread Awlad Hussain
I have a search page display results in the format Search results -- Product ID NameMore Info -- 1Egg link

[PHP] Get image file size

2003-10-26 Thread Awlad Hussain
How can I get the file size of an image in KB, I know how to get the width and height of an image using the getimagesize(); but not sure how to get the image file size. Many thanks in advance. awlad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] strange crypt() problem

2003-06-20 Thread Awlad Hussain
If I use MD5 based encryption...would i have similar problem in the future when i move the codes around to different server? - Original Message - From: "Jeff Harris" <[EMAIL PROTECTED]> To: "Sævar Öfjörð" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 12:06 AM Sub

Re: [PHP] typecasting .. easy?

2003-06-19 Thread Awlad Hussain
try $formatted = number_format($amount,2); - Original Message - From: "Roy W" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 12:41 PM Subject: [PHP] typecasting .. easy? > $amount is a calculated number > > If $amount equals for example 52., how do I get t

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-19 Thread Awlad Hussain
try something like this, not sure if this what you want create a random value like $random = rand(); then attach it to the each page.. like index.php?random=$random good luck - Original Message - From: "Daniel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 19, 20

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-19 Thread Awlad Hussain
try this: - Original Message - From: "Mark Tehara" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 10:58 AM Subject: [PHP] [Newman] Passing an image through a php file. I would like to pass an image throught http://server/newman/ImageTEST/image.php 1. I

[PHP] unique random id

2003-06-19 Thread Awlad Hussain
How do i generate a unique random number? thanks awlad

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Awlad Hussain
addslashes (PHP 3, PHP 4 ) addslashes -- Quote string with slashes Description string addslashes ( string str) Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the N

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Awlad Hussain
Thanks for your recommendations, what if they use page.php?$_POST[$total]? instead of $toal?? wouldn't the outcome be the same? is there good article on this subject? I think this is quite important in developing secure application, I have googled but no luck Thanks again awlad - Original M

[PHP] prevent modifying querystring

2003-06-11 Thread Awlad Hussain
for example i have form with a dropdown selection as shown below. 1 2 3 4 5 Just say I have a function to generate form fields based on the total variable from above... so function generate($total){ for ($total = 1; $i <= $total; $i++) { print "\n"; } } how do you prevent someone

Re: [PHP] what can i store in the DB

2003-06-11 Thread Awlad Hussain
Paul check the tutorial on Storing Images in Database http://codewalkers.com/tutorials/35/2.html good luck.. BTW cool flash work :) - Original Message - From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> To: "Awlad Hussain" <[EMAIL PROTECTED]> Sent: W

Re: [PHP] what can i store in the DB

2003-06-11 Thread Awlad Hussain
You can store image as BLOB in DB I would recomend you download mysql manual from www.mysql.com, very useful awlad - Original Message - From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 11:46 AM Subject: [PHP] what can i store in the DB

Re: [PHP] php and flash chat program

2003-06-10 Thread Awlad Hussain
How about using session??? - Original Message - From: "Russell P Jones" <[EMAIL PROTECTED]> To: "Matt Palermo" <[EMAIL PROTECTED]> Cc: "'PHP General'" <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 3:11 PM Subject: RE: [PHP] php and flash chat program > The best way I can see to answe

[PHP] Mutile select search engine

2003-06-09 Thread Awlad Hussain
I have a advance search page, similar to this http://www.shaadi.com/partner_search/matrimonial_search/advancedmarriagesearch.php (mine on local server). I can create the sql statement for it ...the only problem i have is passing the all variables from page to page in record navigation..(I use f

[PHP] $HTTP_POST_VARS

2003-06-09 Thread Awlad Hussain
Whats the advantage (or shall i say disadvantage )of passing form variables to a function like shown below: function function_name($var,$var1,$var2) { } rather than passing the $HTTP_POST_VARS array to the fuction like: function function_name($HTTP_POST_VARS) { } Is any better than other? or

[PHP] categorise list

2003-06-09 Thread Awlad Hussain
I am dispalying data from mysql database using the codes below: $while($row=mysql_fetch_array($result)) { echo $row[name]; } How can i format the above data in this format as shown below? in alphabetical order A ---

[PHP] Good Hosting company

2003-06-09 Thread Awlad Hussain
anyone knows any good cheap hosting company in UK/US?? with good support. Many thanks awlad ___ Sheridan Phoenix Company The Business Centre Kimpton Road Luton Bedfordshire LU2 0LB Email: [EMAIL PROTECTED] Phone:

Re: [PHP] How can I check form variables in $_POST to make sure they are theright format?

2003-06-06 Thread Awlad Hussain
whats the different between currency and number??? aren't they both number? are you trying to check if the number format is in currency like 2 decimal place or something?? - Original Message - From: "Dan Anderson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 06, 2003

[PHP] Array

2003-06-06 Thread Awlad Hussain
What wrong with this code? i am tryin to create an array from the while loop, but i only get one value :( while($rowmenu = mysql_fetch_array($resultmenu)){ while (list($k, $v) = each ($rowmenu)) { $val[$k] = $v; } } Basically the $rowmenu returns more than one records.. and i want t

Re: [PHP] [FYI] phpbooks.com

2003-06-06 Thread Awlad Hussain
weldone, Very neat desgin - Original Message - From: "Mark Owen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 06, 2003 10:07 AM Subject: [PHP] [FYI] phpbooks.com > Hi guys, > > we set up a new resource for organizing all books on PHP in a quick-to-scan, > Google-like c

[PHP] Creating alphabetical index links

2003-06-06 Thread Awlad Hussain
How i do create alphabetical index links with data in a table? for example i have table like this: category - apple bread cornflakes doughnut egg with the above records i want to create alphabetical links like click on the letter to check its listing [A] - [B] - [C] - [D] - [E] so if

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Awlad Hussain
Thanks John :) - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: "Awlad Hussain" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 3:25 PM Subject: Re: [PHP] Best open source banner advertising application >

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Awlad Hussain
John, Since you have used both systems, would you kindly share with us whats pro & cons of them both systems?? I have used phpadsnew and like their user interface.. very neat.. not much sure about oasis. Thanks - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: "Randum Ian"

Re: [PHP] Cookies - recomendation please

2003-06-02 Thread Awlad Hussain
PHP Manual has good section on cookie... have you tried the manual? good luck awlad - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 01, 2003 1:56 PM Subject: [PHP] Cookies - recomendation please > Hi everyone, > Some time back I had no i

Re: [PHP] PHP redirect

2003-05-29 Thread Awlad Hussain
Try this header("LOCATION: page2go.php"); - Original Message - From: "Angelo Zanetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 9:46 AM Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo -

Re: [PHP] Re: About Guest Book\'s messages....

2003-05-29 Thread Awlad Hussain
using style=TABLE-LAYOUT:fixed does not wrap the text - Original Message - From: "hui" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 3:13 PM Subject: [PHP] Re: About Guest Book\'s messages > do it in your html code, > you use a for the message text? > ad

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-03 Thread Awlad Hussain
I found this link that has a stand alone java application that will allow to to upload a folder... if that what you want? or you want it to be embedded in your webpage? http://support.softartisans.com/docs/JFile/prog_g_recursive.htm hope you find it useful -awlad - Original Message - Fr

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread Awlad Hussain
I think php.ini file must exist.. otherwise php will not work. - Original Message - From: "Javier Carreras" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 11:01 AM Subject: [PHP] Php.ini doesn't exit > Hi all, > > Where does PHP get its settings if php.ini fi

Re: [PHP] last questions

2003-03-27 Thread Awlad Hussain
someone has asked the same question today about validating email, do a search i'll find the reply. - Original Message - From: "Haseeb Iqbal" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 4:02 AM Subject: [PHP] last questions > thanx to all th

Re: [PHP] Formatting code.

2003-03-26 Thread Awlad Hussain
Good article on coding standard at www.phpfreaks.net > Is there any documents on how code should be layed out? > > > -- > Philip J. Newman. > Head Developer > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] can i ask?

2003-03-26 Thread Awlad Hussain
These lines already exist in httpd.conf file, you may need to change the path or uncomment them. - Original Message - From: "M.N. Ikhwan S." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 12:49 AM Subject: [PHP] can i ask? > > ScriptAlias /php/ "c:/php/" >

Re: [PHP] Dynamic Form

2003-03-24 Thread Awlad Hussain
use javascript - Original Message - From: "Keven Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 4:32 PM Subject: [PHP] Dynamic Form > Hi, > > Can someone tell me if I can use php to accomplish > the following: > > I would like to create a form that can

Re: [PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
user to log in, all you'll need to do is perform the DB password > authentication and then pass the session information from script to script. > > Good luck. > > -Mike > > -Original Message- > From: Awlad Hussain [mailto:[EMAIL PROTECTED] > Sent: Friday, March 2

[PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
Managing user login Whats the best option to use.. cookie?? or session?? Currently i am using cookies and sometime user complain they can't login, what would you suggest? -awlad

[PHP] Built in source encode function..

2003-03-21 Thread Awlad Hussain
I think PHP should have a built in ability tp encode source code, so if someone wish to protect their source code they should be able to. I hear lot of people worried about other people nicking their codes. But i also think this could kill the idea of open source. What do you guys think? -awlad

Re: [PHP] Random array values from associative

2003-03-18 Thread Awlad Hussain
Thanks for your reply, I now have only the keys but I need both keys and the value. ?? any suggestions? - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "Awlad Hussain" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesda

[PHP] Random array values from associative

2003-03-18 Thread Awlad Hussain
I have an associative like array["name"]="hello"; I am trying to get two random values from the array, the key name and the value, but using the codes below from the PHP manual i am getting the inex key value rather than the name. $rand_keys = array_rand ($input, 2); print $input[$rand_keys[0]].

[PHP] String Replace

2003-03-14 Thread Awlad Hussain
I have a string with underscore in the middle.. like "This_That" which function do i use to replace the _ with space? eg to "This That" the string is in a variable.. I know its really simple but just don't know which function to use. any suggestion? -awlad

Fw: [PHP] newbie

2003-03-11 Thread Awlad Hussain
http://www.phpfreaks.com http://www.phpbilder.com Best way to learn is to start writting small program like guestbook, if you get stuck just ask :) Use the PHP manual too... -awlad - Original Message - From: "Robin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 20

Re: [PHP] javascript

2003-03-07 Thread Awlad Hussain
> Yeah, before sending it. Just wondering what the advantage is in validating > before sending. so that the user does not submit any crap.. good example is email validation :) awlad - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Frid

Re: [PHP] JAVASCRIPT

2003-03-07 Thread Awlad Hussain
Diksha, please don't post the same question many times, doing this may reduce the change of getting an answer.. -awlad - Original Message - From: "Diksha Neel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 12:45 PM Subject: [PHP] JAVASCRIPT > dear all, > > hi! >

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Awlad Hussain
did you try to include them as hidden variables? if not, try including them as hidden vars awlad - Original Message - From: "Michiel van Heusden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 11:59 AM Subject: [PHP] attaching php-action to form-button > my pro

Re: [PHP] JAVASCRIPT

2003-03-07 Thread Awlad Hussain
i think you're not calling the the javascript validation function when you're submiting the form you need to call the function like this: try this code below, hope this will help -awlad