[PHP] PHP+MYSQL: unable to select database

2001-12-10 Thread josep
I get: unable to select database when I visit my guestbook.php The user trying it is set in the mysql.user (without any perms) and in the mysql.db (with all perms). Do I have to set all perms to this user in the mysql.user table? Josep -- PHP General Mailing List

[PHP] PHP 4.1.0 released

2001-12-10 Thread Zeev Suraski
After a lengthy QA process, PHP 4.1.0 is finally out. Download at http://www.php.net/downloads.php ! PHP 4.1.0 includes several other key improvements: - A new input interface for improved security (read below) - Highly improved performance in general - Revolutionary performance and stability

[PHP] PHP 4.1.0 released

2001-12-10 Thread Zeev Suraski
After a lengthy QA process, PHP 4.1.0 is finally out. Download at http://www.php.net/downloads.php ! PHP 4.1.0 includes several other key improvements: - A new input interface for improved security (read below) - Highly improved performance in general - Revolutionary performance and stability

[PHP] PHP+MYSQL unable to select database

2001-12-10 Thread josep
I can't select a database from a php script. I've set privileges in both the user and the data base tables and I've done FLUSH PRIVILEGES; WHY? JOSEP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: PHP+MYSQL unable to select database

2001-12-10 Thread Benjamin Pflugmann
Hi. First, please avoid cross-posting. Try to narrow down the problem by trying from the command line client (i.e. try to rule out PHP as source of the problem). If that doesn't work, try the PHP list. If you are successful, it belongs to the MySQL list (as PHP is no longer part of the

[PHP] PHP Safe Mode control

2001-12-10 Thread Charles Williams
Hey all, I just finished an article on Safe Mode control for PHP but it is based on non-Win32 systems. Can somebody with a bit more experience in Win32 servers take a look at it and let me know what can be done to achieve, if not the same level of control then close to it, on a Win32 platform?

Re: [PHP] PHP+MYSQL: unable to select database

2001-12-10 Thread Jon Farmer
I get: unable to select database when I visit my guestbook.php The user trying it is set in the mysql.user (without any perms) and in the mysql.db (with all perms). Do I have to set all perms to this user in the mysql.user table? Did you 'flush privileges' ? -- Jon Farmer Systems

[PHP] variables

2001-12-10 Thread Lennart Johansen
Is it advisable to use the same names for variables both in a function and in its activator([?] I'm sorry I don't know the correct word) as follows? ? function test($var1, $var2) { ...whatever; return $result; } var $var1, $var2; $result = test($var1, $var2); // this is what I

[PHP] PHP+MYSQL: unable to select database even FLUSH PRIVILEGES

2001-12-10 Thread josep
I've did: FLUSH PRIVILEGES but nothing changes. Josep. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] variables

2001-12-10 Thread Andrew Brampton
I don't see any reason not to. But you should allways try and make your varible names meaningful... In some cases I do end up having the same, for example if I'm passing X,Y coords around. But in othercases they have totally different names. Also out of interest, activator=formal parameter, the

Re: [PHP] Store locator / postcode proximity

2001-12-10 Thread Rich Buggy
I'm wondering if anyone has any information about how to get the proximity data for postcodes in Australia? Or is it safe to assume that if a postcode is, say, 3107, that 3120 or 3110 (for example) are nearby as well as 3108 (so, perhaps, 10 above and 10 below could be safely assumed to be

Re: [PHP] PHP+MYSQL unable to select database

2001-12-10 Thread Miles Thompson
Have you checked the docs? Have you double-checked the username, password and permissions? Have you added or die(mysql_error()) to your database connection function? If this site is remote, does your username/password have rights to access the database? Good luck - Miles Thompson At 11:58 AM

[PHP] PHP and plugin detection

2001-12-10 Thread Daniel Reichenbach
Hy, is there any way to detect the plugins a user has installed in his browser with PHP? I want to write a page where users get a plugin depending on their installation. If none of the required plugins is available an error page should be viewed. If it's not possible using PHP, can it be done

[PHP] WEB PAGE CALCI

2001-12-10 Thread Chamarty Prasanna Kumar
Hi All, Using PHP,is there any function for calculating the size of a Web page, means the size of everything the browser has to load to render the page. That includes the HTML file, all the graphics, animations, CSS, php. And the input being URL of the page.

[PHP] Re: PHP Forms and String Limitations

2001-12-10 Thread Jørg Vidar Bryne
Jeremy Reed [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is the problem: The user tries to submit a news article of 2+ pages (approx 4400 characters) but the article gets truncated to about 4050 characters. Is there some sort of limitation on PHP

[PHP] RegEx gurus help...

2001-12-10 Thread Brian V Bonini
I need to replace all relative links in an html doc with absolute links on the fly weather it be an image link, img src='/_imgs/imgs_nav/transPix.gif' width='10' height='13' img src='../_imgs/imgs_nav/transPix.gif' width='10' height='13' a URL, a href=/dealers/index.asp a link to an external JS

[PHP] Frames creating problems...

2001-12-10 Thread dhaval desai
Hello Guys, Well I have a website with frames. The problem here is that I have a serach box in the top frame and I want the results to be displayed in the other frame. I have seen this on lot of websites but now I am wondering how to do it when I am facing this problem.. Any help would be

php-general Digest 10 Dec 2001 15:10:38 -0000 Issue 1044

2001-12-10 Thread php-general-digest-help
php-general Digest 10 Dec 2001 15:10:38 - Issue 1044 Topics (messages 77176 through 77197): Re: Doing statistics with MySql data? 77176 by: Martin Towell 77179 by: Fred Announcement: Frederick Webmail v1.0.0 released 77177 by: Richard Heyes KISGB (Keep It Simple

Re: [PHP] Frames creating problems...

2001-12-10 Thread Jon Farmer
Well I have a website with frames. The problem here is that I have a serach box in the top frame and I want the results to be displayed in the other frame. Javascript! Use the OnCLick event of a button to take the value of the textbox and update the href of the other frame passing the

RE: [PHP] RegEx gurus help...

2001-12-10 Thread Jack Dempsey
from the way you describe, i can't help but think that it'd be one hell of a regex.if all you're doing is stripping out .. i'd load up your fav editor and do a search and replace where you can approve each changeor, just change them all and fix what's broken.it'll be much quicker than

Re: [PHP] Frames creating problems...

2001-12-10 Thread Paul Burney
on 12/10/01 10:03 AM, dhaval desai at [EMAIL PROTECTED] wrote: Well I have a website with frames. The problem here is that I have a serach box in the top frame and I want the results to be displayed in the other frame. This isn't the appropriate forum for the question since it isn't php

Re: [PHP] Frames creating problems...

2001-12-10 Thread Stefan Rusterholz
If you have the whole form in frame A and want the result in frame B then use form action=xyz.php target=frameB If you have the form in frame A and the search button in frame B then you'll have to use JavaScript A HREF=javaScript:parent.frames[1].FORMNAME.submit()GO!/A (you will have to replace

[PHP] Announcement: Smarty template engine 1.5.1 available

2001-12-10 Thread Monte Ohrt
This is a critical bug fix release. If you use caching, you'll need to upgrade from 1.5.0. http://www.phpinsider.com/php/code/Smarty/ Version 1.5.1 - - removed error message from the generic _read_file() method, the caller should take care of that. (Andrei) - fixed a

[PHP] file downlaod via http

2001-12-10 Thread Helmut Habiger
hi! is's such a simple question, but ... i'd like to download a picture. but instead of typing the URL into my browser, loading the page into the browser, then right-clicking to to get the save picture as menu, then entering the local path and press save, I'd like to write a litte script, where

Re: [PHP] file downlaod via http

2001-12-10 Thread Valentin V. Petruchek
Security, you know... Browser will not allow you to save files on LOCAL drive Otherwise Internet should be very dangerous thing - Original Message - From: Helmut Habiger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 5:57 PM Subject: [PHP] file downlaod via

RE: [PHP] RegEx gurus help...

2001-12-10 Thread Brian V Bonini
Hey thanks! That was a good starting point... -Brian -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:35 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] RegEx gurus help... The code below does almost of the

[PHP] setting up a user login with PHP

2001-12-10 Thread Ward, Mark
I've got a mySQL database with usernames and passwords. What's the best way to allow authorized users to enter my site? I'm having some problems using the forms properly, they've always been my achilles heel when it comes to web programming. Any help is appreciated. Mark Ward -- PHP General

Re: [PHP] Store locator / postcode proximity

2001-12-10 Thread Hugh Bothwell
Rich Buggy [EMAIL PROTECTED] wrote in message 018a01c18160$c463c180$[EMAIL PROTECTED]">news:018a01c18160$c463c180$[EMAIL PROTECTED]... I'm wondering if anyone has any information about how to get the proximity data for postcodes in Australia? Or is it safe to assume that if a postcode is,

[PHP] Logo proposal

2001-12-10 Thread Valentin V. Petruchek
Hello world of php-programmers! It seemes to me PHP is very powerful tool and very popular among web-programmers, too. As for me I use php for solving web tasks for 2 years and I'm very satisfied with it. It seemes to me current PHP logo (can be found by http://www.php.net/gifs/logo.gif)

[PHP] Re: eval on a form

2001-12-10 Thread Hugh Bothwell
Paul Roberts [EMAIL PROTECTED] wrote in message 000d01c18101$5dbb2220$01f8883e@laptop1">news:000d01c18101$5dbb2220$01f8883e@laptop1... Hi I'm trying to pre-fill a form ( the data is passed via sessions or from another script). i have some check boxes on the form that i would like checked

[PHP] Re: PHP Forms and String Limitations

2001-12-10 Thread Jeremy Reed
I'm using the POST method. We may be on the right track though, there may have been a problem with the insertion of the data, rather than the retrieval. However, I still don't know what could be causing the problem. JøRg Vidar Bryne [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] php as cron

2001-12-10 Thread Jay Paulson
I'm trying to test php running as a cron job and I have installed php as a CGI in /usr/local/bin and I have edited my crontab file to call a php file every two minutes. However, it's not working and I was wondering if you all would know what's going on. Anyway, here's how I have things set

[PHP] Returned error messages

2001-12-10 Thread Dave Brotherstone
Has anyone got error messages working from MSSQL or Sybase (connecting from a unix box)? Dave. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] Returned error messages

2001-12-10 Thread Valentin V. Petruchek
My experince: MsSQL is keeping silence even freetds or sybase is not installed at all... - Original Message - From: Dave Brotherstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 7:58 PM Subject: [PHP] Returned error messages Has anyone got error messages

[PHP] Re: setting up a user login with PHP

2001-12-10 Thread Jeremy Reed
The easiest way is to use cookies. =CODE ?php require 'auth_functions.php'; if (authenticateUser($form_username, $form_password)){ setcookie(cookie_passwd,$form_password); setcookie(cookie_user,$form_username); header(Location:http://$SERVER/index2.php;); exit(); }

[PHP] Setting Cookies

2001-12-10 Thread Steve Osborne
I am attempting to use the SetCookie command. I receive the following error: Warning: Cannot add header information - headers already sent by (reference to current page)... At this point I have authenticated the user, and am trying to set the cookie before redirecting them to the

[PHP] Re: Setting Cookies

2001-12-10 Thread Jeremy Reed
You are getting that error because you have sent output to the browser BEFORE you try to set the cookie information. When dealing with cookies, it is important to do all processing before sending any output to the browser. Jeremy Reed Steve Osborne [EMAIL PROTECTED] wrote in message

Re: [PHP] php as cron

2001-12-10 Thread Shane Wright
Hi You probably need to set the path to your PHP binary in crontab. Alternatively (this is probs a better way), wrap the whole lot up in a simple shell script and get cron to run the shell script. It's easier than it sounds... #!/bin/bash cd /path/to/php/scripts php myscript.php /dev/null

Re: [PHP] Setting Cookies

2001-12-10 Thread Rasmus Lerdorf
Yes, setting and cookie and redirecting in the same request is not reliable. Some browsers can do it sometimes, others can't. -Rasmus On Mon, 10 Dec 2001, Steve Osborne wrote: I am attempting to use the SetCookie command. I receive the following error: Warning: Cannot add header

RE: [PHP] php as cron

2001-12-10 Thread Darren Gamble
Good day, Doesn't having the statement #!/usr/local/bin/php -q at the start of the program makes running php (rather than the script itself) redundant? Why not just call the script in the crontab? Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 -

Re: [PHP] Setting Cookies

2001-12-10 Thread Valentin V. Petruchek
Not necessary on the top, but before any html begins Zliy Pes, http://zliypes.com.ua - Original Message - From: Steve Osborne [EMAIL PROTECTED] To: PHP-General (E-mail) [EMAIL PROTECTED] Sent: Monday, December 10, 2001 9:39 PM Subject: [PHP] Setting Cookies I am attempting to use the

Re: [PHP] Setting Cookies

2001-12-10 Thread Casey Allen Shobe
On Monday 10 December 2001 14:39, Steve Osborne wrote: Warning: Cannot add header information - headers already sent by (reference to current page)... At this point I have authenticated the user, and am trying to set the cookie before redirecting them to the registered users section.

RE: [PHP] php as cron

2001-12-10 Thread jr
Why not just use lynx to run it? */2 * * * * /usr/local/bin/lynx -dump crontest.php JR On Monday 10 Dec 2001 5:54 pm, Jay Paulson wrote: I'm trying to test php running as a cron job and I have installed php as a CGI in /usr/local/bin and I have edited my crontab file to call a php

Re: [PHP] php as cron

2001-12-10 Thread Jay Paulson
I was wondering how to disable the auto email after the cron job is done. How exactly do you disable it? thanks for the help btw! - Original Message - From: Shane Wright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:47 PM Subject: Re: [PHP] php as cron Hi

Re: [PHP] php as cron

2001-12-10 Thread Jay Paulson
I don't want to use lynx to run the script because I don't want this script accessible through a web browser :) - Original Message - From: [EMAIL PROTECTED] To: Darren Gamble [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 10, 2001 1:12 PM Subject: RE:

RE: [PHP] php as cron

2001-12-10 Thread Darren Gamble
Good day, Calling another program with this script is unnecessary, since you are using the shebang operator. Instead of: */2 * * * * php /home/crontest.php /dev/null Use: */2 * * * * /home/crontest.php /dev/null Which should work just fine. As pointed out, the reason you were getting the

Re: [PHP] Re: setting up a user login with PHP

2001-12-10 Thread py
or you could use: http://phpclasses.upperdesign.com/browse.html/package/288 py At 01:08 PM 12/10/01 -0500, Jeremy Reed wrote: The easiest way is to use cookies. =CODE ?php require 'auth_functions.php'; if (authenticateUser($form_username, $form_password)){

[PHP] mail attachment query

2001-12-10 Thread caspar kennerdale
so i have a mail script which allows people to send attachments. This is activated by an htmlform, which allows users to select the file from their hard drive and post to the recipient. The problem I have is this- The file attachment is sent via email as a .dat file. If I specify the name of

[PHP] Shell scripting

2001-12-10 Thread Dan McCullough
I am setting up a shell script to provide a menu for some tasks that our server admin would like to do via script rather then vi'ing the file, now I am almost finished but I would like to get rid of this ugly part of the output. X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Is there away

Re: [PHP] Shell scripting

2001-12-10 Thread Rouvas Stathis
Start php with -q, eg: php -q script.php -Stathis. Dan McCullough wrote: I am setting up a shell script to provide a menu for some tasks that our server admin would like to do via script rather then vi'ing the file, now I am almost finished but I would like to get rid of this ugly part

[PHP] Using @file

2001-12-10 Thread Jeff Lewis
I am using this line in part of my code but am getting an error that looks like below: Code: $serverDetails = @file(http://www.myserver,com/versions.php?l=$scripturlv=$version;); Error: 2: php_network_getaddresses: gethostbyname failed (c:\inetpub\wwwroot\yabbse\Sources\Admin.php ln 43) What

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
Good day, The error means that it can not resolve the name. Replace the comma in the name with a period. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message-

Re: [PHP] Using @file

2001-12-10 Thread Jeff Lewis
Sorry that was a typo, it is a period, I mistyped into the email. If it cant resolve the name, what would cause that problem? Jeff - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 10, 2001 3:19 PM

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
Good day, Again, this error means that the server can not resolve a name. Please ensure that the name www.myserver.com can be DNS resolved. Please contact your DNS administrator if it can not. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd

Re: [PHP] Using @file

2001-12-10 Thread Jeff Lewis
Again, this works on some servers and othes not. Does IIS support this particular function? Jeff - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Jeff Lewis' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 10, 2001 3:32 PM Subject: RE: [PHP] Using @file

Re: [PHP] WEB PAGE CALCI

2001-12-10 Thread Matthew Moreton
Hi Chamarty, The function you are looking to use is: filesize(file); This will return the size of a file, surprisingly! Use it on all the files in your docuemnt and add the results. Regards Matt. Email: [EMAIL PROTECTED] - Original Message - From: Chamarty Prasanna Kumar [EMAIL

[PHP] php-4.1.0 distribution broke??

2001-12-10 Thread Bob Scott
Hello all! I've tried several times today to get the latest PHP (4.1.0) tarball from php.net (as well as a few mirror sites) and it looks like the tarball is broken...! Anyone having like problems?? Cheers! -bob . . . . . php-4.1.0/ext/sysvshm/setup.stub php-4.1.0/ext/sysvshm/sysvshm.c tar:

RE: [PHP] php-4.1.0 distribution broke??

2001-12-10 Thread Maciej Uhlig
as far as I can see the current release is 4.0.6. did you see any announcement about 4.1.0? they'll let you know when 4.1.0 is released. just be patient :-) Maciek -Original Message- From: Bob Scott [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 10:06 PM To: [EMAIL

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
Good day, While I am sure most of the readers of the list are finding this conversation amusing, I will still try to explain this a bit better to you. DNS, or Domain Name Service, is the protocol which translates names into IP addresses. If you supply a computer with a name, it must use DNS

[PHP] Template class

2001-12-10 Thread Wolfram Kriesing
(just in case any of the people on PEAR-DEV will read this at all, since everyone must be tired of the template class debates :-) ) i just wanted to say what i had to write, because i didnt see any of the existing template classes/engines provide me with that the main features are: # compiling

Re: [PHP] Template class

2001-12-10 Thread Rasmus Lerdorf
What's the point of something like this? Just to type { instead of ? doesn't seem like any sort of benefit to me. -Rasmus On Mon, 10 Dec 2001, Wolfram Kriesing wrote: (just in case any of the people on PEAR-DEV will read this at all, since everyone must be tired of the template class

RE: [PHP] php as cron

2001-12-10 Thread Martin Towell
to stop errors from being email to you, redirect stderr to /dev/null: */2 * * * * /home/crontest.php /dev/null 2 /dev/null -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 6:19 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] php-4.1.0 distribution broke??

2001-12-10 Thread Bob Scott
Bizzare -- About 2 hours ago http://www.php.net/downloads.php listed 4.1.0 dated 10 Dec 2001 as being the latest release. Now it's back to 4.0.6 I guess I will wait :) Thanks -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies,

[PHP] Redirect function

2001-12-10 Thread Steve Osborne
Is there a function or command in php that will redirect a user to another page, similar to Response.Redirect(URL) in ASP? Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] I can't see the PHP variables....

2001-12-10 Thread Javier Morquecho Morquecho
Hi.. I'm making changes to an PHP application (Postnuke). The problem is than I can not see the PHP variables, like echo host=.$HTTP_HOST; But just in a specific modulethe question is, is there a PHP instriction to enable an disable those variables???..

RE: [PHP] Redirect function

2001-12-10 Thread Martin Towell
header(location: $url); -Original Message- From: Steve Osborne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 11:36 AM To: PHP-General (E-mail) Subject: [PHP] Redirect function Is there a function or command in php that will redirect a user to another page, similar to

[PHP] Re: Shell scripting

2001-12-10 Thread J Smith
Add the -q argument to the php command, i.e. $ php -q or edit the first line of your script to something like this: #!/path/to/php -q There are some other arguments to the cgi executable. Use the -h argument for details. J Dan McCullough wrote: I am setting up a shell script to

[PHP] get data from file

2001-12-10 Thread Kurth Bemis
I need to get data from a web page generated by mrtg in my page i have come up with the following code ?php $file = /virt/usaexpress/www/noc/mrtg/216.107.214.1_4.html; $string = implode(\n, file($file)); $string1 = explode(META HTTP-EQUIV=\Content-Type\

[PHP] @file problems w/ remote files

2001-12-10 Thread Joseph Fung
Hi, This is regarding the same problem that Jeff posted earlier (yes, the exast same problem - I'm working with him). He seems to have given some of you the wrong impression about the problem - he is not ignoring your posts, it's just that the posts aren't helping the problem ;) The problem is

[PHP] time stuff

2001-12-10 Thread natesanden
Was wondering if anyone could help? suppose the date is 12-10-01 -- $timestamp = time(); //this is the sent on date $yd_expl = explode(':',08-01-01); $today=mktime(0,0,0,strftime('%m',$timestamp),strftime('%d',$timestamp),strftime('%y',$timestamp));

[PHP] Re: Redirect function

2001-12-10 Thread Hugh Bothwell
Steve Osborne [EMAIL PROTECTED] wrote in message 000901c181db$bfca1f40$[EMAIL PROTECTED]">news:000901c181db$bfca1f40$[EMAIL PROTECTED]... Is there a function or command in php that will redirect a user to another page, similar to Response.Redirect(URL) in ASP? header(Location:

[PHP] Re: time stuff

2001-12-10 Thread Hugh Bothwell
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... suppose the date is 12-10-01 -- $timestamp = time(); //this is the sent on date $yd_expl = explode(':',08-01-01); Uh, better make that ... = explode('-', '08-01-01');

Re: [PHP] How to use gd/php with no freetype?

2001-12-10 Thread Rasmus Lerdorf
Yes, you are out of luck without Freetype. You need to install Freetype, then build GD against that and then finally build PHP against that Freetype-enabled GD. As for your second question, the ImageTTFText() function takes the TTF font filename as an argument. See php.net/imagettftext

[PHP] Emailing attachments upload to a form

2001-12-10 Thread Ben Clumeck
When I use the script to upload an attachment to my form it does not email the attachment. I am using the mail() function to email the results of the form to me. Is there any other code I need to put in my mail() function to make this work, if so where would I put it? I am currently using the

[PHP] exec problems

2001-12-10 Thread J. Heffner
Hello, I need to write a script that will stuff the names of all the files in a directory into an array, which I can then use for some adminstrative processing. Seems easy enough: exec (ls, $fileArray, $isComplete); This will run fine if I call the php file containing this code from bash

[PHP] Uploading files with FORM METHOD=POST on webhostings

2001-12-10 Thread M
Hello, first of all, thanks very much for your answer about WAP and WML php headers. I corrected headers and page works ok now. == Now a question about uploading files (.gif .jpg) using form method=post to be stored into Mysql blob fields. I hope somebody here having sites on

Re: [PHP] exec problems

2001-12-10 Thread Brian Clark
* J. Heffner ([EMAIL PROTECTED]) [Dec 10. 2001 20:06]: I need to write a script that will stuff the names of all the files in a directory into an array, which I can then use for some adminstrative processing. Seems easy enough: exec (ls, $fileArray, $isComplete); This will run fine if

[PHP] what is Trans-sid in PHP

2001-12-10 Thread John King
Running a script that requires: Trans-sid enabled in php How would I find if this is enabled or disabled? Did a phpinfo() on the server but could not find this? Was it a misprint? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Single character input on command line

2001-12-10 Thread August Zajonc
Interested in getting a single character at a time on the command line using php. ie, I'd like to type 2 and be able to trap that keystroke right away and act on it. Before spending a lot of time tracking down possibilites (readline input_buffer, reading the stdin pipe) thought I'd ask if

RE: [PHP] Single character input on command line

2001-12-10 Thread Martin Towell
i'd be interested in knowing this too (for future reference...) -Original Message- From: August Zajonc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 1:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Single character input on command line Interested in getting a single

[PHP] Encrypted pages/email with PHP?

2001-12-10 Thread Erica Douglass
(posting again because it looks like the first one didn't go through) Hi, I've sniffed around on Google and PHPBuilder, but I can't seem to find any information on creatnig encrypted pages with PHP. Here is what I am looking for. I have a client who owns a retail store. Thus, he has a manual

Re: [PHP] what is Trans-sid in PHP

2001-12-10 Thread Jon Niola
When you doa phpinfo() look at the top block. you will probably see something like ./configure --enable-track-vars --enable-trans-sid etc. If it is not here your PHP module was not compiled with trans-sid enabled. --Jon At 09:13 PM 12/10/2001 -0500, John King wrote: Running a script that

[PHP] Redirect + SESSION question!!!

2001-12-10 Thread Mehmet Kamil ERISEN
Hello All, I have switched hosting companies. previous server was php4.04pl1 now I am on a server that is php4.06. I have a file (functions.php) that stores all my SESSION and other functions. A Header file, that has the general feel and look of the site. In brief most of my pages have

RE: [PHP] Encrypted pages/email with PHP?

2001-12-10 Thread Adrian Teasdale
Erica Can I suggest that you use PGP to send the information encrypted. There is a wonderful script which can be found here: http://www.phpuk.org/code.php We use this on various sites to encrypt sensitive information In terms of a server certificate, you will need this to protect the client

Re: [PHP] Redirect + SESSION question!!!

2001-12-10 Thread Mehmet Kamil ERISEN
I am almost there folks. The issue is being resolved by using the ob_start(garbage); at the begining of the login.php script, and ob_end_flush(); at the end of the login.php script (in case the authentication fails and user stays on the page), and also put ob_end_flush(); at the top of the