Re: [PHP] PHP/MySQL Installation

2002-11-27 Thread Federico Braghieri
On Monday 25 November 2002 20:44, manh wrote: > > I am a beginner of PHP/MySQL. I have tried several times to install PHP3 > and MySQL (free products) to conduct some web pages for my company, but > lots of trouble came up. I just followed the instruction on www.php.net > but it did not help. > > C

RE: [PHP] search question

2002-11-27 Thread Liam . Gibbs
<> 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). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Show only user that variable "music"contain "pop"

2002-11-27 Thread Benjamin Trépanier
Hi, I need information about a simple command... I have a DB (of course...) and I need to show only "ID" that variable "music"contain "pop" I found this example that is suppose to do a similar thing in a msql query... SELECT * FROM $TBL_NEWS WHERE music LIKE '%pop%' AND ORDER BY name So it'

Re: [PHP] Show only user that variable "music"contain "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 information

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 them

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 t

Re: [PHP] Show only user that variable "music"contain "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, t

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 r

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

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 sup

[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 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 needs

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, R

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 th

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 authenti

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 s

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 Operato

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 no

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 som

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\" -NotFo

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 r

[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 sen

[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 t

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 > variabl

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 lik

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: 2

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 point

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 point

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\" -NotForThisWor

[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] Audio Player