php-general Digest 16 Apr 2005 06:00:30 -0000 Issue 3400

2005-04-16 Thread php-general-digest-help

php-general Digest 16 Apr 2005 06:00:30 - Issue 3400

Topics (messages 213153 through 213175):

Re: dynamic image will not print properly
213153 by: DuSTiN KRySaK

Re: Amazon/eBay API
213154 by: Matthew Fonda
213161 by: Warren Vail
213170 by: Manuel Lemos

Setting permissions such that file can be included but not open directly
213155 by: Dasmeet Singh
213157 by: Mike
213159 by: Marek Kilimajer
213163 by: Philip Hallstrom
213175 by: Dasmeet Singh

Mysql insert problems
213156 by: Frank Miller
213158 by: John Nichel
213162 by: Andy Pieters
213164 by: Philip Hallstrom

Re: Streaming video BLOBs from MySQL
213160 by: Marek Kilimajer

Re: php and linux shell script
213165 by: Andy Pieters

create file download page for firefox using net-transport thru flashGot?
213166 by: Ginger Cheng

con'td create file download page for firefox using net-transport thru flashGot?
213167 by: Ginger Cheng

Font color
213168 by: Ryan A
213172 by: trlists.clayst.com
213173 by: trlists.clayst.com

processing email
213169 by: Florin Andrei
213171 by: Manuel Lemos

Determining array type
213174 by: NSK

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
php-general@lists.php.net


--
---BeginMessage---
I got it figured out finally!
It is so stupid with what the issue was...
My image was being created exactly as it should have been - and the  
code was fine. Now where my issue was: I had a line of code in there  
that was to prevent people from calling the script directly (had to be  
referred from a particular page). Well IE did not like that for  
printing. Even though the script acted exactly as it should have by  
design. I saved the image to my desktop to test it, and when opening in  
an image app - it would not even open (even though displaying fine in a  
browser). So I changed the file ext of the downloaded file to that of a  
text file and opened it... and what do you know - there was the error  
my php script generates when the page is not called properly.

So I removed that line of code (completely irrelevant to the image  
itself) And win/IE could print like all the other browsers could.

doh!
Dustin
On 14-Apr-05, at 5:41 PM, Richard Lynch wrote:
You'd want to http://php.net/urlencode the text, then.
?php
  $text = This is an example!;
  $text_url = urlencode($text);
  $url = http://example.com/gd_script/text=$text_url/fool_ie.jpg;;
?
On Wed, April 13, 2005 5:42 pm, DuSTiN KRySaK said:
One thing I feel is important to point out before I keep banging my
head off of the wall here...
In the URL parameter that is sent to the file, the url parameter is
just carrying text that is printed into the image. It is not actually
the image name, or anything. The image is generated in the cstl file
(which actually is the image - sends JPEG headers,etc) - with the text
on it (grabbed from the URL parameter).
d
On 13-Apr-05, at 5:03 PM, Richard Lynch wrote:
Yup.
$_PATH['x'] for the items that look like this: .../x=42/
And $PATH (without the underscore) is a string concatenation of all
elements (after the PHP script) that look like this /whatever/
So you might use something like a PHP script named 'scale' and then:
http://example.com/scale/width=100/height=100/images/subdir/ 
bigpic.jpg

and then you know that you want to scale the image in your
images/subdir
naemd bigpic.jpg down to 100x100 at maximum.
You'll have:
$_PATH['width'] - 100
$_PATH['height'] - 100
$PATH = '/images/subdir/bigpic.jpg'

On Tue, April 12, 2005 6:21 pm, DuSTiN KRySaK said:
And then all I should have to do is change my $_REQUESTS to $PATH in
hte cstl file right?
d
On 12-Apr-05, at 5:46 PM, Richard Lynch wrote:
On Mon, April 11, 2005 1:14 pm, DuSTiN KRySaK said:
hey - thanks a lot for the code snip - I am trying to use it  
now

Just to confirm - the $path include file is included in the file
that
calls the cstl file - correct?
Yes.
Something like:
?php require 'pathinfo.inc'; ?
You can use this same technique for not just JPEG, but also PDF,  
SWF
(Ming) and FDF files, all of which Microsoft will screw up if you
don't
fool them with a URL that looks like static content.


d
On 5-Apr-05, at 5:57 PM, Richard Lynch wrote:
On Tue, April 5, 2005 2:26 pm, DuSTiN KRySaK said:
Hi there - I had my first crack at creating a dynamic image. The
thing
is - the image is displayed fine in the browser, but when you go
to
print it, the image is either missing, or part of it is missing.
Is
there something special needed to print a dynamic image?
What you did, *should* work just fine.
But we're talking *MICROSOFT* here!
These people do *NOT* follow standards.  Period.
Here is a code snippet used 

php-general Digest 16 Apr 2005 18:59:57 -0000 Issue 3401

2005-04-16 Thread php-general-digest-help

php-general Digest 16 Apr 2005 18:59:57 - Issue 3401

Topics (messages 213176 through 213210):

Are sessions unreliable?
213176 by: Dasmeet Singh
213177 by: Warren Vail
213182 by: Dasmeet Singh
213200 by: Matthew Weier O'Phinney

Re: Any experience with multi-language PHP sites?
213178 by: Burhan Khalid
213189 by: Marek Kilimajer

Chat Script
213179 by: sukalyan  banga
213210 by: Dasmeet Singh

Re: snort database not appearing in phpmyadmin
213180 by: Burhan Khalid

Re: Sessions and frames
213181 by: Gustav Wiberg

Re: Determining array type
213183 by: zini10
213184 by: Burhan Khalid

Re: Mysql insert problems
213185 by: Burhan Khalid

A question
213186 by: Khorosh Irani
213187 by: Amir Mohammad Saied
213191 by: Khorosh Irani
213195 by: Rory Browne
213203 by: trlists.clayst.com

Access Denied-phpMyAdmin
213188 by: Mark Sargent
213190 by: Marek Kilimajer
213192 by: Mark Sargent
213194 by: Andre Dubuc

forwarding email messages directly from a maildir
213193 by: mbneto

Two tables (Slightly 0T)
213196 by: Ryan A
213197 by: Petar Nedyalkov
213198 by: Ryan A
213199 by: Matthew Weier O'Phinney
213201 by: Ryan A

reducing array size
213202 by: pete M
213206 by: Jason Wong

round?
213204 by: Chris Knipe
213205 by: trlists.clayst.com

query error
213207 by: pete M
213208 by: Satyam

trying to send mail via localhost
213209 by: AndreaD

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
php-general@lists.php.net


--
---BeginMessage---
Hi!
I store some user info in sessions.. it works fine but sometimes what 
happens is that the user id stored in session get changed.. and it 
happens only sometimes..

Can it be browser problem? or this is common?
Thanks

-
Free cPanel Web Hosting
http://hostwindow.info/web-hosting/2/free-cpanel-web-hosting/
---End Message---
---BeginMessage---
I have had similar things happen but in every case it turned out to be a
program bug in my code.  It was usually something I looked at over and
over and I saw the way it was supposed to work, but because I missed a
detail it was not working that way.  I would suggest you find someone to
look over your code and help you with the debug process.  I found many
bugs just trying to explain to someone clearly how it worked.

I suppose it could be a browser problem, but you need to solve those as
well, or at least handle them gracefully.  Do you make it a practice of
having multiple browser instances open at the same time.  I believe they
will each normally get their own session key, and if you get your hands
crossed, you will be looking at the symptoms in the wrong browser,
bottom line, test, test, and test, then get a second set of eyes to look
at your code, show them how it works, they don't need to really know a
lot about PHP, or even programming for that matter, they will ask
questions that as you try to answer them, you will find your problems.

I have never found a legitimate bug in PHP Sessions, I have on the other
hand found I was inconsistently using session handler routines, and
before register globals was turned off, I was finding form variables
that clobbered my session variables (or maybe it was the other way).

Good Luck,

Warren Vail
[EMAIL PROTECTED]

 -Original Message-
 From: Dasmeet Singh [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 15, 2005 11:04 PM
 To: php-general@lists.php.net
 Subject: [PHP] Are sessions unreliable?
 
 
 Hi!
 
 I store some user info in sessions.. it works fine but sometimes what 
 happens is that the user id stored in session get changed.. and it 
 happens only sometimes..
 
 Can it be browser problem? or this is common?
 
 Thanks
 
 
 
 -
 Free cPanel Web Hosting 
 http://hostwindow.info/web-hosting/2/free- cpanel-web-hosting/
 
 
 -- 
 PHP General Mailing List 
 (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
---End Message---
---BeginMessage---
Hi! Warren
Thanks for such a detailed reply... I am already looking into the code...
Just wanted to ask... I recently updated Red Hat's kernel.. and this 
problem seems to started appearing after that... is there a possibility 
of any connection between these two?

Warren Vail wrote:
I have had similar things happen but in every case it turned out to be a
program bug in my code.  It was usually something I looked at over and
over and I saw the way it was supposed to work, but because I missed a
detail it was not working that way.  I would suggest you find someone to
look over your code and help you