[PHP] Drop down lists

2004-01-17 Thread BigMark
Is it possible to have usernames from my db populated into a drop down list. If so What and where does it go to make it all work, ive tried everything i know ( which is not much by the way). Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] Image Header Issues

2004-01-17 Thread Larry Brown
Giving up sessions for one simple issue sounds a bit drastic. I'll dig up the header information I'm sending that the x.pdf addition helped me with and send them to you if you'd like. I can't see anything as strong/secure as sessions to manage authentication as well as a dozen other performance b

Re: [PHP] Justin is a genius

2004-01-17 Thread Ryan A
Hey, Only problem with that idea is most of the people who ask for help here are broke SOBs like me :-) Cheers, -Ryan On 1/18/2004 4:11:21 AM, Justin French ([EMAIL PROTECTED]) wrote: > On Friday, January 16, 2004, at 11:57 PM, Robert Temple wrote: > > > In particular, Justin French solved

[PHP] Troubles Accessing Global Variables

2004-01-17 Thread Adelaide Yip
Hi, I'm having troubles accessing the global variables. From my understanding of PHP, when you declare a variable 'global' it is no longer just in the local scope, but becomes known in the global scope of the program. In file, 'layout.php' ... function top_sidebar_header() { global $

[PHP] Troubles Accessing Global Variables

2004-01-17 Thread Adelaide Yip
> Hi, > > I'm having troubles accessing the global variables. From my understanding > of PHP, when you declare a variable 'global' it is no longer just in the > local scope, but becomes known in the global scope of the program. > > In file, 'layout.php' ... > function top_sidebar_header() { >

Re: [PHP] Image Header Issues

2004-01-17 Thread Bob Eldred
OK, that's it. The session_start() is the issue. Unfortunately, the "&img=x.jpg" didn't help. Now I've got to figure out some sorta security without using sessions. Thanks, for at least pointing me in the right direction. Now if we could figure out why this would be happening, that would be gr

RE: [PHP] POST method for hyperlink

2004-01-17 Thread Joe Harman
Thanks Richard... I will do some erading on that Cheers! Joe -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Saturday, January 17, 2004 11:08 PM To: Joe Harman Cc: [EMAIL PROTECTED] Subject: Re: [PHP] POST method for hyperlink Hello Joe, Sunday, January 18, 2004

Re: [PHP] POST method for hyperlink

2004-01-17 Thread Richard Davey
Hello Joe, Sunday, January 18, 2004, 3:26:18 AM, you wrote: JH> I am curious if there is anyway to take a variable that is passed via a JH> URL by a reguler text hyperlink JH> Ex: http://localhost/Calendar/active_layout.php?d=2.1.2004 JH> and hide it like you would do with the POST method using

Re: [PHP] help with form

2004-01-17 Thread Justin French
On Sunday, January 18, 2004, at 01:39 PM, eawilkes wrote: I'm creating a form that puts data into two different tables in the database. I was wondering how to get the "ID" from the first table and, in the "background", associate it with the second table? any help is GREATLY appreciated! Check

Re: [PHP] help with form

2004-01-17 Thread daniel
> I'm creating a form that puts data into two different tables in the > database. I was wondering how to get the "ID" from the first table > and, in the "background", associate it with the second table? > > any help is GREATLY appreciated! > Firstly you never said which db ? I'll assume mysql, ch

[PHP] help with form

2004-01-17 Thread eawilkes
I'm creating a form that puts data into two different tables in the database. I was wondering how to get the "ID" from the first table and, in the "background", associate it with the second table? any help is GREATLY appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] POST method for hyperlink

2004-01-17 Thread Joe Harman
Hello, I am curious if there is anyway to take a variable that is passed via a URL by a reguler text hyperlink Ex: http://localhost/Calendar/active_layout.php?d=2.1.2004 and hide it like you would do with the POST method using forms Ex: http://localhost/Calendar/active_layout.php Hidden or POS

Re: [PHP] Justin is a genius

2004-01-17 Thread Justin French
On Friday, January 16, 2004, at 11:57 PM, Robert Temple wrote: In particular, Justin French solved the problem with just a few lines of code - the sign of a true genius. Thanks again, Justin! LMFAO -- that's two compliments off this list in a few days... I should start a consultancy :P Justin

Re: [PHP] Re: alternative to protecting files through http auth.

2004-01-17 Thread Jason Wong
On 星期日 18 [EMAIL PROTECTED] 2004 01:59, Scott Taylor wrote: > Yes, sorry. Here is the code: $file = > 'http://miningstocks.com/protected/archive/Dec03PostPress.pdf'; //now > view the PDF file header("Content-Type: application/pdf"); > header("Accept-Ranges: bytes"); header("Content-Length: > ".fil

Re: [PHP] Win32 Getting username from windows

2004-01-17 Thread John W. Holmes
Gastovski (James) wrote: I'm using the following code to extract the username running on the windows machine: [start code] $api = new win32; $api->registerfunction("long GetUserName (string &a, int &b) From advapi32.dll"); $len = 255; $name = str_repeat("\0", $len); if ($api->GetUserName($name, $l

RE: [PHP] Image Header Issues

2004-01-17 Thread Larry Brown
Since putting .jpg solved the problem for me, I'm ok with that work around, but you're right. I'm using session_start() on all of my scripts. That's also good to know that it doesn't fail without that function so I have a better idea of where to look, the next time I have header problems. Thanks

Re: [PHP] Thumbnails in database - SOLUTION

2004-01-17 Thread Kevin Waterson
This one time, at band camp, Kevin Waterson <[EMAIL PROTECTED]> wrote: > I need to store the thumbnails in the database. > So, I need to resize the image at the same time as I store it. Ok, so the secret here is output buffering // prepare the image for insertion $imgData =adds

[PHP] Win32 Getting username from windows

2004-01-17 Thread Gastovski \(James\)
I'm using the following code to extract the username running on the windows machine: [start code] $api = new win32; $api->registerfunction("long GetUserName (string &a, int &b) From advapi32.dll"); $len = 255; $name = str_repeat("\0", $len); if ($api->GetUserName($name, $len) == 0) { die("faile

Re: [PHP] Thumbnails in database

2004-01-17 Thread Jason Sheets
The latest version of GD adds support for opening an image from a pointer to the C/C++ API but that support is not in PHP. It is recommended to create the thumbnail on file upload using the $_FILES array to get the temporary file name, if you need to create a thumbnail from a file only in the d

Re: [PHP] Thumbnails in database

2004-01-17 Thread Toby Irmer
http://www.sum-it.nl/en200319.php3 Create thumbnail a.. Cropping and scaling a photo is surprisingly easy with PHP. b.. Unfortunately the functions imagecreatetruecolor() and imagecopyresampled() exist only since PHP 4.0.6 using GD 2.0.1. Older PHP version supports the functions imagecreate()

Re: [PHP] Thumbnails in database

2004-01-17 Thread Peter Vertes
On Sat, 2004-01-17 at 16:44, Kevin Waterson wrote: > Why create thumnails? You can resize the images on > the fly when needed. This would be too expensive. I need to store the thumbnails in the database. So, I need to resize the image at the same time as I store it. I can do this and save

php-general Digest 17 Jan 2004 22:11:38 -0000 Issue 2536

2004-01-17 Thread php-general-digest-help
php-general Digest 17 Jan 2004 22:11:38 - Issue 2536 Topics (messages 174916 through 174937): Re: HTML tags inside PHP?? 174916 by: Binay Re: dynamicly generating a transparent truecolor image 174917 by: Mike Brum 174923 by: Brian V Bonini stdin from a pipe

Re: [PHP] Image Header Issues

2004-01-17 Thread Toby Irmer
I have the same problem. Strange: I have a session_start(); before the header... if I take that out, the image will download as a JPG... so maybe if you find a way to do things in this script without starting the session first... toby - Original Message - From: "Larry Brown" <[EMAIL PROT

Re: [PHP] I bought "SAMS PHP & mySQL WEB DEVELOPMENT":)

2004-01-17 Thread memoimyself
Hi there, On 17 Jan 2004 at 21:28, SASSINC Internet Solutions - wrote: > Now I have SAMS book for PHP and mySQL but in Arabic.. so now at the > moment I only want to learn things which will help me in my project.. > so which lessons must I see.. and which PHP Actions will I use for > that? Wha

Re: [PHP] Thumbnails in database

2004-01-17 Thread Kevin Waterson
This one time, at band camp, Daniel Guerrier <[EMAIL PROTECTED]> wrote: > Why create thumnails? You can resize the images on > the fly when needed. This would be too expensive. I need to store the thumbnails in the database. So, I need to resize the image at the same time as I store it. I can

Re: [PHP] Thumbnails in database

2004-01-17 Thread Mike Migurski
>Why create thumnails? You can resize the images on >the fly when needed. It's generally good practice to trade CPU for disk space, where possible. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno

Re: [PHP] Re: alternative to protecting files through http auth.

2004-01-17 Thread Scott Taylor
Subject: Re: [PHP] Re: alternative to protecting files through http auth. From: Jason Wong <[EMAIL PROTECTED]> Date: Sat, 17 Jan 2004 05:08:29 +0800 To: [EMAIL PROTECTED] On Saturday 17 January 2004 04:03, Scott Taylor wrote: >Alternately, if you aren't able to create directories or access files

RE: [PHP] Image Header Issues

2004-01-17 Thread Larry Brown
try adding showpicture.php?pid=111384&img=x.jpg to the end even though you aren't using that variable, IE may see that the type is jpg here. I have this same problem/workaround in place right now for a script that wouldn't work with IE without it for downloading pdf. (pdf was generated on the fly)

[PHP] I bought "SAMS PHP & mySQL WEB DEVELOPMENT":)

2004-01-17 Thread SASSINC Internet Solutions - Arabic Department
Hi all.. Now I have SAMS book for PHP and mySQL but in Arabic.. so now at the moment I only want to learn things which will help me in my project.. so which lessons must I see.. and which PHP Actions will I use for that? I want to make a PHP page that reads from a mySQL Database.. This page dis

Re: [PHP] Trying again: Random(?) blank pages when using sessions

2004-01-17 Thread memoimyself
Matt, You're not by any chance using an Apache server on a machine that also has a firewall, are you? I've had all sorts of mysterious session-related problems when running scripts on my test server (Apache on Win2k with a ZoneAlarm firewall). Took me *ages* to zero in on the source of the pro

Re: [PHP] Thumbnails in database

2004-01-17 Thread Robert Cummings
> --- Kevin Waterson <[EMAIL PROTECTED]> wrote: > > I am storing some images in a database. No problems > > there. > > But how can I create a thumbnail do store in the db > > also > > without having to create the thumbnail image on the > > file system first? > > > > Kind regards > > Kevin > > >

Re: [PHP] Please reply as fast as possible..

2004-01-17 Thread Richard Davey
Hello, Saturday, January 17, 2004, 4:59:07 PM, you wrote: SISAD> Now I want the PHP file to take the Username and SISAD> Password after the user enter them in the fields and compare SISAD> them with the ones inside the database.. if they are the same.. SISAD> the serial field inside the database

Re: [PHP] Image Header Issues

2004-01-17 Thread Bob Eldred
Again, it is *not* that known issue. That's the very first thing I checked. If that were the issue, jpgs from other sources would also not save properly. But they do, as I've stated several times. Thanks, though. Bob - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To:

[PHP] Please reply as fast as possible..

2004-01-17 Thread SASSINC Internet Solutions - Arabic Department
Hi... I stopped here in my program : I want to make a PHP page that reads from a mySQL Database.. This page displays two fields for the user : 1- Username. 2- Password. Now in the database there are many columns.. each one has many fields : Username, Password, Serial, Phone No., Address..Etc..

Re: [PHP] Image Header Issues

2004-01-17 Thread Brian V Bonini
On Fri, 2004-01-16 at 20:48, Bob Eldred wrote: > Grr.that's *not* the problem. IE saves JPGs just fine, so long as they > are not passed through this particular script. Which is why I think it has > something to do with the headers. > > Bob > > - Original Message - > From: "Arthur

Re: [PHP] Thumbnails in database

2004-01-17 Thread Daniel Guerrier
Why create thumnails? You can resize the images on the fly when needed. --- Kevin Waterson <[EMAIL PROTECTED]> wrote: > I am storing some images in a database. No problems > there. > But how can I create a thumbnail do store in the db > also > without having to create the thumbnail image on the >

RE: [PHP] dynamicly generating a transparent truecolor image

2004-01-17 Thread Brian V Bonini
On Sat, 2004-01-17 at 08:12, Mike Brum wrote: > PNG's support transparency as well as GIFs. > Just keep in mind that IE does not support transparency in png's. -- BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.m

[PHP] Thumbnails in database

2004-01-17 Thread Kevin Waterson
I am storing some images in a database. No problems there. But how can I create a thumbnail do store in the db also without having to create the thumbnail image on the file system first? Kind regards Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] Re: Pdfs getting corrupted during upload

2004-01-17 Thread Bogdan Stancescu
You didn't specify whether you and your client are using the same server. If not, make sure you have the same gpc slashing settings on both servers. Bogdan Binay wrote: Hi all, I m undergoing a very weird kind of file uploading problem. I m trying to upload an image file and a pdf file using H

[PHP] How to grab a value from the database?

2004-01-17 Thread SASSINC Internet Solutions - Arabic Department
Hi... I stopped here in my program : I want to make a PHP page that reads from a mySQL Database.. This page displays two fields for the user : 1- Username. 2- Password. Now in the database there are many columns.. each one has many fields : Username, Password, Serial, Phone No., Address..Etc..

Re: [PHP] spelling without aspell/pspell?

2004-01-17 Thread Lowell Allen
> Hi, > > I just found a really nice set of javascripts for spell-checking a > textarea before submitting, which is really nice, BUT is shell_exec()'s > to aspell, which neither my host or my staging server has installed. > It works with both PHP and Perl too. > > There's a demo here: > http://ww

[PHP] stdin from a pipe

2004-01-17 Thread Decapode Azur
hello, What is the better way to read from a pipe from a php cli script? #! /usr/bin/php -q or I have tryed these ways, but the problem is that if there is no pipe input, the script is waiting for ^D from the user (so this is a problem if the php filter is used in a bash script, because it wil

RE: [PHP] dynamicly generating a transparent truecolor image

2004-01-17 Thread Mike Brum
PNG's support transparency as well as GIFs. The short answer is that you'll create your image and also specify a color that will be made transparent. I don't see why imagecreatetruecolor making a default black image is a problem? If it is, just set black to be the transparent color and go from th

Re: [PHP] HTML tags inside PHP??

2004-01-17 Thread Binay
echo ' ..'; cheers Binay - Original Message - From: "SASSINC Internet Solutions - Arabic Department" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 17, 2004 3:31 PM Subject: [PHP] HTML tags inside PHP?? > Hi all! > > How is everything? > > I'm want to insert

[PHP] HTML tags inside PHP??

2004-01-17 Thread SASSINC Internet Solutions - Arabic Department
Hi all! How is everything? I'm want to insert some HTML tags inside the PHP page to echo them.. And then I will use "MARKER" to import them by VB program.. So now how to insert HTML tags to PHP? Waiting your replies.. Thanks alot for advance

[PHP] Pdfs getting corrupted during upload

2004-01-17 Thread Binay
Hi all, I m undergoing a very weird kind of file uploading problem. I m trying to upload an image file and a pdf file using HTTP Upload form. Now my client is complaining that pdf file is getting corrupted during uploading as they do not open once uploaded. But when i try to upload(using WinXp

Re: [PHP] Documentation on features not in current release (SimpleXML PHP5 Beta 3)

2004-01-17 Thread Chris Shiflett
--- Jonathan <[EMAIL PROTECTED]> wrote: > Where would I be able to find a function reference or documentation > on new features that are not documented in the official manual? Usually nowhere. Features that have yet to be documented are probably so experimental, new, unfinished, or whatever, that