Re: [PHP] Can't find my font file - Please help

2002-08-10 Thread Rasmus Lerdorf
Try leaving off the .ttf On Fri, 9 Aug 2002, JR wrote: > I am trying to use the "imagettfbbox" function. Am testing the script on my > local network > running W2K. Have defined : > $fontfile = "arial.tff"; // this file is in the same directory > with my script > The instruction t

[PHP] Re: PHP Errors - someone please take a look

2002-08-10 Thread Christopher J. Crane
I did and got the same error. "Joni JäRvinen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi. > > This isn't the most helpful comment but it seems your working on a > windows-platform. > Have you tried to use your script in a *nix platform? > > -- Joni > --

[PHP] Access Violations with PHP Please Help Please

2002-08-10 Thread Christopher J. Crane
I get the following errors when I run my script. It works fine with only 20 records, but at 100 I get errors. "PHP has encountered an Access Violation at 00DA088E Warning: Unknown list entry type in request shutdown (2) in c:\www\htdocs\demos\ct.org\directory.php on line 0" or "PHP has encount

Re: [PHP] is this possible ...

2002-08-10 Thread Justin French
Yes attaching files to email is possible. There's such a class available at phpclasses.org by Manuel Justin French on 11/08/02 3:53 AM, M.E. Suliman ([EMAIL PROTECTED]) wrote: > Hi > > I need the contents of a form to be emailed as an attached Excel file or > html file. Is this possible usi

Re: [PHP] records in db

2002-08-10 Thread Justin French
on 11/08/02 3:52 AM, Tyler Durdin ([EMAIL PROTECTED]) wrote: > If I have a field in my DB that can have 4 different answers, lets say a,b,c > and d. How can I count the number of each in that field. So if there are 4 > a's 1 b 0 c's and 12 d's how can I get php to count this? I'm pretty certain

RE: [PHP] Tried that..

2002-08-10 Thread David Freeman
> I've tried that, but as usual rtfm doesn't help me. I need > concise examples > :( > > How would I write this basic select query to get the date in > my format > (Saturday, August 10th, 2002)? > SELECT datum FROM news_items > (where "datum" is the date-stamp in "-MM-DD" format)

RE: [PHP] Win PHP Editor...

2002-08-10 Thread Liam MacKenzie
No, sorry. I will try to contact them soon about that. But there's no bugs that I've come across in Editplus. Full of features too, but there's always room for imporvement. Cheers, Liam -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent: Sunday, 11 August 2002 5:03

Re: [PHP] Tried that..

2002-08-10 Thread Rasmus Lerdorf
This isn't really a PHP question, is it? This is a function of your database, and since you don't mention which database you are using it is a bit hard to answer. Assuming MySQL, there is an entire chapter in the MySQL docs on exactly how to do this: http://www.mysql.com/doc/en/Date_and_time_fu

[PHP] Tried that..

2002-08-10 Thread Kristoffer Strom
I've tried that, but as usual rtfm doesn't help me. I need concise examples :( How would I write this basic select query to get the date in my format (Saturday, August 10th, 2002)? SELECT datum FROM news_items (where "datum" is the date-stamp in "-MM-DD" format) I've tried the combo's I can

RE: [PHP] Converting datestamp to text?

2002-08-10 Thread David Freeman
> In my MySQL db I have a date-field on every entry looking like this : > 2002-08-10 > When presented on a PHP page, I want it converted to > "Saturday, Augusth > 10th, 2002". > > How do I achieve that? I've been playing around with the > date-command and > strtotime-command but haven

[PHP] Converting datestamp to text?

2002-08-10 Thread Kristoffer Strom
In my MySQL db I have a date-field on every entry looking like this : 2002-08-10 When presented on a PHP page, I want it converted to "Saturday, Augusth 10th, 2002". How do I achieve that? I've been playing around with the date-command and strtotime-command but haven't achieved it. Help please.

Re: [PHP] Cookie array

2002-08-10 Thread Bob Lockie
>How can I stoor array in to a cookie ? > >Do I just define an array and stoore it in a cookie ? Yes. >How do I access the data in the array then ? $_COOKIE['array element']; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cgi error

2002-08-10 Thread Bob Lockie
>I receive this when I try to send an e-mail. >All works fine until yesterday and my script is the same. >Could u tell what is the problem? >CGI Error >The specified CGI application misbehaved by not returning a complete set of HTTP >headers. The headers it did return are: What does your httpd l

Re: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread JJ Harrison
I'll do that. When I load an article I supply the article's id. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- Please reply on the list/newsgroup unless the reply it OT. "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi JJ: > > On

Re: [PHP] show_source()

2002-08-10 Thread Øystein Håland
This helped on my laptop (win2000, Apache 1.3.26, php 4.2.1, but when I uploaded to my webserver (SunOS (sparc), Apache 1.3.xx, php 4.0.6) only the first row was numbered (yes, I even tried \n instead). Is there another solution that could work? "Rasmus Lerdorf" <[EMAIL PROTECTED]> skrev i meddel

[PHP] limit the number of users: query syntax?

2002-08-10 Thread Øystein Håland
I want to limit the number of users from different groups allowed to create a user account on a website. I belive that can be done using two tables in a DB, one for the user accounts and one for the group information (with one field 'maxusers'). I even want to limit the time for the account to be

Re: [PHP] records in db

2002-08-10 Thread DL Neil
Tyler, > If I have a field in my DB that can have 4 different answers, lets say a,b,c > and d. How can I count the number of each in that field. So if there are 4 > a's 1 b 0 c's and 12 d's how can I get php to count this? You must combine IF() with SUM(). Break it down into smaller problems:

[PHP] Re: PHP Errors - someone please take a look

2002-08-10 Thread Joni Järvinen
Hi. This isn't the most helpful comment but it seems your working on a windows-platform. Have you tried to use your script in a *nix platform? -- Joni -- // Joni Järvinen // [EMAIL PROTECTED] // http://www.reactorbox.org/~wandu "Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message [EMAIL

Re: [PHP] records in db

2002-08-10 Thread Analysis & Solutions
On Sat, Aug 10, 2002 at 05:52:42PM +, Tyler Durdin wrote: > If I have a field in my DB that can have 4 different answers, lets say > a,b,c and d. How can I count the number of each in that field. So if there > are 4 a's 1 b 0 c's and 12 d's how can I get php to count this? Us the database

Re: [PHP] PHPS on apache 2

2002-08-10 Thread Analysis & Solutions
On Sat, Aug 10, 2002 at 07:38:05PM +0200, FileCop wrote: > > I have installed apache 2.0.39 and php 4.2.2 on a windows maschine (yes I > know that sucks). I have added the "AddType application/x-httpd-php-source > .phps" line to my httpd.conf file, but .phps does not work. Did you add the corres

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-10 Thread Analysis & Solutions
On Sat, Aug 10, 2002 at 01:12:38PM -0400, Al wrote: > I'm on a virtual host without a shell account and need execute a UNIX > command. > > ln -s ../afile.php index.php In a PHP script, you can do this -- if permissions are favorable: exec('ln -s ../afile.php index.php'); > Is there some w

Re: [PHP] PHP form port

2002-08-10 Thread Analysis & Solutions
On Sat, Aug 10, 2002 at 09:14:03AM -0700, Daniel Guerrier wrote: > How do i execute a form post with php? > I want to validate CCard info etc.. then perform the > post with no furtheraction from the user. > > Basically If not valid stay here and show whats wrong > ELSE post form to process.php D

Re: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread Analysis & Solutions
Hi JJ: On Sun, Aug 11, 2002 at 01:44:53AM +1000, JJ Harrison wrote: > > Which has a save or a publish option. I only want to keep one copy of each > article in the DB. This adds a new one each time. I know about updates in > SQL but the file may or may not already be in the db. Does anyone have

[PHP] Re: Cookie array

2002-08-10 Thread Lee Doolan
> "Jan" == Jan <[EMAIL PROTECTED]> writes: Jan> Hi ! How can I stoor array in to a cookie ? Jan> Do I just define an array and stoore it in a cookie ? How do Jan> I access the data in the array then ? you can use serialize() / unserialize() but be careful because the amount o

[PHP] Cookie array

2002-08-10 Thread Jan - CWIZO
Hi ! How can I stoor array in to a cookie ? Do I just define an array and stoore it in a cookie ? How do I access the data in the array then ? -- LP CWIZO www.3delavnica.com www.ks-con.si www.WetSoftware.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] PHPS on apache 2

2002-08-10 Thread FileCop
Hi! I have installed apache 2.0.39 and php 4.2.2 on a windows maschine (yes I know that sucks). I have added the "AddType application/x-httpd-php-source .phps" line to my httpd.conf file, but .phps does not work. I just attempts to download the file. phps was working when I used apache 1.3.24 and

[PHP] PHPS on apache2

2002-08-10 Thread FileCop
Hi! I have installed apache 2.0.39 and php 4.2.2 on a windows maschine (yes I know that sucks). I have added the "AddType application/x-httpd-php-source .phps" line to my httpd.conf file, but .phps does not work. I just attempts to download the file. phps was working when I used apache 1.3.24 and

[PHP] Random mirrors and download quota

2002-08-10 Thread Andrew Conner
Hello, I have a script (at bottom) that, upon loading, will randomly select a mirror or primary server (on average, the primary servers will be selected twice as much). It all works good, but now, I have to add a "quota manager" that will, for both mirrors, limit the times the file can be download

Re: [PHP] Win PHP Editor...

2002-08-10 Thread Glenn Sieb
My favorite win-editor is UltraEdit (http://www.idmcomp.com) Also does nice color-tagging, and is very user-customizable that way! Glenn At 03:02 PM 8/10/2002 -0400, Randy Johnson posted the following... >I noticed they have not come out with a new version in quite a long time and >do not answe

php-general Digest 10 Aug 2002 19:17:09 -0000 Issue 1517

2002-08-10 Thread php-general-digest-help
php-general Digest 10 Aug 2002 19:17:09 - Issue 1517 Topics (messages 111932 through 111970): Re: Problem with output buffering in PHP 4.0.6 and Apache/1.3.20 111932 by: Lars Olsson How to create basic LOGIN procedure 111933 by: Kristoffer Strom 111940 by: Justin Fr

Re: [PHP] checkbox => POST => array??

2002-08-10 Thread Jason Stechschulte
On Sat, Aug 10, 2002 at 02:56:48PM -0400, PeterV wrote: > What I have now: > > doesn't return an array $topic?? Probaby due to register_globals. It should exist in $_POST['topic'] -- Jason Stechschulte [EMAIL PROTECTED] http://www.ypisco.com -- I am a bookaholic. If you are a decent person,

Re: [PHP] Win PHP Editor...

2002-08-10 Thread Randy Johnson
I noticed they have not come out with a new version in quite a long time and do not answer their emails? anybody else heard about any future releases of editplus? Randy - Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>; "PHP

[PHP] checkbox => POST => array??

2002-08-10 Thread PeterV
I, I don't have my books here and it's been a while since I did PHP, and google isn't helping: How do I code a bunch of checkboxes with id's, and then loop trough the result as an array after POSTing it? What I have now: doesn't return an array $topic?? Thanks, Peter -- PHP General Mailing L

[PHP] Re: is this possible ...

2002-08-10 Thread Julio Nobrega
Yes, it's possible. You concatenate the form variables with the html, transform it to a file and attach to the email. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br "M.E. Suliman" <[EMAIL PROTECTED]> escreveu na mensagem 000701c24097$044a1b00$9fb71fc4@b1s0n2">news:000701c24

[PHP] Re: weird urls

2002-08-10 Thread Julio Nobrega
Well, it's a GET parameter, not a server file. Probably the file "source.php" has a command to include the file "/index.php". if (isset($_GET['url'])) { // Security check, prepend filesystem or webserver root and include($url); } -- Julio Nobrega Pode acessar: http://www.inerciasensori

RE: [PHP] weird urls

2002-08-10 Thread César Aracena
That's because PHP detects whatever it's after that question marks as variables so it's able to process them in requests you make in your scripts. The one you quote means that there is a variable being passed from one page to another named $url which has the value /index.php. So, if you call (in

Re: [PHP] weird urls

2002-08-10 Thread Chris Knipe
Erm, because that's the way it works? Regards, Chris Knipe Cell: (072) 434-7582 MegaLAN Corporate Networking Services /--- | This email is confidential and may contain legally privileged information. | If you are not the intended recipient, you must not disclose or use | the information con

RE: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread Mark Charette
Or, of course, a selection of fields as a unique key. The insert will fail if there is an exisiting record with that key; you can interrogate the error and report on the exisitence of a duplicate record. The select/lock method is used for update purposes ('select for update' et al.), not to keep

[PHP] weird urls

2002-08-10 Thread XoXGrimreaper
How come some URLs have all these questions marks and stuff like that? Below: source.php?url=/index.php __ Pre-order the NEW Netscape 7.0 browser. Reserve your FREE CD and pay only $2.99 shipping and handling. http://cd.netscape.co

[PHP] records in db

2002-08-10 Thread Tyler Durdin
If I have a field in my DB that can have 4 different answers, lets say a,b,c and d. How can I count the number of each in that field. So if there are 4 a's 1 b 0 c's and 12 d's how can I get php to count this? _ MSN Photos is the

[PHP] is this possible ...

2002-08-10 Thread M.E. Suliman
Hi I need the contents of a form to be emailed as an attached Excel file or html file. Is this possible using PHP. I think comma delimited files open in Excel. Can anyone advise. Thanks in advance Mohamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] PHP form port

2002-08-10 Thread Matt
>From: "Daniel Guerrier" <[EMAIL PROTECTED]> >Sent: Saturday, August 10, 2002 12:14 PM >Subject: [PHP] PHP form port > How do i execute a form post with php? > I want to validate CCard info etc.. then perform the > post with no furtheraction from the user. > > Basically If not valid stay here an

Re: [PHP] Two version of php in the same system

2002-08-10 Thread Breno Cardoso Perucchi
This It is command for installing in another directory. You think this is correct ? ./configure --prefix=/usr/local/php/ver403 --with-config-file-path=/usr/loca l/php/ver403/etc --with-exec-dir=/usr/local/php/ver403 --with-mysql --with-m ysql=/usr/local/mysql Sorry to inconveniencing "Analys

[PHP] Newbie question about UNIX command-line directives

2002-08-10 Thread Al
I'm on a virtual host without a shell account and need execute a UNIX command. ln -s ../afile.php index.php Is there some way to do this [e.g., with a htaccess file]? What happens when you execute UNIX commands like the one above? Does it make a file, change the config? Thanks --

Re: [PHP] PHP form port

2002-08-10 Thread John Wards
either do this $your vars = value include process.php; or header "process.php?your_var=value&your other stuff"; or $url = http://www.yourserver.com/process.php?your_var=value&etc; $contents = file($send); This will execute your php file and return into $contents the html that is outputed. You

Re: [PHP] Two version of php in the same system

2002-08-10 Thread Analysis & Solutions
On Sat, Aug 10, 2002 at 02:34:30AM -0300, Breno Cardoso Perucchi wrote: > It have some order for installation of the versions of PHP? > First 4.03 > Second 4.22 > > or > > First install 4.22 > Second 4.03 Does not matter. > You showed as installing version of php for Windows ? > That go work

Re: [PHP] PHP form port

2002-08-10 Thread Matt
>From: "Daniel Guerrier" <[EMAIL PROTECTED]> >Sent: Saturday, August 10, 2002 12:14 PM >Subject: [PHP] PHP form port > How do i execute a form post with php? http://www.php-faq.com/postToHost.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread DL Neil
JJ, > i have this code snippet: > > if(isset($_POST['save'])){ > $query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].', > '.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\', > '.$_POST['cat'].', \''.$_POST['text'].'\', 0)'; > $result = mysql_query($query) or

[PHP] PHP form port

2002-08-10 Thread Daniel Guerrier
How do i execute a form post with php? I want to validate CCard info etc.. then perform the post with no furtheraction from the user. Basically If not valid stay here and show whats wrong ELSE post form to process.php __ Do You Yahoo!? HotJobs - Se

Re: [PHP] HTTP authentication - de authentication

2002-08-10 Thread Matt
>From: "vic" <[EMAIL PROTECTED]> > Sent: Saturday, August 10, 2002 11:24 AM >Subject: [PHP] HTTP authentication - de authentication > How does one logout from such an authentication? There's no way to logout. Use a session based authentication. -- PHP General Mailing List (http://www.php.

Re: [PHP] How to create basic LOGIN procedure

2002-08-10 Thread Kristoffer Strom
Found it: http://www.webmasterbase.com/article/319/95 Thanx! One more problem, then we're ready to go /Kris > Check out Kevin Yank's article "restricting page access with php & mysql" > (or something like that!) on webmasterbase.com / sitepoint.com. > > Justin French > > on 10/08/02 7:19 P

[PHP] Save ability... Duplicate DB entries

2002-08-10 Thread JJ Harrison
i have this code snippet: if(isset($_POST['save'])){ $query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].', '.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\', '.$_POST['cat'].', \''.$_POST['text'].'\', 0)'; $result = mysql_query($query) or die("Query failed:

Re: [PHP] Thumb nail of a web page

2002-08-10 Thread Julio Nobrega
> This would be a major task. You would have to write a complete HTML renderer > in PHP. Perhaps you can cheat and let other programs do all the work ;-) Open a page with the browser and take a "screenshot", all using php's exec(). Then trim the browser's border and toolbars using the gd mod

[PHP] HTTP authentication - de authentication

2002-08-10 Thread vic
How does one logout from such an authentication? I know that through a HTTP status code, but how exactly? Everything I tried allows the browser to view the page info after "logout" if the user hits the back button. The only way I found it works if the user closes the browser window, but I can't ma

Re: [PHP] security concern with curl

2002-08-10 Thread andy
> > So I fear that someone would be able to tranfer files on / off my server. > > > > Has anybody some experiance on that, or can give a comment on that? > > Ehhh, PHP already has enough capabilities to transfer files to/from your > server from/to the rest of the world without using curl. Or are y

Re: [PHP] security concern with curl

2002-08-10 Thread Daniel Tryba
On Fri, Aug 09, 2002 at 10:10:28PM +0200, Andy wrote: [curl] > So I fear that someone would be able to tranfer files on / off my server. > > Has anybody some experiance on that, or can give a comment on that? Ehhh, PHP already has enough capabilities to transfer files to/from your server from/to

[PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-10 Thread danny
thank you, If i understand the best way would be to place the MP3's in a seperate directory and giving each MP3's a unique id? In the database every record has already a unique idea. If i name my mp3 something like this: record ID=10, name MP3 = MP3_10.mp3. I already have about 200 little MP3's w

[PHP] classes and references in session

2002-08-10 Thread gianpaolo racca
I have some unclear (to me) behaviour in using classes and references to session. I submit you this code: pippo = "pluto"; } function echoname(){ echo (get_class($this)."\n"); } } class B { var $score; function B(){ //assigning by value cause istances //to be istances of

[PHP] PHP Errors - someone please take a look

2002-08-10 Thread Christopher J. Crane
I get the following errors when I run my script. It works fine with only 20 records, but at 100 I get errors. "PHP has encountered an Access Violation at 00DA088E Warning: Unknown list entry type in request shutdown (2) in c:\www\htdocs\demos\ct.org\directory.php on line 0" or "PHP has encount

[PHP] Shelling out to Aspell: Linux gurus please

2002-08-10 Thread Geoff Caplan
Hi folks There is a lot on the web suggesting that the PHP pspell functions are buggy. So I am trying to use aspell to check single words by shelling out of PHP using backticks via the bash shell on Linux. The problem is that this is a two stage process. First, you launch aspell with "aspell -a"

Re: [PHP] How to create basic LOGIN procedure

2002-08-10 Thread Justin French
Check out Kevin Yank's article "restricting page access with php & mysql" (or something like that!) on webmasterbase.com / sitepoint.com. Justin French on 10/08/02 7:19 PM, Kristoffer Strom ([EMAIL PROTECTED]) wrote: > This PHP stuff is still pretty new to me (still prefer IBM's NetData), so I

Re: [PHP] special characters

2002-08-10 Thread Justin French
Have a look at htmlspecialchars() as well. If these don't meet your needs, you might have to start building your own function to extend what htmlspecialchars() and htmlentities() do. Justin French on 10/08/02 4:58 AM, Jeb A. Scarbrough (home) ([EMAIL PROTECTED]) wrote: > Is there a way to hav

Re: [PHP] Sending automatically mail

2002-08-10 Thread Justin French
Depending on your OS, you would set up some sort of cron job to run at certain intervals. If that can't be done, Windows-type OS' can run a schedule to launch URLs into browser, so if your desktop machine was on at the time, it could launch a URL on the server which sends the emails for you... i

Re: [PHP] E-commerce site issue?

2002-08-10 Thread Justin French
on 10/08/02 12:05 AM, The Gabster ([EMAIL PROTECTED]) wrote: > Thanks a lot... > Hmm... I gues for the beginning I would go and process the purchases > manually. Later on if the purchases increase, than I would opt for > proccesing credit cards via the server. So initially you would just store/t

[PHP] Re: mysql_result

2002-08-10 Thread Marcel Besancon
Hi Sascha, just use the modulus-operator (%). It's the best way. Bye Marcel -- registered Fli4l-User #0388 Answer to the newsgroup please "Sascha Braun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 001201c23f29$760a22e0$a48a07d5@billsgate">news:001201c23f29$760a22e0$a48a07d5@bi

[PHP] and this is the script

2002-08-10 Thread radio x
$fp = fopen("msg1.dat", "r"); while (!feof($fp)) { $data = fgetcsv ($fp, 4096, ":"); $subiect_email="Important to all my users!!!"; $design=" bla blablaaa";

[PHP] cgi error

2002-08-10 Thread radio x
I receive this when I try to send an e-mail. All works fine until yesterday and my script is the same. Could u tell what is the problem? CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

[PHP] How to create basic LOGIN procedure

2002-08-10 Thread Kristoffer Strom
This PHP stuff is still pretty new to me (still prefer IBM's NetData), so I need help to create a login procedure for a website. The point being to make sure only authenticated people can access the admin pages and post/edit news items and stuff. Should be simple, huh? Anyways, the three objectiv

[PHP] Re: Problem with output buffering in PHP 4.0.6 and Apache/1.3.20

2002-08-10 Thread Lars Olsson
Ing.Martin prášek wrote: > Hi.. > I have found a strange problem. I try to use php output buffering, but I found this >problem. > Working with small amount of data everything is fine. But If I set example script >like this: > > > function callback($buffer) > { > return do_something_with($bu