[PHP] Re: Real-Time Form Updating

2005-11-18 Thread Chase
Yikes... I am dreadfully sorry to have offended everyone with my OBVIOUSLY non-PHP question. I will look to JavaScript for help in this matter. Please end the spiteful personal emails regarding this topic. ""Chase"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Re: Real-Time Form Updating

2005-11-18 Thread Chase
Yikes... I am dreadfully sorry to have offended everyone with my OBVIOUSLY non-PHP question. I will look to JavaScript for help in this matter. Please end the spiteful personal emails regarding this topic. ""Chase"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Real-Time Form Updating

2005-11-18 Thread Chase
I am trying to build an order form for our clients to use to order hardware and software, or atleast get a price quote for such. The page is done and working using a FORM POST to a second page taht works on the variables and generates the totals. That being siad, I have a field for total numbe

[PHP] Newbie Setup...

2005-06-16 Thread Chase
installed and running... Where do I need to go from here? I have downloaded the latest PHP Windows Binary but I don't know if I should install it first, or if I should try to find MySQL to install first... Any help on setting up this monster would be helpful!!! TIA! Chase -- PHP Ge

Re: [PHP] Variables not passing...

2004-03-04 Thread Chase
code: > > > action="javascript:popUp('viewbydate.php')"> > > All reports from one date to another: Start > > > >Stop > > > > > > > > > > > > The second page starts by displaying this info: > > Reports received between > "$startdate"; ?> and : > > > > > > The regular text displays, but there is just white space where the > > $startdate and $stopdate should be. > > > > Thanks in Advance!! > > Chase > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables not passing...

2004-03-04 Thread Chase
Thank you! It looks like it was a combination of my NOT using the $_POST and the fact that my JScript wasn't allowing the variables to pass... WHO KNEW?!? THANKS!!! Chase <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a session_start() on the second pag

[PHP] Variables not passing...

2004-03-04 Thread Chase
ts by displaying this info: Reports received between and : The regular text displays, but there is just white space where the $startdate and $stopdate should be. Thanks in Advance!! Chase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Chase
Problem solved, thanks Richard... ..You had my solution, but I don't know if it was entirely what you said... As it turns out, it makes a difference that my $message variable was enclosed only in single quotes, not double quotes... who knew? "Chase" <[EMAIL PROTECTED]>

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Chase
OTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Chase, > > Wednesday, February 25, 2004, 5:26:14 AM, you wrote: > > C> None of the variables that are displayed on the result page or > C> injected into the database are showing in the email that I receive > C>

[PHP] Passing Variables Into mail()????

2004-02-24 Thread Chase
I am trying to create a page that will display the results of a form as they are being added into a database as well as forward that info via email to multiple recipients. I sucked code from the .CHM file available at PHP/NET, and it is working with one small issue... None of the variables that a

[PHP] Create Links on the fly?

2003-05-29 Thread Chase
Salutations! I am trying to do something fairly simple, but I can't seem to make it work... I want to have a form field on a page that the user will put in a 3 to 5 digit number and when they click on "Submit" that number will become part of an URL that they are forwarded to. For example, if the

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread Chase Urich
It worked just fine for me, even just phpedit.net worked. Cahse On Mon, 2003-02-17 at 18:21, Al wrote: > Did you try the URL you posted? > > I tried that one and several others listed for phpEdit. > > All say the site is not responding. > > Bryan Lipscy wrote: > > Did you check google? > > http

[PHP] Apache2 & PHP4

2002-12-20 Thread Chase Urich
le, but my guess is that this wouldn't work unless something like the AddType points to PHP to begin with. Can anyone give me some ideas? I'm just fine with Apache 1.3, but RH8 ships with Apache2 and I thought I'd try it ... Chase -- PHP General Mailing List (http://www.php.ne

Re: [PHP] MySQL Server

2002-12-03 Thread Chase
file already... How do I create that in a new database?? Or can I just copy the existing to a new database? Chase "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 03 December 2002 23:09, Chase wrote: > &g

[PHP] MySQL Server

2002-12-03 Thread Chase
ng up any of these items, but my simple question is, how do I determine the name of the MySQL server so I can get PHP to connect to it? My PHP is installed and running great, but if I can't hook up to my database it doesn't do me any good. TIA Chase -- PHP General Mailing List (htt

[PHP] Newbie Mail() Question...

2002-11-27 Thread Chase
downloaded with reference to the page title and/or filename. I have a feeling that this may be a bit too complicated for a newbie like me... ...Suggestions? Chase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie: element index array

2002-11-24 Thread Chase Urich
unset($a['element2']); http://www.php.net/manual/en/function.unset.php > I would like to ask that how can I completely delete the $a['element2'] in > the array? That's mean I will get 'false' in 'isset($a['element2']) after > the delete process is taken place. -- Linux: Because rebooting is for

Re: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread Chase Urich
Check out mysql_insert_id() > For the moment, I do a select max(Id) just after the insert but there > is, my be a best way to do it. -- Linux: Because rebooting is for adding hardware. Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8 signature.asc Description: This is a digi

RE: [PHP] what do you think?

2002-09-27 Thread Chase Urich
Ditto. Chase On Fri, 2002-09-27 at 07:34, Miles Thompson wrote: > > Fully concur. > > mt > > At 01:26 PM 9/27/2002 +0100, Ford, Mike [LSS] wrote: > > > -Original Message- > > > From: Arminas [mailto:[EMAIL PROTECTED]] > > > Se

Re: [PHP] Strange "1" after include

2002-09-23 Thread Chase Urich
tells PHP to echo out the result of include(“menu.inc”), which just happens to be a success code (1). The second for simply includes the file without echoing out anything. Chase On Mon, 2002-09-23 at 02:45, César Aracena wrote: > Hi all, > > I’m wondering why does a number 1 appea

Re: [PHP] Newbie "Parse" error

2002-09-02 Thread Chase Knott
I thank you... I love these newsgroups, but I tend to feel REALLY stupid when the answer comes... Thanks again! Chase [EMAIL PROTECTED] wrote: > You have forgotten a ?> before your HTML starts. > > / Martin > > Citat Chase Knott <[EMAIL PROTECTED]>: > > >

Re: [PHP] Newbie "Parse" error

2002-09-02 Thread Chase Knott
t; > you have missed out a ; on the above line > > use your eyes...:-) > > John > - Original Message - > From: "Chase Knott" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 02, 2002 4:18 PM > Subject: [PHP] Newbie &qu

[PHP] Re: Newbie "Parse" error

2002-09-02 Thread Chase Knott
Thank you... I knew it was something stupid, but I was too close to see it... Thank you!! Erwin wrote: >>I am sure that someone here can see somehting that I am too stupid >>to... Here is my error: >> >>Parse error: parse error, unexpected T_VARIABLE in >>send_contact_form.php on line 13 >>

[PHP] Newbie "Parse" error

2002-09-02 Thread Chase Knott
I am sure that someone here can see somehting that I am too stupid to... Here is my error: Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php on line 13 Here is the code for the page: Message Sent! The Following Message Was Sent To: Name: E-Mail Address: Subjec

RE: [PHP] Creating Image...

2002-07-31 Thread Andrew Chase
To write a GD image to disk as a jpeg, do this instead: $im = imagecreate(50,100); imagejpeg($im, "test/im.jpg"); You don't need to use file handlers. Of course, without doing anything like adding text or lines to $im, it will just be written to disk as a blank image. :) -Andy > -Origin

RE: [PHP] web services and PHP

2002-07-31 Thread Andrew Chase
There is also a PEAR SOAP package available: http://pear.php.net/package-info.php?pacid=87 Some web services also use XML-RPC, a simpler predecessor to SOAP: http://www.xmlrpc.com There are a couple of PHP classes available for implementing XML-RPC clients and servers: http://phpxmlrpc.source

RE: [PHP] MySQL Backup and Restore

2002-07-24 Thread Andrew Chase
I encountered that same timeout problem once, and I wound up just installing my own copy of PhpMyAdmin in an .htaccess protected directory on the server, and extending the time limit there. It only took about 10 minutes to set up, and as an added bonus it was a more recent version of PhpMyAdmin t

RE: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0

2002-07-23 Thread Andrew Chase
If all you're doing is applying the patch (not adding/removing any extensions), you should be able to use ./config.nice which will use all of the configuration commands from your last compile (This is an extremely handy thing if your GD/Freetype setup was particularly ornery the first time aroun

RE: [PHP] Any PHP editor for windows

2002-07-18 Thread Andrew Chase
ftp://ftp.gnu.org/gnu/windows/emacs/latest A helpful Emacs resource: http://www.emacswiki.org/cgi-bin/wiki.pl Be sure to download php-mode for Emacs, too! http://sourceforge.net/projects/php-mode/ And PSGML if you do much with HTML/XHTML/XML: http://www.lysator.liu.se/projects/about_psgml.html

RE: [PHP] Re: gd ->1:image resolution 2:font quality

2002-07-12 Thread Andrew Chase
The GIMP is free (as in speech), and I've found it to work quite well on windows: http://www.gimp.org/ The GIMP for Windows page: http://www.gimp.org/~tml/gimp/win32/ -Andy > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]> > My idea to solve the problem: > 1:Pic

RE: [PHP] using pdf template

2002-07-11 Thread Andrew Chase
There are a couple of different PHP classes that people have written to make PDF creation easier... maybe they would streamline the process enough that you can make them from scratch after all. http://www.pc4p.net/ http://ros.co.nz/pdf/ I didn't know about those the last time I had to deal with

RE: [PHP] Security with XML

2002-07-10 Thread Andrew Chase
You could store passwords as MD5 hashes which of course is NOT really encryption, but it would obfuscate the users' passwords. They would still be vulnerable to social engineering ("Hmm, I'll try his wife's name, then his dog's name, then his phone#," etc) and brute force ("I'm going to run every

RE: [PHP] Editing Word Documents

2002-07-09 Thread Andrew Chase
Hmm, I don't know about intercepting the "Save As..." option from word to trigger a PHP URL, but you could direct people to save their edited word files to a specific directory on a network share on a PHP-enabled server (easy enough on a Windows network, and not too much harder with Samba on Linux

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Andrew Chase
I'm not sure if Apache will recursively process documents this way (Perl script -> HTML output with embedded PHP -> parsed PHP), but what about adding this HTTP header to your PERL script's output before the HTML/PHP code: Content-type: application/x-httpd-php That way Apache would (in theory)

Re: [PHP] Dynamic List Boxes

2002-06-29 Thread Chase
Thank you Stuart!! I feel like an idiot... I had tried moving one or the other outside the loop, but not both... Thank you again!! Chase Stuart Dallas wrote: > On Saturday, June 29, 2002 at 10:03:16 PM, Chase wrote: > >>I am *very* new to PHP, so this may seem like a stupid qu

[PHP] Dynamic List Boxes

2002-06-29 Thread Chase
I am *very* new to PHP, so this may seem like a stupid question... I am trying to generate dynamic drop-down lists for use in an HTML form, but I have done something wrong with my code. Instead of getting one list box with three options, I am getting three list boxes with one option. I have

RE: [PHP] redeclaring functions

2002-06-26 Thread Andrew Chase
http://www.php.net/manual/en/function.include-once.php http://www.php.net/manual/en/function.function-exists.php HTH, -Andy > -Original Message- > From: Taylor York [mailto:[EMAIL PROTECTED]] > > I am having a problem with two scripts that use the same function name. > The two functions

RE: [PHP] Image aliasing

2002-06-24 Thread Andrew Chase
Hi Morgan, None that I'm aware of. I guess this is somewhat OT, but does the person you're giving the images to realize that resizing the images by means of the HTML width/height attributes doesn't do anything to size of the file the person viewing the page has to download? I don't know the par

RE: [PHP] PHP to create static images

2002-06-24 Thread Andrew Chase
To save an image to disk with the imagepng/imagejpg/imagewbmp functions all you have to do is give the file name as the second parameter to the function; so if you wanted to call the first graph 'graph1.png', it would go something like imagepng will attempt to save graph1.png in the same direct

RE: [PHP] _SERVER variable insd prnt sttmnt

2002-04-30 Thread Andrew Chase
For the sake of legibility you could always assign the contents of $_SERVER['PHP_SELF'] to another variable before using it in the print statement: $PHP_SELF = $_SERVER['PHP_SELF']; print ""; Shouldn't be a problem security-wise as long as register_globals is off; Even if somebody tried to pass

[PHP] XHTML tag attribute quoting (Was Re: Forms in PHP)

2002-04-12 Thread Andrew Chase
Are single quotes valid around tag attributes in XHTML? I skimmed over the W3C XHTML 1.0 spec before posting the previous message and got the impression all attributes had to be double quoted. It would be great if single quotes were valid, since I've fallen into the habit of using them for the s

RE: [PHP] Re: Forms in PHP

2002-04-12 Thread Andrew Chase
>May I also suggest that you rewrite your echo statements as: > > echo 'Donate this item'; > >Vastly improves legibility. It's a problem, however, if you want to include a PHP variable in that echo statement, if you're populating a SELECT menu with a loop, for instance; $menu_options = array("A

[PHP] RE: editors

2002-04-11 Thread Andrew Chase
I like emacs - freely available for Windows and Linux, and if you use php-mode for font locking you get nice automatic indentation, and (in Xwindows - not sure about WinNT/XP/9X) syntax highlighting. http://www.gnu.org/software/emacs/emacs.html http://sourceforge.net/projects/php-mode/ -- PHP

RE: [PHP] FTP RAW

2002-03-29 Thread Andrew Chase
FTP with raw sockets is a little bit tricky because it actually requires a second 'data' socket to be opened for each upload/download command. Check out this excellent FTP class, which *doesn't* require PHP to be compiled --with-ftp: http://www.spencernetwork.org/ftp/ftp-class.txt And of course

RE: [PHP] How to adress pictures stored outside of the http server root?

2002-03-21 Thread Andrew Chase
If you just want to prevent users from getting a listing of your image directory, you can do a couple of things: 1) Put an empty 'index.html' (or whatever the server default is) in the image directory, so anyone trying to browse the directory will get a blank page. or 2) (Assuming your server i

[PHP] RE: OOP .. I just don't get it.

2002-03-05 Thread Andrew Chase
Well, the 'Table' class is definitely of limited usefulness.. but where classes come in especially handy is when you want to build reusable code for handling common tasks, like, for instance, MySQL connections and queries... so that your PHP code looks something like /***

[PHP] RE: mysql and telnet.

2002-03-01 Thread Andrew Chase
Hmm, I'm assuming you're paying someone to host your site? Can't you give the hosting company a quick call or e-mail re: whether or not they offer MySQL? They would probably know better than we would. ;) -Andy > Thanks for the advice... But now I need to know what all this means: > > /home/chi

[PHP] RE: Option for Serial or Comm port communication with PHP?

2002-02-26 Thread Andrew Chase
I don't about accessing a serial port directly from PHP, but you can control an X10 Firecracker on a Linix/BSD system by using the exec() command to run BottleRocket: http://mlug.missouri.edu/~tymm/ I threw together a script that would turn a lamp on and off from a web page without to much diffi

[PHP] RE: Creating Tab-Delimited Text File

2002-02-07 Thread Andrew Chase
Which part are you having trouble with, specifically? The task as you've described it is very straightforward, almost pseudo-code. :) -Andy > -Original Message- > From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 07, 2002 12:32 PM > To: PHP Email List > Subjec

[PHP] RE: 72dpi with gdlibrary2?

2002-02-05 Thread Andrew Chase
IANAGE (I Am Not A GD Expert), but as far as I know the GD functions dealing with image size don't concern themselves with the resolution of an image in terms of dots per inch, just with the number of pixels. Since most uses of the GD library functions in PHP will have to do with creating/manipul

RE: [PHP] Oddity

2002-02-04 Thread Andrew Chase
You can also do \n"; } ?> (mysql_fetch_array uses MYSQL_BOTH for the second argument by default, which returns an array using both numeric and associative keys - that's why you were getting double results. :)) Per the manual: --

RE: [PHP] Can this be done in PHP?

2002-02-04 Thread Andrew Chase
You might want to take a look at PhpAdsNew, a banner rotation/management system using PHP and MySQL: http://sourceforge.net/projects/phpadsnew The system's admin tools assume that you're selling ad space, but there's no reason you couldn't use it for a banner exchange instead. -Andy > On Fri,

[PHP] RE: Building my site... again - somewhat OT

2002-01-28 Thread Andrew Chase
Hi Torkil, You may want to head over to Webmonkey and read their article about Search Engine optimization: http://hotwired.lycos.com/webmonkey/01/23/index1a.html A few key points that have proven very helpful with my personal web site: • A central "crawler index" with links to each page on my

[PHP] RE: Creating a pdf document

2002-01-24 Thread Andrew Chase
http://www.php.net/pdf You'll need Thomas Mertz' PDFlib, which is free for personal/not-for-profit use, but requires a license fee for commercial use: http://www.pdflib.com/pdflib/index.html -Andy > -Original Message- > From: Mihail Bota [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, J

RE: [PHP] PHP Chat REALTIME

2002-01-23 Thread Andrew Chase
> -Original Message- > From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 22, 2002 7:35 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP Chat REALTIME > > the real problem is how to get the data to the client without > use of a socket I've been tinkering

[PHP] Has anyone tried Serlient?

2002-01-03 Thread Andrew Chase
Per Triplehash's website at http://www.triplehash.com/serlient: "Triplehash Serlient lets you package, run and distribute your PHP and CGI-based websites into Windows software. Serlient does its work by combining intelligent web-server simulation software and web-browsing (Internet ExplorerR) ca

RE: [PHP] PHPhish Logo

2001-12-14 Thread Andrew Chase
Already used by PostgreSQL :) http://www.postgresql.org > -Original Message- > From: John Lim [mailto:[EMAIL PROTECTED]] > > P for Pachyderm! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] Logo proposal - voting script!

2001-12-14 Thread Andrew Chase
Hmm, I get a 404 error as of 17:44 GMT. I hope that 'Mole' is one of the options on the list... I'm kind of inclined to defer to Rasmus on the issue anyway, what with him being the guy responsible for creating PHP in the first place. :) I'm also keeping in mind that (unless I missed something),

RE: [PHP] Logo proposal

2001-12-11 Thread Andrew Chase
Maybe an animal beginning with "P" would be a good Mnemonic device (and good for alliteration; think "The PHP Panda" or "The PHP Platypus".) Hmm, I guess Panda and Platypus aren't particularly "powerful" animals, though. :/ Other animals beginning with "P": Pelican Panther (cheesy) Polliwog Pro

RE: [PHP] Re: Image problem

2001-12-07 Thread Andrew Chase
PHP needs to be compiled with libjpeg and libpng in addition to the GD library to use those formats respectively. The PHP manual section covering image functions (including those for manipulating JPEGs and PNGs) is at http://www.php.net/manual/en/ref.image.php -Andy > -Original Message--

[PHP] RE: banner management system

2001-12-04 Thread Andrew Chase
Try PhpAdsNew - it uses a MySQL backend: http://sourceforge.net/projects/phpadsnew/ It may not be what you're looking for if your site gets *extreme* amounts of traffic, but otherwise it's quite capable. (And free. :) ) -Andy > -Original Message- > From: Ali [mailto:[EMAIL PROTECTED]]

RE: [PHP] : IIS server doesn't recognize PHP pages

2001-12-04 Thread Andrew Chase
I'm not at all familiar with IIS, but in Apache terms it sounds like a MIME type problem; the server doesn't know what to do with .PHP files, so it assumes they're something that should be sent as a download/attachment instead of parsing with PHP and sending as HTML - I would imagine there would b

RE: [PHP] Dynamically created dropdowns

2001-12-04 Thread Andrew Chase
That's true, but you could use PHP and the MySQL data to generate the JavaScript arrays for the dynamic menus... you can escape into PHP within the

[PHP] RE: color problems when resizing image with GD

2001-11-29 Thread Andrew Chase
Are you using GD 2.0.1 and PHP 4.0.6? If yes then try $dst_img = ImageCreateTrueColor ($new_w,$new_h); (http://www.php.net/manual/en/function.imagecreatetruecolor.php) -Andy > -Original Message- > From: Michael Hall [mailto:[EMAIL PROTECTED]] > Subject: color problems when resizing

[PHP] RE: php-general Digest 23 Nov 2001 14:10:17 -0000 Issue 1011

2001-11-26 Thread Andrew Chase
You might want to give 'wget' a try - it's a GNU utility for downloading mirrors of web sites: http://www.gnu.org/software/wget/wget.html If you use it with the '-r' and '-k' options it will crawl your site recursively, and convert absolute links to relative ones in the downloaded HTML files. >

[PHP] RE: webmaster@php.net dude

2001-11-16 Thread Andrew Chase
I'm cheap too. That's why I use a free editor that does support line numbers, like ConTEXT (http://www.fixedsys.com/context/) or EMACS. It's been a long time since I had debugged anything in PERL, but it seems to me that knowing exactly which line the problem is occurring on is a lot more helpfu

[PHP] RE: Forms and Netscape -- spacing problem -- Help!

2001-10-22 Thread Andrew Chase
It's almost certainly not W3C compliant, but if your form is inside a table (I know, I know - you're not supposed to use tables for layout) you can hide the tags outside the tags of the cell containing the form: E.G.:

RE: [PHP] php hosting

2001-10-22 Thread Andrew Chase
They've been mentioned on the list before, but I had a great experience with Cedant.com. Apache, PHP4, MySQL, and shell access via SSH (and the ability to compile your own software in a /home/youraccount/bin directory). I hosted a site with them for a few months earlier this year before taking t

[PHP] RE: WebMail Client

2001-10-02 Thread Andrew Chase
You might want to take a look at Netmania. (http://www.netmania.org) Caveats: I helped install Netmania at a former employer back in February 2001, and with the then-current distribution we had all kinds of trouble setting it up until we realized that it depended on having *all* error handling t

RE: [PHP] RE: What development environment do you use for PHP?

2001-08-27 Thread Andrew Chase
WinCVS is available from http://www.wincvs.org - they also have Mac and X versions, although I've never tried them. -Andy > -Original Message- > From: John Meyer [mailto:[EMAIL PROTECTED]] > > Where do you get WinCVS , by the by? > -- PHP General Mailing List (http://www.php.net/) To

[PHP] RE: What development environment do you use for PHP?

2001-08-27 Thread Andrew Chase
I keep my web documents in a CVS repository on a Linux box, and use WinCVS (GNU) to check files in and out on my WinNT desktop. I use ConTEXT (freeware) for editing. Documentation and help are always available at php.net and google.com. I have an Apache 'staging' server, and to keep the docume

[PHP] RE: ImagePNG problem

2001-08-20 Thread Andrew Chase
Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color PNGs, per the manual: http://php.net/manual/en/function.imagecreatetruecolor.php -Andy > -Original Message- > From: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] > > Is there any way to tell ImagePNG() to create

[PHP] RE: could i get a clue?

2001-08-15 Thread Andrew Chase
No sure how you mean 'calling' the script... but in addition to using something like document.location='myscript.php' It would theoretically be possible to pass javascript variables to a PHP script in the same way by using something like var foo = "Some Text"; var bar =

RE: [PHP] can't get gd working at all

2001-07-26 Thread Andrew Chase
Glad your host got that straightened out - for future reference, an easy way to look at the server's PHP config is to make a page using phpinfo - It will show you whether GD (and other extensions) are installed, as well as the image format(s) supported and whether or not Freetype support is inc

[PHP] RE: "report" generation with PHP

2001-07-16 Thread Andrew Chase
There's more than one way to skin a cat - if not directly from PHP to PDF, why not PHP to a .TeX LaTeX file, then use exec() to run latex and dvi2pdf on it. No license restrictions there that I know of, and you can get some very nice results with LaTeX. -Andy > -Original Message- > From

RE: [PHP] Upcoming wrox php/flash book?

2001-07-13 Thread Andrew Chase
Also, PHP's .SWF generating capabilities aside, PHP could also be used to generate included text on the fly - I forget the exact command, but I know you can define the contents of a variable from an external file in Flash. This would lend itself to updating a newsfeed or "What's New" blurb within

[PHP] RE: sorting results of opendir()

2001-07-09 Thread Andrew Chase
Try reading the directory contents into an array, sorting it, *then* outputting the contents of the array: $dir = opendir("."); $dirlist = array(); $index = 0; while($file = readdir($dir) && $file != "." && $file != ".."){ $dirlist[$index++] = $file; } sort($dirlist); foreach($dirlist

RE: [PHP]somebody help me out here!

2001-07-09 Thread Andrew Chase
There's a search engine optimization tutorial at Webmonkey: http://hotwired.lycos.com/webmonkey/01/23/index1a.html?tw=e-business It mentions doing the Amazon-style search-engine friendly URLs and links to a page about mod_rewrite for Apache: http://httpd.apache.org/docs/mod/mod_rewrite.html -

[PHP] RE: upgrading to gd2.0.1

2001-07-06 Thread Andrew Chase
If you want to manipulate PNG or JPEG images, you need to make sure you have the PNG and JPEG libraries, and recompile PHP with GD as before, and adding --with-png-dir=/path/to/pnglib, --with-jpeg-dir=/path/to/jpeglib For the complete list of compilation options, see http://php.net/manual/en/inst

RE: [PHP] protect source code

2001-06-21 Thread Andrew Chase
You might want to check out APC - an open-source alternative to Zend's commercial product. I've never used it, but it looks pretty good: http://apc.communityconnect.com/ -Andy > -Original Message- > > I am on a project and the issue that struck me is how to > protect my source > > cod

[PHP] RE: bad form...

2001-06-20 Thread Andrew Chase
As long as your code is well-formatted and well-commented, I don't think it's a problem, especially for simple forms for quick DB inserts or sending e-mail. You can do nice error handling without annoying Javascript alerts, too; when the form is submitted you can check for missing/invalid field v

RE: [PHP] image code

2001-06-20 Thread Andrew Chase
I wrote thumbnailing script that did exactly what you said below, but to eliminate the needless regeneration of existing thumbnails I just did a check to see if the thumbnail already exists: if(!file_exists("/path/to/thumbnail.jpg")){ //Create the thumbnail here } If the thumbnail alre