Re: [PHP] Creating a javascript array from database data

2001-08-15 Thread Neil Freeman
Thanks a lot for your help Sheridan, This now appears to work ok :) but if I remove the: print \$text\; line (as it is not required), I receive errors complaining about a syntax error (related to what?) and that 'text' is undefined. As this line simply outputs the value to screen why should

[PHP] Is this a bug?

2001-08-15 Thread Stig Nørgaard Jepsen
Hello, I have this code, which is a cooked down code of something bigger. So don't ask what it's for. The problem is that I can't get this script working the way I like it at all. Maybe it's a bug. Maybe you have another suggestion? Somewhere in the middle section i have wrote test1 and test2 as

RE: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Michael Geier, CDM Systems Admin
Why not use the tool built for the job? mysqldump will allow saving both data and structure. http://www.mysql.com/doc/m/y/mysqldump.html -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: Re:

[PHP] php_value in htaccess, internal server error

2001-08-15 Thread Egan
I need to set some PHP values like: php_value session.save_path /a_more_secure_dir in my .htaccess file. But the main Apache httpd.conf file has: AllowOverride AuthConfig FileInfo Indexes and php_value in .htaccess causes Apache internal server error! Now if I change httpd.conf to

[PHP] How to find out which function caused an error

2001-08-15 Thread Justin Finkelstein
Hi kids I have a function in one of my includes: db.inc.php::getQuery which does most of my mySQL calling for me. However, when the mySQL call fails, I get a nice error which is useful except one thing. It doesn't tell me which function called it. Does anyone know how to find to do the

[PHP] Re: Question about PHP and images

2001-08-15 Thread Schrotty
Let's i.e. a Bannerexchange, the users just put an img-tag on there site and the image appears. I wnat to know how this is possible. I tried already something like this: $im = imagecreatefromgif(news.jpg); imagegif = (); Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

[PHP] Re: Question about PHP and images

2001-08-15 Thread Schrotty
My problem is solved!!! Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wanted to call a PHP-Skript through a img-Tag and PHP sends a image back. How can I do that? Schrotty.* I'm German, so please be patient with my English. -- PHP

[PHP] Security in PHP+MYSQL

2001-08-15 Thread CB
I have a security-question that I hope someone can answer, my question is: Will the DROP+TABLE+TBL_TEST-part in http://www.foo.bar/page.php?id=1;DROP+TABLE+TBL_TEST; be executed? /Örjan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] How to find out which function caused an error

2001-08-15 Thread Tyler Longren
Can you post the error so we can have a look at it? If it didn't provide a function, it's probably a parse error (missing semi-colon, missing quote). Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 15 Aug 2001 18:43:49 +0100 Justin Finkelstein [EMAIL

Re: [PHP] Re: Question about PHP and images

2001-08-15 Thread Kunal Jhunjhunwala
How did you solve it? Kunal - Original Message - From: Schrotty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 11:18 PM Subject: [PHP] Re: Question about PHP and images My problem is solved!!! Schrotty [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

[PHP] Feedback welcome!

2001-08-15 Thread David Jansen
Everyone, *I checked to make sure it would be OK to post the following here so please don't mistake it for spam. I was told it would be more than OK!* I help develop a text editor called EmEditor and we are about to focus development on supporting the needs/wants of a select number of

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-15 Thread Sheridan Saint-Michel
Think in terms of output... The JavaScript is literally going to try and run the output of the PHP (It doesn't even know PHP exists). PHP is outputting the source code for the HTML and JavaScript. So what you are trying to do is get PHP to take dog,cat,cow from MySQL and output: Script

[PHP] Eval error

2001-08-15 Thread Felipe Coury
Hi, I am a beginner in PHP and I am trying to do the following: I have a form in a page that has 3 fields: email_1, email_2 and email_3. I am trying to send e-mail to those people, if the fields are filled. Relevant part of code: ?php for ($i = 1; $i = 6; $i++) { $eval = '\$email =

[PHP] PHP on client-side

2001-08-15 Thread Tom Malone
Wouldn't it be nice if there was a way develop client-side (browser-based) applications for PHP? I see so many posts about using PHP to interact with JavaScript - wouldn't it be cool if you could just tell your PHP code where to run - server or client (similar to what ASP does with VBScript)? I

[PHP] bold current menu item

2001-08-15 Thread Jason Dulberg
I am dynamically creating a menu based on a title field from a database. ie item1 item2 etc. Is it possible that when I'm on the item1 page to bold the title in the menu? Any suggestions are appreciated. __ Jason Dulberg Extreme MTB http://extreme.nas.net -- PHP General

[PHP] Engine help

2001-08-15 Thread PHP List
Hi, I am trying to upgrade from php3 to php4, I recompiled apache_1.3.20 and php4.0.6 as per instructions(http://www.php.net/manual/en/install.apache.php). Everything seemed ok, but LoadModule in the httpd.conf was no longer recognized so I # all the LoadModule and AddModule lines. httpd -l

[PHP] getting extra output with cURL

2001-08-15 Thread Nigel_Soon
Hi, I'm using curl to do a post and when I run the curl_exec($ch) it does the post and the result is displayed, however after the /HTML it is printing a 0. It seems to be in the return of the post because if I echo something after the curl_exec statement it come after the 0. Has anybody had

[PHP] build button with php

2001-08-15 Thread nafiseh saberi
hi. I want to build buttons with php and when click eavh of them , one special work ,do for me. how can I do it??? best regards. nafiseh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] build button with php

2001-08-15 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just output the proper HTML codes. INPUT TYPE=SUBMIT -Original Message- From: nafiseh saberi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 3:12 PM To: [EMAIL PROTECTED] Subject: [PHP] build button with php hi. I

[PHP] Problem with updating

2001-08-15 Thread Martin Kampherbeek
Hello, I have created a predictionscompetition and some code counts te total score of a match of a person. On the screen it workes, but in de database it goes wrong. Each person gets the total of the last person. There must be something wrong with the update statement. I hope someone can help

[PHP] Re: build button with php

2001-08-15 Thread Hugh Bothwell
Nafiseh Saberi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I want to build buttons with php and when click eavh of them , one special work ,do for me. htmlbody ?php function action1() { echo brDo action 1; } function action2() {

[PHP] Re: build button with php

2001-08-15 Thread Hugh Bothwell
Hugh Bothwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if (isset($action) and isset($action_list[$action])) { $t = $actions[$action](); Typo alert!! This line should be '$t = $action_list[$action];' -- PHP General Mailing List

RE: [PHP] Re: javascript reference (slightly ot)

2001-08-15 Thread Matthew Loff
JavaScript Reference Guide-- http://rts.ncst.ernet.in/resources/javascript/reference/ I remember having trouble finding a complete object/method reference too, this document really helped me. -Original Message- From: Al [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001

Re: [PHP] PUT method support

2001-08-15 Thread icom
David Robley wrote: On Tue, 14 Aug 2001 18:43, Rukhiya wrote: Hi! How do I use a PUT method support to upload files from the client to the WEB server? Can anyone pls. help me out to find a solution to these problems. It's very urgent regards Rukhiya

[PHP] Re: comments about the Free Gallery Management System

2001-08-15 Thread miguel valero
Chris, The prototype is a single user, 16 bits application, developed in Borland C++ 4.x in a Windows 3.x environment. You should be able to run it on the following operating systems: DOS 5.0 or later, Windows 3.1 and Windows 95/98. To get familiar with the way the system works, you could

Re: [PHP] Eval error

2001-08-15 Thread Mark Maggelet
lots of things: 1) variables in single-quoted strings aren't evaluated so you don't need to escape the $ in $email 2) php uses . not + for concatenation. 3) try it like this: eval('$email = $email_'.$i.';'); or eval(\$email = \$email_$i;); 4) you can save yourself the trouble by using arrays

[PHP] auto-input data into form boxes

2001-08-15 Thread Hugh Danaher
I need professional help! I need to make a form that will display old data in the form boxes, wait for user input (if they want to change something), and then go on to another page. This is what I have now, and it doesn't work: datafile.php ?php $alpha=Alpha; $numb=46; ?

Re: [PHP] auto-input data into form boxes

2001-08-15 Thread Kunal Jhunjhunwala
Hi, Try this, ?php include(datafile.php); print form action=test2.php method=get; print centerinput type=text name=alpha value=$alpha size=5/centerbr; print centerinput type=text name=numb valus =$numb size=5/centerbr; print centerinput type=submit value=Do_It!/center;

Re: [PHP] auto-input data into form boxes

2001-08-15 Thread Data Driven Design
The problem is with your input page. You're putting the variable values where the names go inputpg.php ?php include(datafile.php); print form action=test2.php method=get; print centerinput type=text name=.$alpha. size=5/centerbr; print centerinput type=text name=.$numb.

[PHP] Need open source community help!

2001-08-15 Thread Jay Paulson
Hello everyone- (skip to the *'s to see the questions if you don't want to read all of this thanks) This might be a little off topic here but I really need some help and a great opionion on this matter. Here's the situation, I have created this software in php and mysql. What it is is it

Re: [PHP] Need open source community help!

2001-08-15 Thread PHP List
IMO I would have to say it depends on the Timeline of your Boss. Releasing the app to the open source community would be great, the more there is, the more reason for people to stop using MS, but you can't demand a schedule of when new features will be added. You may have to go with the MS for

[PHP] Re: could i get a clue?

2001-08-15 Thread marilyn manson
Sorry I wasn't very clear on what I needed to be done by javascript and php. basically i have a flash movie that calls a javascript function and I was wondering if I could do something in javascript like: var x = bleh.php; and get some variables back but I soon learned that I could do this

[PHP] Connecting to Sybase on Linux

2001-08-15 Thread Kansas Territory
Could someone point me to any information regarding connecting PHP on linux to connecting to a separate server running Sybase on linux. To be more specific, it's the Sybase that ships with Intershop 4.2 Currently, our php installation can connect to postgres, and mssql(using some free tds

Re: [PHP] Connecting to Sybase on Linux

2001-08-15 Thread Tyler Longren
Here ya go: http://www.php.net/manual/en/ref.sybase.php Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 15 Aug 2001 16:30:16 -0500 Kansas Territory [EMAIL PROTECTED] wrote: Could someone point me to any information regarding connecting PHP on linux

[PHP] Snoopy class: Getting the auth cookie back?

2001-08-15 Thread Brandon Orther
Hello, For my script to login to a SSL site I need to have the snoopy class receive a cookie and store it as a variable. Is that possible with Snoopy0.94? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED]

Re: [PHP] Need open source community help!

2001-08-15 Thread Michael Kimsal
Why would people move away from a package they paid for already? Especially if it's backed up by another company - I'm guessing there's probably some maintenance contracts they will be signing. I'd suggest you (Jay) look at some other OS projects which may be more full-featured already, and

[PHP] Re: Help, I'm so close!!!

2001-08-15 Thread Marc Hanlon
Brandon, I was told of a better way of sending POSTs without using cURL and it allows usernames and passwords to be used... // Format of $authorization is username:password (for password protected directories) // Code can be easily modified to add input parameters for User-Agent, Referer,

Re: [PHP] Need open source community help!

2001-08-15 Thread Jay Paulson
Well I know they aren't going to want to spend $11k on all that new stuff.. when what I have cost them nothing at all.. :) however, the company I'm talking to is willing to deal and since I work for 6 radio stations they would probably be willing to trade some advertisement on the air for their

RE: [PHP] location bar

2001-08-15 Thread Wolfgang Schneider
On Tue, 14 Aug 2001 11:39:55 -0400, Kurth Bemis wrote: just stick this in a function as I did and you'll be sailing.its easy to update, and Extremely flexible. look at my code.. (rest snipped) Hi Kurth, and others I adjusted your code for the purpose of my site (replacing he values in

[PHP] Problem with a socket in non-blockant state

2001-08-15 Thread Cerel
Ok here is the story : I got a php script that comunicates with a game server (Half-life). This script uses socket_set_timeout. But the build of php i downloaded doesn't support socket_set_timeout(). So i started to modify the script to do without. Here is the prob : the script use the socket as

Re: [PHP] Problem with updating

2001-08-15 Thread Chris Hayes
hi martin, Could you send the code again and now include - the part where you get the $id_voorspelling from - the part where you make the $t1 - which variable goes wrong? $t1 or $t01? Can you check the table in mysql to see whether the error is in the update or in the print? Chris Van:

Re: [PHP] a bit off the list but should be easy

2001-08-15 Thread Ryan Fischer
You wrote: Note that the download font thing is Internet Exploder Specific. Internet Exploder also has a few issues with different charsets. Also note that *all* html documents should have a specified charset - even the plain english ones. Most of the html on the internet is coded wrongly,

Re: [PHP] Instalation

2001-08-15 Thread Juan Pablo Rivera
first you have to unzip your sources: gzip -vd apache*.tar.gz | tar -vxf apache*.tar gzip -vd php*.tar.gz | tar -vxf php*.tar gzip -vd mysql*.tar.gz | tar -vxf mysql*.tar then cd apache.. ./configure --prefix=/your/path/www cd .. cd mysql... ./configure --prefix=/usr/local/mysql make | make

Re: [PHP] auto-input data into form boxes

2001-08-15 Thread Hugh Danaher
Thank you. Thank you. Thank you. - Original Message - From: Kunal Jhunjhunwala [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 1:26 PM Subject: Re: [PHP] auto-input data into form boxes Hi, Try this, ?php include(datafile.php); print form

[PHP] Templates???

2001-08-15 Thread Georgie
Can anyone direct me to some sample PHP code that extracts HTML from a template file and replaces the, say, %field% tags in the HTML with variables from the PHP file. Just like what Gossamer Threads Links program does with Perl. So, any 1 have any links?? -- PHP General Mailing List

[PHP] Object members dynamic access?

2001-08-15 Thread Sean C. McCarthy
Hi All, I was wondering if it is possible to access dinamically to the members of a class. I mean to access like: -- class foo { var $bar; var $barbar; } ... ... $foo_instance = new foo; $somevar = $foo-$anothervar; - I now this

[PHP] Re: Object members dynamic access?

2001-08-15 Thread Cerel
Try this : class foo { var $var1=hello; var $var2=world; } ... ... $fooinstance = new foo; $vartest=$fooinstance-var1; echo ($vartest); // should be 'hello' This should work, but i had no time to test this code. See you later Sean C. McCarthy [EMAIL PROTECTED] a écrit dans le message :

Re: [PHP] Re: Object members dynamic access?

2001-08-15 Thread Sean C. McCarthy
Hi, The code below is actually code to access an object's member. That's fine as long as you give the name of the member at the time you write the code. What I am interested is to know if the members name might be a variable, I mean not hardcoded but a variable useful for loops, etc. Thanks.

Re: [PHP] bold current menu item

2001-08-15 Thread David Robley
On Thu, 16 Aug 2001 03:50, Jason Dulberg wrote: I am dynamically creating a menu based on a title field from a database. ie item1 item2 etc. Is it possible that when I'm on the item1 page to bold the title in the menu? Any suggestions are appreciated. Presumably there is a

[PHP] Search code finds ANYTHING

2001-08-15 Thread Raphael Pirker
Hi, function search_the_array($array) { global $search_tmp; $result = array_search($search_tmp, $array, TRUE); reset($array); while (!($result === FALSE) (list($k, $v) = each($array))) { // Or maybe you wanted

Re: [PHP] Date function

2001-08-15 Thread David Robley
On Thu, 16 Aug 2001 00:38, Mike Mike wrote: Hello, I'm pulling a date out of MySQL as 2001-10-18. How do I make it print October 18 in php? Thanks much --Mike You could use the Mysql date functions to format it for you. If your date field is called date and is a date type: SELECT

[PHP] I will not eat them Sam-I-Am

2001-08-15 Thread Justin
If I dump something out from phpMyAdmin like this: INSERT INTO database VALUES( 'bill's bowtie'); and then I want to feed it back into phpMyAdmin it gives me an error. Basically, it's confused by the middle apostrophe. So how can I dump this statement back into phpMyAdmin other than by

Re: [PHP] php_value in htaccess, internal server error

2001-08-15 Thread David Robley
On Thu, 16 Aug 2001 03:08, Egan wrote: I need to set some PHP values like: php_value session.save_path /a_more_secure_dir in my .htaccess file. But the main Apache httpd.conf file has: AllowOverride AuthConfig FileInfo Indexes and php_value in .htaccess causes Apache internal

[PHP] Compiling with Imlib2

2001-08-15 Thread Chris Aitken
Hey all, Just a quick one which is driving me a tad mad at the moment Im trying to compile PHP 4.0.6 to have imlib2 in it, and in the php_imlib doco, it tells me to add the following flag to it the ./configure --with-imlib[=/path/to/Imlib2] Now the problem is, I dont know what to put in

[PHP] Parse Error

2001-08-15 Thread Michael L
Hi ! I have recently install php4 on Red Hat Linux with Apache, i try to connect to MySql Database but i have a parse error (on line 2) , why ? ( i have tried mysql_connect but it still doesn't work too ) ?php $link = mysql_pconnect (kron, jutta, geheim) { or die (Connexion

RE: [PHP] Parse Error

2001-08-15 Thread Jason Murray
?php $link = mysql_pconnect (kron, jutta, geheim) { or die (Connexion impossible); } ^ ^ Those two {}'s aren't needed for an or dosomething operation. Jason -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to find out which function caused an error

2001-08-15 Thread Justin Finkelstein
The error I get is filtered by the getQuery function. It spits out: Unable to execute query in getQuery: insert into textblocks (id, language, textitem) values (max(id)+1, 'en', '') Error: Unknown column 'textitem' in 'field list' The code for the function (for reference) is: function

RE: [PHP] How to find out which function caused an error

2001-08-15 Thread Jason Murray
Unable to execute query in getQuery: insert into textblocks (id, language, textitem) values (max(id)+1, 'en', '') Error: Unknown column 'textitem' in 'field list' I daresay that your table textblocks doesn't have a column called textitem. Jason -- PHP General Mailing List

[PHP] Re: Search code finds ANYTHING

2001-08-15 Thread Hugh Bothwell
Raphael Pirker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... function search_the_array($array) { global $search_tmp; $result = array_search($search_tmp, $array, TRUE); reset($array); while

[PHP] Re: I will not eat them Sam-I-Am

2001-08-15 Thread Hugh Bothwell
Justin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... INSERT INTO database VALUES( 'bill's bowtie'); Bad syntax: try INSERT INTO database ( fieldname ) VALUES ( 'this string' ) and then I want to feed it back into phpMyAdmin it gives me an error.

Re: [PHP] How to find out which function caused an error

2001-08-15 Thread Justin Finkelstein
Yes, that I know. That wasn't the point though. What I wanted was to find out which function called getQuery. j. - Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'Justin Finkelstein' [EMAIL PROTECTED]; Tyler Longren [EMAIL PROTECTED]; php-general [EMAIL PROTECTED] Sent:

Re: [PHP] Compiling with Imlib2

2001-08-15 Thread David Robley
On Thu, 16 Aug 2001 11:17, Chris Aitken wrote: Hey all, Just a quick one which is driving me a tad mad at the moment Im trying to compile PHP 4.0.6 to have imlib2 in it, and in the php_imlib doco, it tells me to add the following flag to it the ./configure

Re: [PHP] Date function

2001-08-15 Thread Don Read
On 16-Aug-2001 David Robley wrote: On Thu, 16 Aug 2001 00:38, Mike Mike wrote: Hello, I'm pulling a date out of MySQL as 2001-10-18. How do I make it print October 18 in php? Thanks much --Mike You could use the Mysql date functions to format it for you. If your date field is called

[PHP] Re: Search code finds ANYTHING

2001-08-15 Thread Raphael Pirker
Hi Hugh, First, array_search returns an array of keys where the values are exact matches... while you want to match a substring (I think); Yes, but exact matches are better :)) Then, it searches through the array again using regular expressions, and each time it finds something, it

Re: [PHP] Compiling with Imlib2

2001-08-15 Thread Chris Aitken
At 11:49 AM 16/08/2001, David Robley wrote: Presumably you'll need to install inmlib then point to where-ever you installed it? Okay... my bad... I probably should have mentioned ive already installed imlib2 from ports and after rebuilding the locate database, shows the entries for imlib2 as

Re: [PHP] Compiling with Imlib2

2001-08-15 Thread David Robley
On Thu, 16 Aug 2001 11:57, Chris Aitken wrote: At 11:49 AM 16/08/2001, David Robley wrote: Presumably you'll need to install inmlib then point to where-ever you installed it? Okay... my bad... I probably should have mentioned ive already installed imlib2 from ports and after rebuilding the

Re: [PHP] Need open source community help!

2001-08-15 Thread pierre-yves
I was once in your situation, fortunately, my boss understood that it is better to have an application that has less features but never shuts down. The linux/php/mysql app was up for 283 days when they review it. The full featured NT/ASP/SQL 6.5 was shut down an average of 1 full day for every 3

[PHP] Uploading Image to Database

2001-08-15 Thread Tim Thorburn
Hi, I'm trying to get a script working that will upload an image to a MySQL database ... the script seems to be working, in that its not giving errors - but it does nothing ... it doesn't add the image to the database at all. Can someone take a look at this script and let me know where I've

Re: [PHP] need real expert (geting outer files) *english/german*

2001-08-15 Thread Richard Lynch
Subject: [PHP] need real expert (geting outer files) *english/german* the problem is, that this is very good restricted by serverside. If you've worked around that, you're probably now seeing something silly in your fread() code... But now I already get the file, and no more the

[PHP] Re: Looking for the cookies a site sends.

2001-08-15 Thread Richard Lynch
Does anyone know of a tool that lets me see the cookies a site sends my browser? Change the settings in your browser to ask me before accepting cookies, and you'll see them in real-time. If you need to look at old cookies, figure out where the browser stores them (not rocket science) and use,

[PHP] Re: compression help

2001-08-15 Thread Richard Lynch
I dunno if zlib can do it, but you should be able to http://php.net/exec with tar (man tar) to do what you want. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: Running PHP as CGI under apache

2001-08-15 Thread Richard Lynch
If you put this script into a file (.cgi) and give it executable permissions, you can run it from the command line PHP CODE START #!/usr/bin/php ?php print Hello; ? PHP CODE END and the Content-Type header is added by PHP. But when I put

[PHP] Re: How to find out which function caused an error

2001-08-15 Thread Richard Lynch
I have a function in one of my includes: db.inc.php::getQuery which does most of my mySQL calling for me. However, when the mySQL call fails, I get a nice error which is useful except one thing. It doesn't tell me which function called it. Does anyone know how to find to do the equivalent

[PHP] Re: Is this a bug?

2001-08-15 Thread Richard Lynch
I have this code, which is a cooked down code of something bigger. So don't ask what it's for. The problem is that I can't get this script working the way I like it at all. Maybe it's a bug. Maybe you have another suggestion? Somewhere in the middle section i have wrote test1 and test2 as a

[PHP] Re: HTTP Authentication

2001-08-15 Thread Richard Lynch
I am using PHP to send a header to the browser requestiing authentication. On a successful login i am tracking inactivity by the client and want to expire the login once a timeout period is reached. Problem is if the session expires and the user just refreshes then the orignal login details

[PHP] Re: Templates???

2001-08-15 Thread Richard Lynch
PHPLib, Smarty, FastTemplates, and about 10,000 more... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original

Re: [PHP] `pwd` - what does this mean?

2001-08-15 Thread Richard Lynch
For all of these linux commands (a few thousand) you can use: man xxx So, to answer your question for yourself, use: man man man grep The | bit is used to pipe the output of the command on the left into the command on the right for further processing. -- WARNING [EMAIL PROTECTED] address is

[PHP] Re: PHP and serving streaming media

2001-08-15 Thread Richard Lynch
I'm working on a website for my quartet, The Chiara String Quartet. You wouldn't happen to be Chicago-based, would you?... :-) This works fine in netscape, but IE 5 does not work. Investigating further, I found a basic difference between the way Apache streams straight .wax and ram files

[PHP] Re: Security in PHP+MYSQL

2001-08-15 Thread Richard Lynch
I have a security-question that I hope someone can answer, my question is: Will the DROP+TABLE+TBL_TEST-part in http://www.foo.bar/page.php?id=1;DROP+TABLE+TBL_TEST; be executed? I don't think it will in CURRENT versions of MySQL. Really *OLD* versions, maybe, if I recall correctly... But

[PHP] Re: PHP and Java InputStream object

2001-08-15 Thread Richard Lynch
Is it possible use php to read a file and then using it to construct a java.InputStream object? Probably. Try it and see. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer

[PHP] Simulate Cron/PHP in Win2k?

2001-08-15 Thread Jeff Oien
I would like to automatically run a PHP script at regular intervals during the day. I looked through the archives and found this: c:/path/to/php.exe -q c:/path/to/your/script.php I was going to use Scheduled Tasks but that will only run programs. Is there a way I can do this? I use Apache and

[PHP] Re: Simulate Cron/PHP in Win2k?

2001-08-15 Thread Raphael Pirker
Hi, You can create a .bat file which says the commands you want to run and then schedule the .bat... HTH, Raphael -- 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

[PHP] Addtype command in htaccess

2001-08-15 Thread Jack
Hi people this may be off this list a bit, But I want to make the apache webserver believe that a html file is my server is actually a php4 file, Is this syntax correct to add in the .htaccess file? AddType application/x-httpd-php4 .html Open for all suggestions. Jack [EMAIL PROTECTED] Love

Re: [PHP] select problem

2001-08-15 Thread Gyozo Papp
Hi, if your script makes errors on mysql_query() try to printthe errormessages sent back by MySql: mysql_query(...) or die(mysql_error()); see: http://www.php.net/manual/en/function.mysql-error.php - Original Message - From: Roman [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED]

[PHP] Re: PHP and serving streaming media

2001-08-15 Thread Greg Beaver
Good news: I found a solution. Microsoft was choking on the session headers. I designed a toolkit to interface with MySQL transparently that relies on sessions to keep things accurate from page to page as information is changed in a database. I added a variable called (oddly enough)

[PHP] Imlib Errors Still

2001-08-15 Thread Chris Aitken
Okay, Im really having a hard time with imlib2 and php. There is so little documentation on this so I dont know what im doing Firstly When Imlib2 is compiled into PHP, how do I know (like should there be an entry in phpinfo() ) Secondly Whats the easiest way people have installed

Re: [PHP] Need open source community help!

2001-08-15 Thread Jay Paulson
that's EXACTLY what i'm going to throw at them.. also for the money they are going to spend on the win2k and sql db etc.. they could hire someone part time to take some of this load off my back and then i could add all the features that this other company has.. i'll just have to talk to them.. :)

Re: [PHP] Imlib Errors Still

2001-08-15 Thread Rasmus Lerdorf
Firstly When Imlib2 is compiled into PHP, how do I know (like should there be an entry in phpinfo() ) Of course. For an example see http://conf.php.net/info.php Secondly Whats the easiest way people have installed imlib2 into PHP. Im trying the way the (very small) INSTALL file

[PHP] record each page

2001-08-15 Thread Andrew Austin
If i select a group of records from a mysql db is there a way to place each record on a separate page. Could I put them in an array which is connected to a session object? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Ldap package.

2001-08-15 Thread Johan Vikerskog (ECS)
I am going to install a LDAP package for my apache-mysql-php web interface. The question is. What ldap package to use and how to do it. Is there anything else i should de except for: --with-ldap=ldap directory Thanks for any help i can get. //Johan -- PHP General Mailing List

Re: [PHP] record each page

2001-08-15 Thread Kunal Jhunjhunwala
Why not use the mysql limit function? Kunal - Original Message - From: Andrew Austin [EMAIL PROTECTED] To: Php Lists (E-mail) [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 11:24 AM Subject: [PHP] record each page If i select a group of records from a mysql db is there a way to place

Re: [PHP] Ldap package.

2001-08-15 Thread Rasmus Lerdorf
Install OpenLDAP (www.openldap.org) On Thu, 16 Aug 2001, Johan Vikerskog (ECS) wrote: I am going to install a LDAP package for my apache-mysql-php web interface. The question is. What ldap package to use and how to do it. Is there anything else i should de except for: --with-ldap=ldap

[PHP] to set file tye at apache module using htaccess

2001-08-15 Thread Jack
Hi people this may be off this list a bit, But I want to make the apache webserver believe that a html file is my server is actually a php4 file. I used the syntax below to set Apache module in file .htaccess and did not work still, as I wrote some php script to print text in an html file and

RE: [PHP] to set file tye at apache module using htaccess

2001-08-15 Thread Jason Murray
I used the syntax below to set Apache module in file .htaccess and did not work still, as I wrote some php script to print text in an html file and did not do anything yet. ** AddType application/x-httpd-php4 .html ** What is the correct way

[PHP] AW:How can I unsubscribe?

2001-08-15 Thread Phil
Hey, I deleted the instruction mail... content was besides other topics how I unsubscribe a mailing list... Knows anybody the code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] to set file tye at apache module using htaccess

2001-08-15 Thread Jack
How do I check that out? and how do I turn it on? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts - Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'Jack' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 1:19 AM Subject: RE: [PHP] to set

[PHP] AW:How can I unsubscribe?

2001-08-15 Thread Phil
Hey, I deleted the instruction mail... content was besides other topics how I unsubscribe a mailing list... Knows anybody the code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Re: MYSQL_SOCKET

2001-08-15 Thread Jonathan Hilgeman
Edit your /etc/my.cnf file and search for the word socket. - Jonathan Jay Paulson [EMAIL PROTECTED] wrote in message 020f01c125d6$ce5b17f0$6e00a8c0@webdesign">news:020f01c125d6$ce5b17f0$6e00a8c0@webdesign... the variable MYSQL_SOCKET is set to /tmp/mysql.sock and i need it to be

[PHP] MYSQL_SOCKET

2001-08-15 Thread Jay Paulson
the variable MYSQL_SOCKET is set to /tmp/mysql.sock and i need it to be /var/lib/mysql/mysql.sock is there anyway i can set this variable in php? thanks...

<    1   2