Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Mallen Baker
Thanks to Michael, Barry, Steve, Cal and Rasmus for replies. We have just taken a contract for a dedicated server, and I tried rather hard to get it to be a Linux server. The killer for that was that we have a significantly complex site that will need to be migrated to the server which has been

[PHP] How can the Surfer download without any button

2002-04-11 Thread J.F.Kishor
Hello, I have a doubt, Is there way to download a file as soon as an URL is entered. (i.e) the surfer should be able to downloaded a file as soon as he/she type's the URL and press enter key. If it is possible please send a sample script. Thanks in advance

[PHP] String termination with \0 ?

2002-04-11 Thread Marco Laponder
Hi All, I have the following question. I have been developing with C for a while and I was used that the \0 indicated the end of a string. So if I had a variable containing 1234\056789 and the variable was printed, only 1234 was printed. As I can see in PHP (version 4.0.6 ), when I echo

[PHP] Sending HTML from PHP with 'mail' as a cron job

2002-04-11 Thread Stefen Lars
Hello all I have a script called ‘report.php’ that generates a report in HTML. This report must be created at regular intervals; hence I have set up a cron job to call that script. The output of ‘report.php’ must be sent by e-mail. I use the following command: /usr/bin/lynx -source http://ser

[PHP] Upload problem

2002-04-11 Thread Frédéric Mériot
Hi All, it's my first post here. I've got a problem with the upload. I want to upload a 4Mo file on the server but it refuses to work. I modified the max_upload_size in the php.ini but it continues to refuse the transfer. If I upload a smaller file it works fine. Someone told me to modify the MA

Re: [PHP] editors

2002-04-11 Thread TV Karthick Kumar
I am happy TEXTPAD !. Karthick - Original Message - From: "Matthew Walker" <[EMAIL PROTECTED]> To: "Steve Klugherz" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 4:32 AM Subject: RE: [PHP] editors EditPlus is a great editor, with the added benefit of a built

Re: [PHP] Image Uploading not taking place

2002-04-11 Thread Richard Archer
At 2:28 PM +0800 11/4/02, Manisha wrote: > That's a mighty small limit on file size. Especially if it's an image being uploaded. Are you sure the file you're testing with is smaller than 1000 bytes? Also, be aware that this field is advisory only. Many browsers ignore it. >if (is_uploaded_fil

Fw: [PHP] Image Uploading not taking place

2002-04-11 Thread The_RadiX
yes.. well from a quick glance the problem lies not in the MAX_FILE_SIZE or not using the HTTP_POST_FILES but more in the improper usage of the "copy" function I saw it briefly and thought.. hmmm never used it.. but's it's param's look wonky.. so yes I was right after a quick lookup on the f

[PHP] Temporary off...

2002-04-11 Thread Vasoczki Ferenc
Hi! Is there any way to turn the list mails off temporary ? I do not want to signoff, just now i wouldn't like to get 200 mails a day... But maybe tomarrow i wanna... Thx Vaso -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: mysql

2002-04-11 Thread Tim Ward
That's not quite right, if (!$result = mysql_query($sql, $db)) { echo "Query failed"; } else { if (!$row = mysql_fetch_row($result)) { echo "No records found."; } } Tim Ward Internet Chess www.chessish.com

RE: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Jack E. Ambrose
Have you looked into Chilli Soft? It's an ASP interpreter for Apache and a number of other platforms. Fairly good from what I've heard, and owned by Sun now it appears. http://www.chillisoft.com/ Jack -Original Message- From: Mallen Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, April

[PHP] Assigning the contents of a file to a variable

2002-04-11 Thread Edward R. Bailey
Hi, I am trying to create an html automatic response email to users that fill out a form. Workflow - 1. User fills out form and selects submit 2. The contents of the form are then mailed to a secretary for record keeping 3. (Where the problem is) An html based email is sent to the email addres

[PHP] passing array to another php file

2002-04-11 Thread Hirono Tanaka
Hi, does anyone know how to pass an array to different php file? Let's assume I have an array $array[] in sample1.php. I want to pass the array to a different php files by doing something like: ... This didn't work actually. I can't think of any other wayto do this. Please help. Thanks.

[PHP] best postgreSQl host

2002-04-11 Thread Hirono Tanaka
Hi, I am looking for Web host that offers the best deal plus postgreSQL support. Could anyone come up with the best one? The best deal would include Telnet access and cost as low as round $15/per month. Thanks. _ MSN Photos is

[PHP] Re: unsetting an instance from within its class

2002-04-11 Thread Michael Virnstein
you can use unset($this), but it'll only work if there are no other variables referencing to this object. unset only unsets the reference to value, not the value itself. PHP will unset the value totally, if there are no references to it anymore. so using $this = null; , is perhaps the better solut

Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Rasmus Lerdorf
> We have just taken a contract for a dedicated server, and I tried rather > hard to get it to be a Linux server. The killer for that was that we > have a significantly complex site that will need to be migrated to the > server which has been coded in asp - which leaves us rather stuck with > Wind

Re: [PHP] passing array to another php file

2002-04-11 Thread Edward van Bilderbeek - Bean IT
two possibilities: - put your array in a form with hidden fields - use sessions I would prefer the second option (check manual for sessions) Greets, Edward - Original Message - From: "Hirono Tanaka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 10:33 AM

Re: [PHP] passing array to another php file

2002-04-11 Thread Richard Baskett
Actually if you really want to pass it through the URL you can do it this way: "> There are other ways of doing it, but basically you want a URL that looks like this: This tells php that that variable through the url is to be parsed as an array. You can also, like Edward said, use hidden fie

Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Mallen Baker
Sorry - I'm being clear as mud! We have an existing site which will need to live on the server - I'm looking at new development. The two don't need to work on the same thing - there's no question of recoding that site as coldfusion. - M >>> Rasmus Lerdorf <[EMAIL PROTECTED]> 04/11/02 08:37am >

RE: [PHP] Is While needed in MySQL Result with a Limit of 1

2002-04-11 Thread Tim Ward
Why not just use an if instead of a while? This way you test for a result and get it at the same time If ($array = mysql_fetch_array($result)) { foreach($array as $key=?$value) echo("$key=?$value"); } else echo("sorry didn't get anything"); Tim Ward Internet Chess www.chessish.com

[PHP] Re: Assigning the contents of a file to a variable

2002-04-11 Thread CC Zona
In article <00bc01c1e131$7a7bb7e0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Edward R. Bailey) wrote: > I want to assign the contents of a separate file (a web page) to > $message instead of inserting the contents of the file as a string in > the actual script. I want the body of the email to c

RE: [PHP] simple function question.

2002-04-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Jeff Bearer [mailto:[EMAIL PROTECTED]] > Sent: 10 April 2002 15:13 > [snip] > > but If it's possible I'd like to do it with one line > something that I'd > think it would be like this. > > my_function($bob,if($a=='H') return 'Y'; ); I think the nearest you

[PHP] Request Headers

2002-04-11 Thread José León Serna
Hello: I would like to know the http request sent to the server, to determine if is a GET, POST, etc. What function/variable I have to use? Best Regards. QaDRAM Studio, RAD Development for the WEB http://studio.qadram.com -- PHP General Ma

[PHP] Re: passing array to another php file

2002-04-11 Thread Michael Virnstein
first serialize and then base64encode your array. send this encoded string to the next page and base64decode it there first and then unserialize it. ... and sample2.php: "Hirono Tanaka" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, does anyone k

[PHP] Re: String termination with \0 ?

2002-04-11 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi All, > > I have the following question. I have been developing with C for a > while and I was used that the \0 indicated the end of a string. So if > I had a variable containing 1234\056789 and the variable was printed, > only 1234 w

Re: [PHP] String?

2002-04-11 Thread Michael Virnstein
see what's wrong here: ereg('(^[0-1231]$).jpg$',$file_name) [] meens a group of characters, so in your case 0,1,2 and 3 are valid characters. you haven't defined any modifer like ?,*,+ or{}, so one of this characters has to be found exactly one time. you're using ^ outside the [] so it meens the

[PHP] Re: Temporary off...

2002-04-11 Thread David Robley
In article , [EMAIL PROTECTED] says... > Hi! > > Is there any way to turn the list mails off temporary ? > I do not want to signoff, just now i wouldn't like to get 200 mails a day... > But maybe tomarrow i wanna... > > Thx > > Vaso > Nope - u

[PHP] PEAR libraries

2002-04-11 Thread Luke van Blerk
Hi How do I go about downloading the PEAR libraries and making use of them? I'm new to PHP and am looking for some high-quality libraries to make use of to help me write applications. I looked at PHPLib but I was put off because it uses PHP3. And would you recommend using PEAR or perhaps any othe

[PHP] Re: Temporary off...

2002-04-11 Thread Michael Virnstein
jup, that's what i am using. much better! no email spam and i can keep track of threads more easily. and i can "David Robley" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article , > [EMAIL PROTECTED]

[PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi folks! The following problem: I got a db (mysql) with information about doctors. Name, adress, phone etc. Now I'm reading these information with a simple mysql-query: $queryString = "SELECT DISTINCT m.$sureName, m.$preName, m.$prax, m.$title, "; $queryString .= "p.$town, p.$zip, p.$phone,

[PHP] Limits and PHP

2002-04-11 Thread Chuck \"PUP\" Payne
Hi, I would to know what is a good example of how to use limits within PHP. I have an SQL statement that looks at a database and pulls from it and all items in it, but like to be able to show let said ten items on one page then you press like to get the next twenty and so and so until there is no

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
ok, here we go. you normaly say this i suppose: while ($row = mysql_fetch_array($result) { //your html inserts here } if you'd use oracle, i'd suggest using a cursor, but you're using MySql, so you probably have to do it a bit different: (Not tested, could contain some errors!!!) // you'll

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
typo in the querystring, this should work, i suppose $queryString = "SELECT count(m.*) parxdocs m.$sureName, m.$preName, m.$title,

Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Mallen Baker
Can I give a profound vote of thanks to the list members who have taken part in this discussion. In spite of the rather awkward stage to do this, you persuaded me to bite the bullet, and find alternative solutions to the obstacles that had stopped me from following my initial inclination for a

[PHP] GD library

2002-04-11 Thread Ron Allen
I have downloaded the GD library and I am wondering how do I install it.. I unzipped it and put it my root. I have PHP version 4.1.1...what else is there to do? Does anybody have any script for me to test it real quick? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: Limits and PHP

2002-04-11 Thread Michael Virnstein
ok, if you're using mysql you can use the LIMIT function in your statement: SELECT * FROM table LIMIT 0, 30 would show 30 rows starting from row 1. you can set a variable telling your php script how many entries per page you will show: $showlines = 10; and telling your script where to start the

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Justin French
Just a quick note, you wouldn't base it upon $description would you? It really depends on your data, but consider these four records: Fred Flintstone Bedrock (shared house) Wilma Flintstone Bedrock (shared house) Homer Simpson Springfield (shared house) Marge Simpson Springfield (shared house)

[PHP] Apache 2.0.35 and php4.1

2002-04-11 Thread Markus Meixner
Hi, i installed the new Apache 2.0.35. When i want to load the php4 module apache doesn't starts. On Apache 1.3.22 it works fine. I find something on php.bugs.net. << If you use it with apache 2, you need a special SAPI module. Ask for support on the [EMAIL PROTECTED] mailinglist >>> What sh

Re: [PHP] Limits and PHP

2002-04-11 Thread Justin French
You'd actually do it with LIMIT in your MySQL statement. There's an article on phpbuilder.com http://phpbuilder.com/columns/rod20001214.php3 or check out LIMIT in the MySQL manual. Justin French Creative Director http://Indent.com.au on 11/04/02 9:

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Justin! > By testing for (shared house), you'd end up grouping them > together like > this: > > Fred Flintstone > Wilma Flintstone > Homer Simpson > Marge Simpson > Bedrock > (shared house) > > ... which isn't your intended result. Yes it is ;) What you write is right but this is how

Re: [PHP] Apache 2.0.35 and php4.1

2002-04-11 Thread Tyler Longren
That's because PHP wasn't built to run with Apache 2.0.25. Apache has changed so much between the 2.0.xx releases that the php developers can't keep up with it. Wait until the next RC of PHP or the next stable version. Tyler - Original Message - From: "Markus Meixner" <[EMAIL PROTECTED

[PHP] Apache 2.0

2002-04-11 Thread Marcin Pasieka
How to install PHP on Apache 2.0 server? Sincerely Marcin Pasieka

[PHP] problem with mysql

2002-04-11 Thread Roman Duriancik
Please send me info : how to set path for *.pid file and ho to set path where will be mysql.sock in mysql database on linux ? i want : mysql.sock and localhost.pid in directory /var/lib/mysql i install mysql with this command... ./configure --localstatedir=/var/lib/mysql --bindir=/usr/bin --lib

Re: [PHP] newbie html forms primer help

2002-04-11 Thread ROBERT MCPEAK
This has jump started me. How do I grab only certain variables, for example, only vars named "doh," or, better yet, only vars containing "doh?" I have check box vars named 4-1, 4-2, 4-3, 4-4, etc., and I wish to stick them together in a string, but only those vars, no others. Is there a smarter

[PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Hermann Bier
Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = "/usr/sbin/saslpasswd -p $username"; $saslproc = popen($saslpasswd,"w"); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or

Re: [PHP] GMT / TimeZone modifications

2002-04-11 Thread Peter H. Lemieux
Just had to solve this problem the other day. Here's a quick snippet to display the time in Great Britain while my server's located in Boston: This switches the timezone locale to GB, displays the local time there, then switches back to Eastern US. Peter - Original Message - From: "

Re: [PHP] GD library

2002-04-11 Thread Sebastian Wenleder
At 14:21 Uhr +0200 11.04.2002, Ron Allen wrote: >I have downloaded the GD library and I am wondering how do I install it.. > >I unzipped it and put it my root. I have PHP version 4.1.1...what else >is there to do? Does anybody have any script for me to test it real quick? > you will have to

Re: [PHP] Apache 2.0

2002-04-11 Thread Tyler Longren
I suppose I might as well answer this question for the third or fourth time on this list: That's because PHP wasn't built to run with Apache 2.0.25. Apache has changed so much between the 2.0.xx releases that the php developers can't keep up with it. Wait until the next RC of PHP or the next st

[PHP] Statistic Variables

2002-04-11 Thread Martin Clifford
Hello again everyone... Well, I did create that "visitor log" file for my page, and it's working great, so thanks to all of you that helped me out yesterday! I've been looking and looking and looking through the PHP manual (which for a newbie is very hard to navigate), and I've only come up w

[PHP] Re: GD library

2002-04-11 Thread Ron Allen
This is for a Windows 2000 server "Ron Allen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have downloaded the GD library and I am wondering how do I install it.. > > I unzipped it and put it my root. I have PHP version 4.1.1...what else > is there to

[PHP] HTML Character Parsing

2002-04-11 Thread David
Hi all, I have a textarea which will containg info from the user. This then needs to be parsed through something like htmlspecialchars() or htmlentities(). The issue is that my system really needs to do the following: 1. Accept the info 2. Check if there is any HTML syntax (, etc) 3. If YES: re

[PHP] Discover about php.ini

2002-04-11 Thread Mauricio Sthandier
I couldn't get my site working por two days... and finally I discover the reason. I copied (I guess for developing testing reason) php.ini into the site folder... so I discover I can have different php.ini in every virtual directory... and I find it damn good !. is so for each webserver ? (current

[PHP] Re: Statistic Variables

2002-04-11 Thread Julio Nobrega Trabalhando
Referer page ($HTTP_REFERER), current page (REQUEST_URI), ip ($X_FORWARDED_FOR or $REMOTE_ADDR), host ($HTTP_HOST), time (date() or database's NOW()), username (if you have somekind of authentication), the operating system and browser (from $HTTP_USER_AGENT or similars). These are the ones I lo

Re: [PHP] Apache 2.0

2002-04-11 Thread Andrew Scott
On 11 Apr 2002 at 14:37, Marcin Pasieka wrote: > How to install PHP on Apache 2.0 server? > As far as I can see, at the moment, the only way is to use cgi. It looks like that API stuff has to be rewritten/updated a little. However, since Apache 2 is now released, the API shouldn't be changing

[PHP] howto call php script from cgi script

2002-04-11 Thread sanjay
Hi, I am a cgi programmer and have written a small php script (md5.php) for md5 password encryption which is being called from a cgi (temp.cgi) file. Now, when I try to excute the temp.cgi script from command line it works well and returns me the expected value. But, the same cgi script doesn't r

[PHP] Making graphics

2002-04-11 Thread Ron Allen
Here is what I want to do. I am taking a poll and I would like to display the results in a bar graph format. What is the best way to do this.hopefully you will not say GD library! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Making graphics

2002-04-11 Thread Christoph Starkmann
Hi Ron! > Here is what I want to do. > > I am taking a poll and I would like to display the results in > a bar graph > format. What is the best way to do this.hopefully you > will not say GD > library! If you don't like GD, why not try Flash instead? ;)) -- PHP General Mailing Lis

Re: [PHP] Arrays within classes

2002-04-11 Thread Erik Price
On Friday, April 5, 2002, at 03:00 PM, Brian McLaughlin wrote: > My problem is that when I assign an empty array to a variable, I get > different results depending on whether that variable is in an object or > not. > In the case of assigning $a=array(); outside of an object, each element > of

Re: [PHP] Making graphics

2002-04-11 Thread Martin Cabrera Diaubalick
How about using regular HTML, and images and playing with their width property? AFAIK, it's the simplest way! HTH Regards El Jue 11 Abr 2002 16:00, Ron Allen escribió: >Here is what I want to do. > >I am taking a poll and I would like to display the results in a bar graph >format. What i

Re: [PHP] Re: need help with your code?

2002-04-11 Thread Analysis & Solutions
Hi Christopher: On Wed, Apr 10, 2002 at 05:27:18PM -0400, Christopher J. Crane wrote: > Ok time out...the problem was simple I had each of the functions one it's > own line because it was simple to see. When I add code to the functions then > I do make it as indicated and easier to read. The p

Re: [PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Barry C. Hawkins
Hermann, Maybe change: $saslpasswd = "/usr/sbin/saslpasswd -p $username"; to: $saslpasswd = "/usr/sbin/saslpasswd -p " . $username; I assume $username is being assigned somewhere. Regards, -- Barry C. Hawkins Systems Consultant All Things Computed [EMAIL PROTECTED] On Thu, 11 Apr 2002 14:53

Re: [PHP] newbie html forms primer help

2002-04-11 Thread Erik Price
On Thursday, April 11, 2002, at 08:52 AM, ROBERT MCPEAK wrote: > This has jump started me. How do I grab only certain variables, for > example, only vars named "doh," or, better yet, only vars containing > "doh?" I have check box vars named 4-1, 4-2, 4-3, 4-4, etc., and I wish > to stick the

Re: [PHP] Statistic Variables

2002-04-11 Thread Chris Hewitt
Martin, Run the funtion phpinfo() and look at the resulting "PHP Variables" section. Alternatively, they are listed in the manual under Chapter 7, Variables, Predefined variables, PHP variables. The one to use is the last one $HTTP_SERVER_VARS, and array of the variables listed under Apache V

[PHP] Inheritance & overriding methods

2002-04-11 Thread Morten Rønseth
Hi, The subject says it all, really, I need to be able to override a superclass method AND also call the super's method in a way so that IN the super's method "$this" will refer to the original object, as follows: doit (); print (get_class ($this)); } } $b = new B (); $b->doit ();

[PHP] while() query

2002-04-11 Thread Caspar Kennerdale
This may be a baisc programming query, to which I dont have the ansa, but can you do a while () loop, but set a condition so that it misses one ie $counter = -1; while(++$counter <50){ do a task on all between 1 and 50 except on 39 } Thanks -- PHP General Mailing List (http://www.php.net/

RE: [PHP] while() query

2002-04-11 Thread Christoph Starkmann
Hi Caspar! $counter = -1; while(++$counter <50) { if ($counter != 39) { do a task on all between 1 and 50 except on 39 } } This should do... Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-

RE: [PHP] while() query

2002-04-11 Thread Caspar Kennerdale
Thanks to all -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: 11 April 2002 07:22 To: 'Caspar Kennerdale'; '[EMAIL PROTECTED]' Subject: RE: [PHP] while() query Hi Caspar! $counter = -1; while(++$counter <50) { if ($counter != 39) {

[PHP] Re: Making graphics

2002-04-11 Thread David
Another option (Maybe not the easiest, but so pretty: Newer version of Delphi/Kylix allow for web-based application deployment. You could use this and a nice graphics component like Teechart, etc. Ron Allen wrote: > Here is what I want to do. > > I am taking a poll and I would like

Re: [PHP] PCRE - catching a caracter set in a negative class

2002-04-11 Thread Analysis & Solutions
Yo Maxim: On Wed, Apr 10, 2002 at 10:48:42AM +0900, Maxim Maletsky wrote: > > $text = ' > some text ... > {php} > echo "some funcy code to include he{re"; > {/php} > '; > > $out = preg_split("/(\{php}[^\{php}]*\{\/php})/i", $text, -1, > PREG_SPLIT_DELIM_CAPTURE); Your middle segmen

RE: [PHP] Upload problem

2002-04-11 Thread Johnson, Kirk
Try putting a hidden field like below in your form. Set the value (bytes) to the size you want to be able to upload: Kirk > -Original Message- > From: Frédéric Mériot [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 1:48 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Upload pro

RE: [PHP] Request Headers

2002-04-11 Thread Johnson, Kirk
In the $HTTP_SERVER_VARS array there is an element named REQUEST_METHOD which has this information. So use $HTTP_SERVER_VARS['REQUEST_METHOD']. Kirk > -Original Message- > From: José León Serna [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 3:41 AM > To: [EMAIL PROTECTED] >

[PHP] Re: Sending HTML from PHP with 'mail' as a cron job

2002-04-11 Thread phplists
$headers = "Content-type: text/html\n"; $fromEmail = urlencode( $dbQuery->adminEmail ); $subject = "Your new eStore is ready!"; $message = "::name::, Your new eStore is ready at http://woodenpickle.com/shop\";>http://woodenpickle.com/shop.Y ou can open the admin panel for it at the following link

[PHP] how to create a file with php

2002-04-11 Thread andy
Hi there, I am wondering how to create a file on the server. I do not want to write anything to the file. Just create it. Thanx Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Set Global Variables

2002-04-11 Thread RRamirez
Is there a way to set a global variable that all users can access? I have some values in a database that I'm reading at the beginning of the session and carrying through out the session. The thing is, those values are the same for every user and instead of having a memory space for each users va

Re: [PHP] Set Global Variables

2002-04-11 Thread Rasmus Lerdorf
Set up an auto_prepend file that either simply sets these constant globals ot fetches them from the DB. -Rasmus On Thu, 11 Apr 2002 [EMAIL PROTECTED] wrote: > Is there a way to set a global variable that all users can access? I have > some values in a database that I'm reading at the beginning

Re: [PHP] how to create a file with php

2002-04-11 Thread Rasmus Lerdorf
http://php.net/touch On Thu, 11 Apr 2002, andy wrote: > Hi there, > > I am wondering how to create a file on the server. I do not want to write > anything to the file. Just create it. > > Thanx Andy > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://w

Re: [PHP] how to create a file with php

2002-04-11 Thread Andrey Hristov
exec("touch /path/to/filename"); exec(":> /path/to/filename"); or just fclose(fopen("/path/to/filename","w+")); Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 6:14 PM Subject: [PHP] how to create a file with php > Hi

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
i rethought the sql and found, that the column parxdocs wont contain the number of doctors per praxis. this would only be done if there are more than one doctor with the same name, surename and title in one praxis. but you can do this instead // now you'll get the number of doctors per praxis $sq

[PHP] Doesn't php_printer.dll work?

2002-04-11 Thread Raymond Lilleodegard
Hi! Does anyone know how to get the printer.dll to work? I have tried to remark the extensions in php.ini but without any luck. And I am running win2k so I cant see why it shouldn't. Best regards Raymond -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] image dimentions

2002-04-11 Thread steve bissonnette
I believe you want this, http://www.php.net/manual/en/function.getimagesize.php > on 4/10/02 1:11 AM, Steve Klugherz at [EMAIL PROTECTED] wrote: > Is there anyway to gather image dimentions from a gif or a jpg file? I need > to gather this information from user uploaded files and can not

[PHP] is it possible to scann subdirectories?

2002-04-11 Thread andy
Hi there, I have to change several filenames in lots of subdirs. The script for changing filenames already works. How could I extend this to include all subdirs? thanx, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
hmm...he has a table for premises and one for doctors, hasn't he? > FROM $medTable m, > $praxTable p "Justin French" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a quick note, you wouldn't base it upon $description would you? > It reall

Re: [PHP] is it possible to scann subdirectories?

2002-04-11 Thread Andrey Hristov
make recursive function for this. or use some external comment to find your files. for example : find is a good choice find -type f / -exec grep ohmygoodness {} \; will look in every file for "ohmygoodness" Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Michael... > hmm...he has a table for premises and one for doctors, hasn't he? > > FROM $medTable m, > > $praxTable p He has ;)) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP G

[PHP] IE & $HTTP_REFERER...

2002-04-11 Thread Matthew Walker
I just ran across a very strange problem with IE. When I use javascript to open a new window (Using window.open()), the page that is loaded in the new window does not get any HTTP_REFERER. Does anyone know why this is, and if other browsers will have the same problem? I use Mozilla, and it passe

Re: [PHP] while() query

2002-04-11 Thread Jason Wong
On Friday 12 April 2002 06:15, Caspar Kennerdale wrote: > This may be a baisc programming query, to which I dont have the ansa, > > but can you do a while () loop, but set a condition so that it misses one > ie > > $counter = -1; > while(++$counter <50){ > > do a task on all between 1 and 50 excep

Re: [PHP] problem with mysql

2002-04-11 Thread Jason Wong
On Thursday 11 April 2002 20:40, Roman Duriancik wrote: > Please send me info : how to set path for *.pid file and ho to set path > where will be mysql.sock in mysql database on linux ? > i want : mysql.sock and localhost.pid in directory /var/lib/mysql > > i install mysql with this command... >

[PHP] Serializing Binary Data

2002-04-11 Thread Scarbrough, Jeb (ISS Atlanta)
Is it possible to serialize binary data? An image for example. I am trying to accomplish this: 1. Build web page. 2. Retrieve dynamically built image from another physical server. 3. Serialize the image and store it in some type of session variable 4. Unserialize this image and display it inlin

RE: [PHP] String?

2002-04-11 Thread Ford, Mike [LSS]
> -Original Message- > From: jas [mailto:[EMAIL PROTECTED]] > Sent: 11 April 2002 11:34 > while ($file_names = readdir($dir)) { > if ($file_names != "." && $file_names !=".." && > ereg('_(^[0-9]{4}.jpg$)', OK, let's take a close, step-by-step look at this ereg pattern: _ OK -- mat

[PHP] Re: Serializing Binary Data

2002-04-11 Thread Michael Kimsal
Jeb Scarbrough wrote: > Is it possible to serialize binary data? An image for example. I am trying > to accomplish this: > > 1. Build web page. > 2. Retrieve dynamically built image from another physical server. > 3. Serialize the image and store it in some type of session variable > 4. Unseria

[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] IE & $HTTP_REFERER...

2002-04-11 Thread Brian Drexler
I've also noticed that IE does not pass the Authenticated User properly -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 11:50 AM To: [EMAIL PROTECTED] Subject: [PHP] IE & $HTTP_REFERER... I just ran across a very strange problem with

RE: [PHP] RE: editors

2002-04-11 Thread Caspar Kennerdale
www.editplus.com -Original Message- From: Andrew Chase [mailto:[EMAIL PROTECTED]] Sent: 11 April 2002 09:08 To: [EMAIL PROTECTED] Subject: [PHP] RE: editors I like emacs - freely available for Windows and Linux, and if you use php-mode for font locking you get nice automatic indentation

Re: [PHP] String?

2002-04-11 Thread Michael Virnstein
and i'd suggest using eregi instead, because then also .Jpg or .JPG will be found. "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > see what's wrong here: > ereg('(^[0-1231]$).jpg$',$file_name) > > [] meens a group of characters, so in

Re: [PHP] Assigning the contents of a file to a variable

2002-04-11 Thread Mike Gohlke
Edward R. Bailey wrote: >Hi, > >I am trying to create an html automatic response email to users that >fill out a form. > >Workflow - > >1. User fills out form and selects submit >2. The contents of the form are then mailed to a secretary for record >keeping >3. (Where the problem is) An html bas

Re: [PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Mike Gohlke
Hermann Bier wrote: Hermann, Even in CLI scripts, you must enclose the php script in delimiters. > Hi!! > > i`ve wrote a little script to run under shell, so this script: > #!/usr/bin/php > $saslpasswd = "/usr/sbin/saslpasswd -p $username"; > $saslproc = popen($saslpasswd,"w"); > fputs($saslpr

[PHP] Re: howto call php script from cgi script

2002-04-11 Thread Michael Virnstein
doesn't it have to be: # md5.php #!/usr/bin/php (path to your php) and have you test your cgi using "su - webuser" before? perhaps some file permission problems, when called from the web. "Sanjay" <[EMAIL PROTECTED]> schrieb im

[PHP] cookies not being sent?

2002-04-11 Thread Timothy J. Luoma
I have been using PHP that someone from this list provided in order to provide a CSS switcher to my site (below). I noticed today that it isn't working (it was working previously). As far as I can tell, the problem is that cookies are not being sent. I tested this by setting Opera to 'display

Re: [PHP] templates and listbox

2002-04-11 Thread Javier
But does it use templates? I want to use templates not functions that generates html. Analysis & Solutions wrote: > On Wed, Apr 10, 2002 at 06:32:18PM -0300, Javier wrote: > >>Does templates (eg php-templates or Smarty) fill automatically listboxes? >>Or do I need to code it? > > > If your lis

[PHP] Re: Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
wrong again, forgot the grouping, this is the right sql: $sql = "SELECT p.id, p.$town, p.$zip, p.$phone, p.$description count(m.*) praxdocs FROM $p

  1   2   3   >