Re: [PHP] Show only user that variable musiccontain pop

2002-11-27 Thread Support @ Fourthrealm.com
If you only have one condition, then get rid of the AND in the where statement; Select only the fields that you need, instead of * Like this: SELECT id FROM $TBL_NEWS WHERE music LIKE '%pop%' ORDER BY name Peter At 03:16 PM 11/27/2002 -0500, Benjamin Trépanier wrote: Hi, I need

Re: [PHP] Multiple page form

2002-11-27 Thread Steve Keller
At 11/26/2002 10:42 AM, Shane wrote: It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I just call

RE: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Ron Stagg
Thank you! This is just what I was looking for. I was not aware of the output control functions. Using the ob_ functions will make this child's play. Thanks again, Ron -Original Message- From: Michael Hazelden [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 12:29 PM To:

[PHP] ignoring client supplied session data

2002-11-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm setting up a site using sessions right now, and I was just wondering if there is a way to ignore anything from the client side- I want them to POST a username and password, from there all data should be handled on the server. I'm already using

Re: [PHP] Show only user that variable musiccontain pop

2002-11-27 Thread Benjamin Trépanier
$req = MYSQL_QUERY(SELECT id FROM $TBL_NEWS ORDER BY nom LIMIT 0, $limit_news); $res = MYSQL_NUM_ROWS($req); This is my lines... It's not working... :-( Thanks for your help Le 27/11/02 15:23, « Support @ Fourthrealm.com » [EMAIL PROTECTED] a écrit : If you only have one condition, then

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Miles Thompson
I'll have to pseudo code this, but following on from Matt's suggestion of a standalone php script to generate the necessary files, let the database do the work. allproducts.php select whatever fields are necessary from the database as parameters for catalog.php work down the

Re: [PHP] max file size on uploading files

2002-11-27 Thread Nick Wilson
* and then Ernest E Vogelsinger declared At 20:18 27.11.2002, Ernest E Vogelsinger spoke out and said: [snip] Error 413 certainly denotes that the web server refuses to handle the request. No idea how to configure this value but I'm sure it can be

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Van Andel, Robert
What I do on my pages is perhaps a convoluted way of doing it but it works. I set a username and password session variables. Every time the page loads the script verifies the username and password are correct. If not, they don't get to see the rest. This, in my mind, pervents someone from

[PHP] Streaming audio

2002-11-27 Thread Mako Shark
Does anyone know how to do streaming audio with PHP? No clue if this is even possible. I've checked around a bit, looked at some script sites, but nothing seems to give a clue. I *think* it might be possible to set something like this up, but I'm not sure.

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Rick Widmer
When running PHP as a static binary, how does it handle text (HTML code) that falls outsize of the ?PHP ? tags. Is the text ignored or outputted? Outputted. This can be very handy. One thing I use it for is customizing configuration files where only a small percentage of the overall text

Re: [PHP] ignoring client supplied session data

2002-11-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was thinking about doing that, but I was hoping to avoid superfluous database queries. It is my fallback method, but i _really_ want to use sessions, but limit them to server-side modification. On Wednesday 27 November 2002 12:51 pm, Van Andel,

Re: [PHP] Streaming audio

2002-11-27 Thread Miles Thompson
This may seem terribly naive, but what server streams the audio, Apache with an additional module? Or a special audio server? If the former, it would seem quite straightforward I would assume (which is how I get myself into trouble and have such *interesting* assignments), Apache would issue

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Van Andel, Robert
On the other hand, I use only one query, searching for the username. I had experimented with other methods but did not find anything that I felt gave me great security. Using a session variable that says the person is logged in can be placed into a query string therefore bypassing the

Re: [PHP] Streaming audio

2002-11-27 Thread Ernest E Vogelsinger
At 21:55 27.11.2002, Mako Shark said: [snip] Does anyone know how to do streaming audio with PHP? No clue if this is even possible. I've checked around a bit, looked at some script sites, but nothing seems to give a clue. I *think* it might be possible to

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Ernest E Vogelsinger
At 22:17 27.11.2002, Van Andel, Robert said: [snip] On the other hand, I use only one query, searching for the username. I had experimented with other methods but did not find anything that I felt gave me great security. Using a session variable that

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Van Andel, Robert
I will look into it. I still consider my self a newbie in the process having picked up a book back in February and learning to do it. I haven't gotten into using things like $_SESSION[] and similar with posting forms. Thanks. Robbert van Andel === Network

Re: [PHP] Streaming audio

2002-11-27 Thread Morgan Hughes
On Wed, 27 Nov 2002, Mako Shark wrote: Does anyone know how to do streaming audio with PHP? No clue if this is even possible. I've checked around a bit, looked at some script sites, but nothing seems to give a clue. I *think* it might be possible to set something like this up, but I'm not

RE: [PHP] search question

2002-11-27 Thread Bryan Koschmann - GKT
On Wed, 27 Nov 2002 [EMAIL PROTECTED] wrote: |You could try any number of PHP functions, but the best ones would be |strchr/strstr/stristr (for locating the first occurrence of the string), |strpos (find the position of the first occurrence), or strrchr (to find the |last). | I was just using

Re: [PHP] Re: [PHP-DEV] Parse search string a la Google (Regular expression?)

2002-11-27 Thread Ernest E Vogelsinger
Benny Rasmussen wrote: Hi, In my application I would like to offer a search interface like Google and other popular search engines. The complication for me is to explode the search string into proper array elements, like this: $search_str = \search for this sentence\ -NotForThisWord

Re: [PHP] ignoring client supplied session data

2002-11-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not worried about them using the query string for malicious purposes- I have register_globals off... I'm worried about someone messing with their cookie and sedding authorized to true- that _will_ change my $_SESSION variable, unless I can find

[PHP] printing screen without the print dialog

2002-11-27 Thread Duky Yuen
I am having this problem, I want to print something directly to my printer without having that print dialog. What to do know? Is this possible? Duky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Rich Gray
I know I'm late in on this thread but Ignoring cookies is easy - just don't set them and don't use any data in $_COOKIE[]... or am I missing your point? $_COOKIE[] data should be treated with far more caution than $_SESSION[] i.e. it should be treated as hostile data. If you really have to

[PHP] sendmail problem!

2002-11-27 Thread Siamak
hi I use PEAR to send mails to my users through sendmail, my mails sometimes are delivered immediately, sometimes after some minutes and sometimes after some hours and sometimes never! I tried to identify the cause but I wasn't successful, is there someone out there who can help me? I want to send

[PHP] Re: XSLT support for RH8

2002-11-27 Thread Derick Rethans
Dan Kuykendall wrote: I cannot seem to get RH8 to to compile XSLT support. Has anyone else gotten this to work? Anyone with the resulting php-xslt rpm? What is the error message? And you really should not rely on the RH8 RPMS as they found it necessary to change some defaults. --

Re: [PHP] Streaming audio

2002-11-27 Thread Morgan Hughes
On Wed, 27 Nov 2002, Tom Culpepper wrote: I had no idea this would be of interest to so many people... I've now posted it on a server for download; it's at http://kyhm.com/tmp/mp3-example.php.gz for anyone who's interested. There's a bunch of commented-out calls to a dprint() in the

[PHP] session problems again

2002-11-27 Thread Jason Romero
--when using session registered variables --i can only get them to save as session variables for one page --then on the next page they are gone --far as i can tell the variables are not getting written over or unset --and the session is not gettting destroyed --any other ideas what it might be? i

Re: [PHP] Re: [PHP-DEV] Parse search string a la Google (Regular expression?)

2002-11-27 Thread Ernest E Vogelsinger
At 23:11 27.11.2002, Ernest E Vogelsinger said: [snip] If I understand you correctly you want to isolate either quoted strings (with or without whitespace), or tokens separated by whitespace, as array elements? For this you would first have to isolate the

Re: [PHP] ignoring client supplied session data

2002-11-27 Thread Justin French
on 28/11/02 9:22 AM, Evan Nemerson ([EMAIL PROTECTED]) wrote: I'm not worried about them using the query string for malicious purposes- I have register_globals off... I'm worried about someone messing with their cookie and sedding authorized to true- that _will_ change my $_SESSION variable,

Re: [PHP] Password Script

2002-11-27 Thread Justin French
Is this a password reminder script? Or a 'guessing'/knowledge game to get access to a certain page? Justin on 28/11/02 4:52 AM, Vicky ([EMAIL PROTECTED]) wrote: I'm looking to code a script that does the following. Please bear with me as I'm a total novice at this ^^! It's sort of like a

RE: [PHP] session problems again

2002-11-27 Thread Rich Gray
Jason session.cookie_lifetime set to 0 means the session cookie persists until the client browser is closed... I'm not clear if you are still having session problems now or the advice you got earlier sorted it? Rich -Original Message- From: Jason Romero [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] printing screen without the print dialog

2002-11-27 Thread Justin French
Hi, 1. did you search the archives, because this gets asked often 2. did you do a google search? From memory, it's POSSIBLE to print directly to the printer IF IT IS CONNECTED TO THE SERVER, but it's more difficult (if not impossible) to print to a client side (user's) printer... and impossible

Re: [PHP] Parsing XML files, logic involved...

2002-11-27 Thread Khalid El-Kary
hi, If you are sure that all your files come with attributes double quoted (not single quoted) you may want to use this parser class: http://creaturesx.ma.cx/kxparse/ hint: use the function has_attribute() to verify whether an attribute is available Regards, khalid

Re: [PHP] dynamic arraynames

2002-11-27 Thread Floyd Baker
Well I might be in the wrong place. I've also asked in the HTML list now too but I'm still stuck and need some help. This is pretty much as clear as I can make it. I'm up against a mental block and even if it's as clear as glass to others I'm dead in the water and would appreciate some

Re: [PHP] dynamic arraynames

2002-11-27 Thread Floyd Baker
Well I might be in the wrong place. I've also asked in the HTML list now too but I'm still stuck and need some help. This is pretty much as clear as I can make it. I'm up against a mental block and even if it's as clear as glass to others I'm dead in the water and would appreciate some

Re: [PHP] dynamic arraynames

2002-11-27 Thread Floyd Baker
Very sorry for the dupes... Kept thinking I had pressed reply instead of reply all. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] Parse search string a la Google (Regular expression?)

2002-11-27 Thread Sebastian Bergmann
Benny Rasmussen wrote: Hi, In my application I would like to offer a search interface like Google and other popular search engines. The complication for me is to explode the search string into proper array elements, like this: $search_str = \search for this sentence\ -NotForThisWord

[PHP] PHP 4.3.0RC2 released

2002-11-27 Thread Andrei Zmievski
The second release candidate of the inimitably fabulous PHP version 4.3.0 is out. It can be downloaded from http://qa.php.net. Give it a good testing! -Andrei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Streaming audio

2002-11-27 Thread olinux
Not PHP, but here's a solution I use for streaming WMA files on apache server. You'll need 3 files audiofile.htm audiofile.wax audiofile.wma [audiofile.htm] html headtitleAudio Player/title/head body script language=JavaScript !-- if ( navigator.appName == Netscape ) {

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread John W. Holmes
I'm not worried about them using the query string for malicious purposes- I have register_globals off... I'm worried about someone messing with their cookie and sedding authorized to true- that _will_ change my $_SESSION variable, unless I can find some way to ignore cookies, which brings us

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread John W. Holmes
What I do on my pages is perhaps a convoluted way of doing it but it works. I set a username and password session variables. Every time the page loads the script verifies the username and password are correct. If not, they don't get to see the rest. This, in my mind, pervents someone from

RE: [PHP] Show only user that variable musiccontain pop

2002-11-27 Thread John W. Holmes
$req = MYSQL_QUERY(SELECT id FROM $TBL_NEWS ORDER BY nom LIMIT 0, $limit_news); $res = MYSQL_NUM_ROWS($req); This is my lines... It's not working... :-( Use mysql_error() to find out why. Odds are one of your variables aren't set when you think they are. $req = mysql_query( ... ) or

[PHP] Error in retrieving a BLOB from DB.

2002-11-27 Thread Naif Al-Otaibi
Hi all, I use the following: 1) Win XP. 2) Oracle personal eddition 8.1.6.0.0. 3) IIS. 4) php-4.2.3-Win32 runs in cgi mode. When I retrieve a blob from my DB, I got the following error: Fatal error: Call to undefined function: load() in c:\inetpub\wwwroot\php1\ora52.php on line 6

Re: [PHP] Error in retrieving a BLOB from DB.

2002-11-27 Thread Faisal Abdullah
I've never used load() before, but I can't find it in the function list in php.net On Thu, 2002-11-28 at 11:05, Naif Al-Otaibi wrote: Hi all, I use the following: 1) Win XP. 2) Oracle personal eddition 8.1.6.0.0. 3) IIS. 4) php-4.2.3-Win32 runs in cgi mode. When I retrieve a blob from

[PHP] Re: sendmail problem!

2002-11-27 Thread Manuel Lemos
Hello, On 11/27/2002 09:01 PM, Siamak wrote: I use PEAR to send mails to my users through sendmail, my mails sometimes are delivered immediately, sometimes after some minutes and sometimes after some hours and sometimes never! I tried to identify the cause but I wasn't successful, is there

[PHP] getaddrinfo failed: No address associated with hostname

2002-11-27 Thread Godzilla
I have a php script setup which downloads a file from a remote server via FTP. It worked fine for a couple months until I went to use it one day and it returned the error below. I hadn't made any changes to the script in that time. It was no big deal so I wrote it off as it wasn't really an

[PHP] how to use openssl_x509_read.

2002-11-27 Thread Richard Rojas
Hi, Does anybody know how to use this function? openssl_x509_read(mixed x509certdata) Is x509certdata the certificate submitted by the browser to the server? Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mcrypt 2.4.x - trouble with small data fields?

2002-11-27 Thread Steve Yates
On my current project I am saving personal info into a MySQL database for later retrieval. I have discovered that I have trouble with a few specific data entries, though the other ~20 work fine. The two I have trouble with are a char(2) and a varchar(4) field, the smallest ones in the table,

<    1   2