RE: [PHP] Easy array stuff I think for those who can I guess.

2002-12-05 Thread John W. Holmes
If this is mysql, you can use SELECT * FROM konkuranse ORDER BY RAND() LIMIT 1 To get a random row and skip all that stuff you have... ---John Holmes... > -Original Message- > From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 5:36 PM > To: [EMAIL

[PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
I'm running a few simple php scripts from the (windows) command line. Since I'm not using a web browser to view it, the HTTP headers are annoying and pointless. I've turned expose_php off in php.ini, but commenting out default_mimetype changes nothing, and setting it to an empty string sends a

Re: [PHP] Sending no content-type header?

2002-12-05 Thread Chris Wesley
On Thu, 5 Dec 2002, Leif K-Brooks wrote: > I'm running a few simple php scripts from the (windows) command line. > Since I'm not using a web browser to view it, the HTTP headers are > annoying and pointless. I've turned expose_php off in php.ini, but > commenting out default_mimetype changes noth

Re: [PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
Ok, thanks a lot. For what it's worth, here's my simple .bat file for executing php files: @ECHO OFF IF NOT EXIST %1.php goto usage php.exe -q %1.php goto end :usage echo ÚÄÄÄ¿ echo ³ USAGE ³ echo ³Type "php.bat" (without quotes)³ echo ³ follow

[PHP] Need Redirection Trick...

2002-12-05 Thread @ Nilaab
Hello Everyone, I have a simple problem that, I think, might require a little trick to be used. I have a list of products in a database that is organized by categories and subcategories. Categories can have as many subcategories as it wants, but some categories don't need to have a subcategory at

Re: [PHP] PHP includes without access to the default directory

2002-12-05 Thread Morgan Hughes
On Thu, 5 Dec 2002, Gundamn wrote: > I have a hosted account. As such, I am unable to use the default location > for files when used with the include command. So could somebody tell me how > I can either make it go to a different directory, or to link to something > (and how to add the variable as

[PHP] Re:

2002-12-05 Thread Karl James
Help need one on one I was wondering if anyone would be willing to be a mentor While im doing this project. Im using mysql and php To do a login script with username and passwords. And also to do insert to database from a register form. Then I want to do a online fantasy football league whe

[PHP] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Manuel Lemos
Hello, Finally I made time to release a full blown application based on MetaL compiler persistence module. Here is the release announcement that may also be found on the site: http://www.meta-language.net/news-2002-12-05-metastorage.html __

[PHP] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Manuel Lemos
Hello, Finally I made time to release a full blown application based on MetaL compiler persistence module. Here is the release announcement that may also be found on the site: http://www.meta-language.net/news-2002-12-05-metastorage.html __

[PHP] Re: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Björn Schotte
* Manuel Lemos wrote: > Here is the release announcement that may also be found on the site: Where's the PEAR context within the marketing text? -- 35 Kundenportale mit 24.000 Nutzern erstellen. Bei geringen Kosten und einer großen Anzahl an Modulen (DMS, CMS, CRM, Community-Funktionen). Wie d

[PHP] Re: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Arnaud Limbourg
> Where's the PEAR context within the marketing text? Please, don't start any troll/flame war. Arnaud. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] empty string parameters to backslashes?

2002-12-05 Thread andyw
Hey all - I'm trying to track down a problem with someone else's code. Our hosting service changed PHP versions on us (up to 4.0.6), and everything broke. I think I have tracked down at least part of the problem. We have a function: funA($args) { $file = substr($args[0],0, -1); //file t

Re: [PHP] MySQL ?

2002-12-05 Thread Justin French
1. there is a MySQL mailing list, details can be found on mysql.com 2. i just did a really simple search on php net for "mysql table", and got the following amongst a few results: mysql_field_table() mysql_list_tables() mysql_tablename() it would be good if you could search the php (and mysql) s

Re: [PHP] Need Redirection Trick...

2002-12-05 Thread Jason Wong
On Friday 06 December 2002 11:35, [EMAIL PROTECTED] wrote: > Hello Everyone, [lots of irrelevant stuff snipped] > The second thing that should happen is that if there are actually no > subcategories for the selected category then subcat_id should equal 0 and > the script should redirect back to t

RE: [PHP] Need Redirection Trick...

2002-12-05 Thread Roger Lewis
Nilaab, This sounds similar to what I was trying to do recently, i.e creating dependent dropdown boxes. Here's a link to a demo of the code that might be of interest to you. http://www.onlinetools.org/tools/easyselectdata/index.html Cheers. Roger -Original Message- From: @ Nilaab [mail

RE: [PHP] Need Redirection Trick...

2002-12-05 Thread @ Nilaab
Great Jason, thanks a lot. I was just looking for some direction and I think you just helped me find it. Thanks for taking the time to look at my problem.:) - Nilaab > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 11:46 PM > To: [

Re: [PHP] MySQL ?

2002-12-05 Thread Tom Rogers
Hi, Friday, December 6, 2002, 2:08:42 AM, you wrote: h> I am really sorry but i can't find any good mySQL good mailing list... h> How can i make a little php function to check if a table exists ? h> Thanks a lot, h> Hacook function table_exists($table){ return (@mysql_query('SELEC

[PHP] md5 question

2002-12-05 Thread conbud
Hey. Is there a way to get the actual word/phrase from the long string that the md5 hash creates. Lets say, is there a way find out what b9f6f788d4a1f33a53b2de5d20c338ac stands for in actuall words ? Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] md5 question

2002-12-05 Thread Chris Wesley
On Fri, 6 Dec 2002, conbud wrote: > Hey. Is there a way to get the actual word/phrase from the long string that > the md5 hash creates. Lets say, is there a way find out what > b9f6f788d4a1f33a53b2de5d20c338ac > stands for in actuall words ? In all cases, an md5sum string means, "You've got bette

<    1   2