[PHP] Image Problem

2004-06-28 Thread Monil Chheda
Hi,

I store images in DB properly... no issues using the
following code


// Example php script to demonstrate the storing of
binary files into
// an sql database. More information can be found at
http://www.phpbuilder.com/
?>


Store binary data into SQL
Database


This file has the following Database ID:
$id";

} else {

// else show the form to submit new data:
?>


Banner Text:


Image to upload/store in database:












I use the foll file to reterieve it...

";

/*
Fetching the actual data from the DB Table
*/
$query = "select banner_image, text, filetype from
banner_details where id=$random_number";

$result =   mysql_query($query, $connection) or
die("Couldn't Execute the query.");

$data = @MYSQL_RESULT($result,0,"banner_image");
$text = @MYSQL_RESULT($result,0,"text");
$type = @MYSQL_RESULT($result,0,"filetype");

echo "The banner is ";

Header("Content-type: $type");

echo $data;


echo "The assocaited text is : $text";


?>

--

And this for calling it...

";

?>

I get an Img with a cross (broken)...

Whats the error?

Am i missing something?

Pls help

-Monil

=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===



__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Saving

2003-06-13 Thread Monil Chheda
Hi,

Can any one guide me as to how can I save dynamically
generated .JPEG images on the server ?

I would be very grateful...

Thanks a tonne...



=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Random Image Store

2003-06-10 Thread Monil Chheda
Hi,

I want to create an php system that prevents automated
registrations. 

I have come up with the script in which users come
over and need to enter a random key displayed on the
images while submitting their info. If the number
entered is correct, the post is submitted, else, the
same form is displayed with another random key. 

Now, any one doing a "View Source" gets to know the
image source as "myscript.php". What I want to do is
to save the .jpeg image on my disc with the name as
"randomnumber.jpeg" , where randomnumber is generated
randomly for that page.

Then, I would put an  tag
and no one will be able to get the name of my php file
creating the image.

I use the following code:-




Live example is at
http://www.eliteral.com/moveditems/test1.php

How do I store the images on my server ? Is there a
better way to create random numbers embedded in
dynamic images??

Your help will be appreciated !!


Thanks !!

=====
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Log file details required !! Help

2003-03-16 Thread Monil Chheda
Hi,

I need to get some details from a LOG file as to which
keywords are used...

I have attached the LOG file.

I heed the details of the following:-

1. Ip Address
2. Date
3. The page that was requested
4. KeyWords used by the Search Engine [ Google / Yahoo
seperated ]
(ordered BY DATE) in a tabular FORMAT

I am using the following CODE.. But , it doesnt work .
Am I MISSING SOMETHING ?







Could any one please help me 

Thanks...

-Monil Chheda
http://services.eliteral.com


=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

web.zip
Description: web.zip
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FOPEN and EREG not working

2003-03-16 Thread Monil Chheda
Hi,

I need to get some details from a LOG file as to which
keywords are used...

I have attached the LOG file.

I heed the details of the following:-

1. Ip Address
2. Date
3. The page that was requested
4. KeyWords used by the Search Engine [ Google / Yahoo
seperated ]
(ordered BY DATE) in a tabular FORMAT

I am using the following CODE.. But , it doesnt work




Could any one please help me 

Thanks...

-Monil Chheda
http://services.eliteral.com

=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

web.zip
Description: web.zip
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File problem - PHP Quest

2003-03-01 Thread Monil Chheda
Hi,

I have a problem in grabbing data from a file.

I need to fetch data from raw log files and display it
in a proper tabular manner.

The log file contains:

AWSTATS DATA FILE 5.0 (build 1.345)
# If you remove this file, all statistics for date
2002-12 will be lost/reset.
# Position (offset in bytes) in this file of beginning
of each section
# for direct I/O access. If you made changes somewhere
in this file, you
# should also remove completely the MAP section
(AWStats will rewrite it
# at next update).
BEGIN_MAP 23
POS_GENERAL 1602  
POS_PAGEREFS 4060
POS_SEARCHWORDS 5537
POS_KEYWORDS 5769
POS_ERRORS 5916
POS_SIDER_404 6040
POS_EMAILSENDER 
POS_EMAILRECEIVER 
END_MAP

BEGIN_GENERAL 8
LastLine 20030101041055
FirstTime 20021201004812
LastTime 20021231204118
LastUpdate 20030101044540 392 0 391 0 1
TotalVisits 279 
TotalUnique 221 
MonthHostsKnown 0   
MonthHostsUnknown 258 
END_GENERAL

~~

I need the contents between BEGIN_MAP and END_MAP to
be displayed on the browser.
But I need each word seperate in a tabular form. For
Example on the browser it should display:

LOG DETAILS No.Of.Results.
POS_SEARCHWORDS 5537
POS_KEYWORDS5769

--

I am using the following script: But it doesnot work.
Kindly help me.




Thank you.

Best Regards,
Monil Chheda

+91-22-5699 1887
+91-22-2820 4125
+09821405705
http://www.eliteral.com
http://order.eliteral.com
http://domains.eliteral.com
http://services.eliteral.com


=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Upload status

2002-12-18 Thread Monil Chheda
Hello,

I am using an upload script provided in one of the
PhPScripts sites.

Its working perfectly fine.

The form is used to upload huge files ( 10 - 15 MB ).

The upload takes place without any hassels. But till
the time the file is uploaded , there is no indication
for how much of file has been uploaded .

So can anyone help me setting up a progress (status)
bar showing the upload in progress ie 10% Completed
... 50 % completed ... 100 % completed or something
that would indicate that the file is being uploaded ?

Thanks a zillion for the same.

Waiting for your reply :)

=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] A weired browser-session problem

2002-09-22 Thread Monil Chheda

Hello friends,

I have a weired problem with sessions.

I am using session_start();
session_register("Sessionname");

The following is my problem.
1) User with valid username and password is given an
Administration Menu.
2) Various options are there. He selects a particular
option.
3) The selected option is opened in a new page.
4) He does his job on the new window. But midway ( say
after 2 pages ), after making a few chioices, he
closes the newly opened window,leading to some
variables being registered
5) Now , after some time , selects the same option.
6) Makes his selection. But , he gets the choices that
he had used previous time inspite of him closing the
window .

How do I get rid of the problem ? I would like that
even if the user closes the browser midway and then
again checks the same , his new sessions should be
registered and not the old.

Is there a way wherein we can destroy the sessions of
the new browser window as soon as the browser is
closed ?

I would be very thankful to you for your help.
Thanks a zillion for your help.

Best Regards,
Monil Chheda
http://www.eliteral.com
http://domains.eliteral.com
http://services.eliteral.com

=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Session problem

2002-09-02 Thread Monil Chheda

Hi,  

I am using session_start() and
session_register("variablename") . The when I click on
the back button from the browser it shows me the
following error:  "Warning: Page has Expired The page
you requested was created using information you
submitted in a form. This page is no longer available.
As a security precaution, Internet Explorer does not
automatically resubmit your information for you.   To
resubmit your information and view this Web page,
click the Refresh button. "   

How can I remove this. I have used RedHat Linux 7.2
and PHP 4.2.2 with MySQL-Max-3.23.51



=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Last URL visited

2002-08-31 Thread Monil Chheda

Hello,

I am a PHP rookie.

I would like to knoe as to how can i get the url of
the page I last visited on my present URL
eg. Suppose I visited http://www.eliteral.com ...

On Clicking or going to any other link on the pages , 
is it possible to get a url something as 
http://www.eliteral.com/somepage.php?visited=http://www.eliteral.com

(newpage ? old visited page)

or can i get some mechanism where the last url was
visited and always follows the URL.

I would be happy to know how to do the same

Thanks a zillion in advance for the same

=
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===
===

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php