I have a search page display results in the format
Search results
--
Product ID NameMore Info
--
1Egg
link
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
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
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
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
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
How do i generate a unique random number?
thanks
awlad
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
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
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
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
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
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
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
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
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
---
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:
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
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
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
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
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
>
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"
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
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
-
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
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
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
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
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
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/"
>
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
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
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
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
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
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]].
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
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
> 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
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!
>
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
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