[PHP] Re: Problems with PHP5 RC1

2004-03-22 Thread memoimyself
On 19 Mar 2004 at 19:23, Lester Caine wrote: > [EMAIL PROTECTED] wrote: > > > I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47. > > Mines 2.0.48, but no problem. > > > Upon installation, when I first started Apache again, I got an error message to > > the effect > >

[PHP] Problems with PHP5 RC1

2004-03-19 Thread memoimyself
I'm writing this message in the hope that some of the people responsible for PHP5 will eventually read it. I have just downloaded and installed PHP5 RC1 according to the instructions found in the package (which are basically the same as for previous releases of PHP). Before relating the problem

[PHP] Regular expression checker

2004-03-17 Thread memoimyself
Hello all, For a while I tried in vain to find a decent regular expression tester. The closest I found was RegExpEditor, by the same people who produce PHPEdit, but I found it to be slow and didn't like its constant bitching about "invalid delimiters" or some such thing. Anyway, I ended up wri

[PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread memoimyself
Damon, Sessions have to do with requests being sent by browsers to the web server. Each time you close all the windows of your browser on your computer and start the browser again, a new session is started. I suspect that since all your users are essentially using the same web browser (since t

[PHP] Re: Help with arrays

2004-03-12 Thread memoimyself
Hello Elliot, On 11 Mar 2004 at 23:55, Elliot J. Balanza wrote: > I need to make a query to a MySQL database that only has two fields, name & > value. That I can do. > > Then I need to store the values i receive in an array in the form of: > > $variable['name'] = value; > > But haven't been ab

[PHP] Re: Loosing redirect in if...else

2004-03-11 Thread memoimyself
Hello Alex, On 11 Mar 2004 at 10:15, Alex Hogan wrote: > if(empty($_SESSION['sellocation'])){ > > $_SESSION['selloction'] = '0'; Have a close look at the array member above. It's spelled differently from the others (an A is missing). > > } > > $_SESSION['sellocation'] = $_POST['sellocation

[PHP] Re: PHP class for XSL transformations?

2004-02-21 Thread memoimyself
On 20 Feb 2004 at 16:25, Juan Torres wrote: > you try with XMLDOM Functions. You look this function: > DomXsltStylesheet->process -- Applies the XSLT-Transformation on a > DomDocument Object Thanks Juan, but I'm actually looking for a class that I can upload to a site rather than an extension

[PHP] PHP class for XSL transformations?

2004-02-20 Thread memoimyself
Hello all, I'm looking for an alternative to PHP's XSLT extension. Does anyone know of a good PHP class capable of performing XSL transformations? Thanks for your time, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem handling files.

2004-02-20 Thread memoimyself
What are the contents of your file? You do realize, I hope, that whatever is in the file is going to be output to the browser, so any HTML tags in the file will be processed before anything is displayed in the browser. Have a look at the resulting page's source code. On 20 Feb 2004 at 10:15,

[PHP] Re: PHPSESSID and URL rewriting

2004-02-20 Thread memoimyself
On 19 Feb 2004 at 17:15, seba wrote: > Unfortunately I do can not oblige users which will use those pages to > accept cookies . The pages are for an e-commerce web site. If I use > the directive session.use_trans_sid = 0 is not possible to MANTAIN THE > SAME phpsessid value among differents pages

[PHP] Re: Mimetypes and image uploads

2004-02-19 Thread memoimyself
On 19 Feb 2004 at 15:53, [EMAIL PROTECTED] wrote: > I just discovered something totally bizarre with file uploads and mime > types, if i have the document open i am trying to upload say a word file > application/octet-stream and if i close the document application/msword , > why is this ? My gues

[PHP] Re: PHPSESSID and URL rewriting

2004-02-19 Thread memoimyself
Hello Seba, Check your php.ini file: you'll probably find that "session.use_trans_sid" is set to 1, which is actually a security hazard. If you set "session.use_trans_sid" to 0, session IDs will no longer be automatically sent as GET variables. Cheers, Erik On 19 Feb 2004 at 13:15, Seba wr

[PHP] Re: XSL-FO

2004-02-19 Thread memoimyself
Hello Juan, On 18 Feb 2004 at 13:51, Juan Torres wrote: > Does PHP allow parser a XML with a XSL-FO and create a PDF? Your English is kind of difficult to understand, but I guess you want to know if you can perform XSL-FO transformations with PHP. If this is your question, the answer is 'no':

[PHP] Re: PHP (and optionally MySQL) textbook

2004-02-18 Thread memoimyself
On 17 Feb 2004 at 21:24, Chris wrote: > I am looking for suggestions for a textbook for an undergraduate class > introducing PHP and MySQL (using PHP, not MySQL administration). Right now > I am using the McCarty book "PHP 4 A Beginner's Guide" but there might be > new and/or better books out t

[PHP] Re: how to deal with http and https directory structures?

2004-02-18 Thread memoimyself
Hello Chris, On 17 Feb 2004 at 15:39, Chris W. Parker wrote: > anyone have any thoughts on this? am i making this more complicated > than it is? ;) Well, yes and no. You're trying to organize your files so that each set is only accessed via one protocol (http or https), which makes pretty goo

[PHP] Re: problem with resultset

2004-02-17 Thread memoimyself
Hello Angelo, On 17 Feb 2004 at 11:21, Angelo Zanetti wrote: > I am querying a db and getting the resultset, then to get out each > individual field of the resultset (which is a single unique line all > the time) as mysql_result($result2, 0, "p_company"). the problem is > that if the actual fiel

[PHP] Re: Opening a popup window?

2004-02-16 Thread memoimyself
Hello Shaun, On 16 Feb 2004 at 22:23, Shaun wrote: > I have a form on a page. If certain options are selected on that page > I need a popup window with a select option on there to appear. How can > I make this happen with PHP, or do I need to use some JavaScript? PHP is a server side scripting l

[PHP] Re: Session, loging users in.

2004-02-14 Thread memoimyself
Hello Philip, On 14 Feb 2004 at 18:48, Philip J. Newman wrote: > Whats the best information to add to a session to say a user is logged in? > > I currently have $siteUserLogIn="true"; > > anything else that I could add to beef up security? You'll find an in-depth answer to your question in an

[PHP] Re: General Function usage question (simple)

2004-02-14 Thread memoimyself
Hello Dave, You'll find all this information and much more in the PHP manual ( http://www.php.net/docs.php ). Look for the chapter on functions. Have fun, Erik On 14 Feb 2004 at 7:31, Dave Carrera wrote: > Hi List, > > Here is an easy one for you :-) > > --- Example1 Function --- > > Func

[PHP] Re: Mp3 with php?

2004-02-13 Thread memoimyself
Hello Carlos, On 12 Feb 2004 at 18:52, carlos castillo wrote: > does anyone know how to reproduce a mp3 file with php? If my Spanish serves me right, what you want to do is play an MP3 file. Well, that's something that would happen on the user's computer and would depend on the presence of a s

Re: [PHP] Browser Detection another page

2004-02-13 Thread memoimyself
Hello Joel, Before you read my comments below, let me say that I'm not trying to prove you *wrong* or even express disagreement with the points you made; I'm just interested in your reasons. On 12 Feb 2004 at 20:11, joel boonstra wrote: > Hopefully you're aware that $HTTP_USER_AGENT is an unre

[PHP] Re: form array

2004-02-12 Thread memoimyself
On 12 Feb 2004 at 0:29, Matthew Oatham wrote: > I have a form on page1 that i want to submit to another php page - page2 > > the form has the fields > > > > > > Basically I want to have these form field values as an array of values I > can loop through on page 2 but what do I put on page 2 t

[PHP] Re: weird header() (bug may be)

2004-02-12 Thread memoimyself
On 12 Feb 2004 at 17:20, adwinwijaya wrote: > Hello php-generaler's , > > I have a script like this : > > if($foo == 'something'){ > header('Location:to_another_page.php') ; > }else > { >do another thing in here > } > > header('Location:to_previous_page.php'); > >

[PHP] Re: array data

2004-02-11 Thread memoimyself
Hello Imran, On 12 Feb 2004 at 1:17, Imran Asghar wrote: > Hi, > > Is not working, is it correct way > > File1.php > > > > > > File2.php > > echo $colors[0]; > echo $colors[1]; > echo $colors[2]; > echo $colors[4]; > ?> > > > > imee > I'm afraid

[PHP] Re: Sessions on Win2k

2004-02-11 Thread memoimyself
Hello Don, On 11 Feb 2004 at 11:19, Donpro wrote: > I've searched the archives and note that many have probelms using session on > a Win2K server. I am getting a > > Undefined index: sessions in > D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768 > > error. Line 768 is: sessio

[PHP] Re: PHp Books

2004-02-11 Thread memoimyself
Hello Rajani, On 10 Feb 2004 at 12:36, Rajani Anand Iyer wrote: > Can someone recommend some good books on PHP Advanced topics. Well, I can advise you on what not to buy, which should help, too. Don't spend your money on Professional PHP4 (Argerich, Choi, Coggeshall, Egervari, Geisler, Greant,

[PHP] Re: file downloads using header problem

2004-02-10 Thread memoimyself
Hello Joshua, On 9 Feb 2004 at 15:45, Joshua Minnie wrote: > Does anybody have any idea to allow for multiple downloads while another > one was going on. Maybe some additional headers? I have tried adding > headers before and after where I open the file for HTTP/1.1 200 OK and the > correspondi

Re: [PHP] starting a session

2004-02-03 Thread memoimyself
Hello Angelo, On 3 Feb 2004 at 9:36, Angelo Zanetti wrote: > is there ever a certain situation where you would have something at the top > of your page before session_start();? If so why would it be before > session_start();? The closest thing to a "certain situation" that I can think of is when

Re: [PHP] The PHP Problem

2004-01-30 Thread memoimyself
Hello Ashley, On 30 Jan 2004 at 18:51, Ash wrote: > Hi, > I am totally new to PHP and dont know a thing. I tried looking through the > articles but they were of no use. My Question is: > How can I just write php in a text editor, save it as a .php, and view it in > internet explorer, offline? I h

Re: [PHP] Document Management and publishing

2004-01-30 Thread memoimyself
Hello Jon, On 30 Jan 2004 at 10:57, Jon Shoberg wrote: > Might anyone be able to recomend a PHP based (or Java/Perl/Python) based > document management system? > > I'm looking to being a LARGE collection of PDF documetns online. The > focus of this application isn't necessarily publishing

Re: [PHP] Deleting cookies won't work

2004-01-29 Thread memoimyself
Hello Andrew, On 29 Jan 2004 at 21:05, Andrew Wood wrote: > I'm calling it with the same arguments as I used to set it originally, > but with a null string value & an expiry time in the past but the > cookie persistently remains in the browser. >From the PHP manual: "Cookies must be deleted w

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread memoimyself
On 29 Jan 2004 at 10:47, craig wrote: > specifally, you want: $_FILES['userfile']['type'] = The mime type of > the file, if the browser provided this information. An example would > be "image/gif". That's basically it and will work for common file types. However, it's the user's browser, not P

Re: [PHP] eregi_replace help needed

2004-01-29 Thread memoimyself
Hi Nico, On 29 Jan 2004 at 17:52, [EMAIL PROTECTED] wrote: > I want to locate patterns such as > > 12345678 > 1 23 45 67 89 > 1 2 34 567 890 > > and replace the pattern string with a new string. > > I tried > > $filter['message'] = eregi_replace("[0-9\s]{4,}",'', > $filter['message']); Use

Re: [PHP] HELP <> PLEASE PHP

2004-01-29 Thread memoimyself
Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to know in order to solve your problem can be found in one convenient location: http://www.

Re: [PHP] PHP EDITORS

2004-01-28 Thread memoimyself
Hello John, On 28 Jan 2004 at 0:10, John Jensen wrote: > Hello everyone. I am new to PhP and MySQL. I was wondering what a good > (Or Free) Php Editor is? If you want something nice and simple to start with, try WinSyntax (http://www.winsyntax.com). If you want a very nice and configurable edi

Re: [PHP] addslashes & stripslashes

2004-01-28 Thread memoimyself
Hello Will, On 28 Jan 2004 at 12:31, Will wrote: > However recently I encrypted some data which I stored in the database. > The string contained a \ which I added slashes to when entered in to > the database. But as the database appears to strips the first slash > off the double slash automatical

Re: [PHP] drop down list not populating

2004-01-27 Thread memoimyself
Hello Dan, On 27 Jan 2004 at 14:31, Montagna, Dan wrote: > echo ""; Uh-oh, this won't work: you have an unclosed tag here. Try this: echo ''.$row['community'].''; Good luck, Erik

Re: [PHP] sending mail with attachment problems

2004-01-27 Thread memoimyself
Hello Tony, On 27 Jan 2004 at 16:47, tony wrote: > Hi, > > i'm trying to send emails with attachment but i get an error (...) I haven't even had a look at your code, but sending e-mails with attachments can be quite tricky, so I suggest that instead of trying to re-invent the wheel you use Ri

Re: [PHP] Random questions from database

2004-01-27 Thread memoimyself
Hello Alex, On 27 Jan 2004 at 9:25, Alex Hogan wrote: > while($row = mssql_fetch_array($result)) > > { > > $id[] = $row['id']; > > $ques[] = $row['question']; > > } To keep question and id together even after shuffling the array, why don't you build an array of arrays like this

Re: [PHP] Script timeout?

2004-01-27 Thread memoimyself
Hello Ben, On 27 Jan 2004 at 9:27, Ben Ramsey wrote: > I'm trying to run a query against a database with a PHP script that > cycles through each record (about 4,000+) and sends and e-mail to them > if they have an e-mail address present. The problem is that everytime I > do this, it processes

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-27 Thread memoimyself
On 27 Jan 2004 at 13:25, Jack Bauer wrote: > i tried your code zu replace some parts of a string, > the problem is that this method only replaces when > there is only 1 word between stringA and stringB. Of course. "\w*" will match alphanumeric characters, but not whitespace, and word boundaries

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-26 Thread memoimyself
Hello 24 fan, On 27 Jan 2004 at 0:56, Jack Bauer wrote: > i'm looking for a function to remove multiple dynamic parts > of a string, there are only the start and end strings given > > (remove all between string A and string B) > > got somebody a working procedure for that? I'm not sure I under

Re: [PHP] Re: variable container?

2004-01-26 Thread memoimyself
On 26 Jan 2004 at 18:21, Jake McHenry wrote: > yes, but they're not converted into those yet. all of the variables > are with register_globals = on and they're all global vars. I'm > converting them all over to session vars, this is why I need to know > the list. Just an additional note to my pr

Re: [PHP] Re: variable container?

2004-01-26 Thread memoimyself
Hello Jake, On 26 Jan 2004 at 17:55, Jake McHenry wrote: > I want a list of all variables used. I tried just putting var_dump() but got > an error. I'd like to see a list of all variables being used in the script, > then I can start cleaning original code and what I have added. Some strange > res

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread memoimyself
Check out the message below, which a user added to the online version of the PHP manual. Could this have anything to do with your problem? ** FROM http://br2.php.net/manual/en/function.mysql-escape-string.php ** sp4m_only at hotmail dot com 02-Apr-2003 10:07 I found out another very curiou

Re: [PHP] Xml documents to html

2004-01-26 Thread memoimyself
Hi John, On 26 Jan 2004 at 21:42, John wrote: > How can I show xml files which have been created in MS Word, in a > browser as ie Html. > > Is this posible and what would it take. The short answer to your question is "Yes, it's possible". As for what it would take, the answer is a little long

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread memoimyself
Hello CC, On 26 Jan 2004 at 12:47, C C wrote: > Hi, > > I'm trying to insert binary data into a MS SQL Server database. Text > files are added fine, but binary files with null bytes are not. The > field I'm adding the binary data to is image type. I get an error about > unclosed quotation marks

Re: [PHP] I bought "SAMS PHP & mySQL WEB DEVELOPMENT":)

2004-01-17 Thread memoimyself
Hi there, On 17 Jan 2004 at 21:28, SASSINC Internet Solutions - wrote: > Now I have SAMS book for PHP and mySQL but in Arabic.. so now at the > moment I only want to learn things which will help me in my project.. > so which lessons must I see.. and which PHP Actions will I use for > that? Wha

Re: [PHP] Trying again: Random(?) blank pages when using sessions

2004-01-17 Thread memoimyself
Matt, You're not by any chance using an Apache server on a machine that also has a firewall, are you? I've had all sorts of mysterious session-related problems when running scripts on my test server (Apache on Win2k with a ZoneAlarm firewall). Took me *ages* to zero in on the source of the pro

Re: [PHP] random html +(hi)

2004-01-16 Thread memoimyself
Hello Angela, On 16 Jan 2004 at 11:30, Angela K Hilton wrote: > I'm trying to dynamically randomise a chunk of HTML that is used on a > page, aka random image, so that each time a client opens the page [or > refreshes] a part of the page changes. > > The chunks of HTML are saved in their own

Re: [PHP] addslashes

2004-01-15 Thread memoimyself
Hello João, On 15 Jan 2004 at 17:07, João Cândido de Souza Neto wrote: > I'm using str_replace("\r\n","\\r\\n",addslashes($campo)) to add "\" in > mysql data to send to javascript variable. > > Running in my machine with win xp + iis it's all ok, but in server with > linux + apache, the javascri

Re: [PHP] UTF-8 and HTTP headers

2004-01-15 Thread memoimyself
Hello Jiri, I'm not sure I understand your problem (I had some trouble with your English), but have you tried PHP's utf8_encode() and utf8_decode() functions? Check out the PHP manual in your native language for more information on these functions. Cheers, Erik On 15 Jan 2004 at 12:52, Ji ¡

Re: [PHP] nested tags

2004-01-14 Thread memoimyself
Gregor, On 14 Jan 2004 at 16:02, Gregor Jaksa wrote: > Can anyone provide me with some link or code on how to deal with nested > tags. Could you please tell us a bit more about what you want or need? Are you talking about HTML or XML? What do you want to be able to do with your nested tags? Yo

Re: [PHP] Security issues

2004-01-14 Thread memoimyself
Hi Chris, First of all, thanks a lot for sharing your "modus operandi" with us. On 14 Jan 2004 at 7:32, Chris W wrote: > I then verify that every character in the string is with in the ascii > range of a space to the ~ which is basically all the characters on the > key board. How exactly are y

Re: [PHP] problem with preg_replace

2004-01-13 Thread memoimyself
Hello Gregor, On 13 Jan 2004 at 15:08, Gregor Jaksa wrote: > hello, i need to replace some words in file with [tag]word[/tag] and other > words with [sample]word[/sample]. > > i have a list of words which i need to replace with [sample] tags declared > like > $words = 'word1|word2|word3|word4';

[PHP] Re: Week calculating

2004-01-13 Thread memoimyself
A quick idea that can probably be perfected: 2050 ) { return false; } $ini_date = mktime(0, 0, 0, 1, 1, $year); // Jan. 1 $end_date = mktime(0, 0, 0, 12, 31, $year); // Dec. 31 // The array to be returned.

Re: [PHP] How do I write to an XML file

2004-01-12 Thread memoimyself
Hello Tim, On 12 Jan 2004 at 17:50, Tim Burgan wrote: > I'm wondering if anyone can help me or point me in the right direction > regarding how I can write to an XML file. Writing to an XML file works the same way as writing to any other file: you need to open the file with fopen(), append to

[PHP] Re: Hiding files away from /public_html/

2004-01-10 Thread memoimyself
Hi Philip, On 10 Jan 2004 at 12:42, Philip J. Newman wrote: > I want to store some images outside the /public_html/ how ever my isp > has decided that i'm not aloud to write files in that area. Would the > next best solution that wold be as secure to maybe put them in a folder > with a .htaccess

[PHP] Re: XML/HTML encoding?

2004-01-09 Thread memoimyself
Hello Vincent, On 9 Jan 2004 at 16:23, Vincent Jansen wrote: > After xslt I end up with a html document with a souce that looks > something like > > > "http://www.w3.org/TR/REC-html40/loose.dtd";> > > > dotted e (ë) works > > >

[PHP] Re: XML?

2004-01-09 Thread memoimyself
Hi there, Jake, On 9 Jan 2004 at 2:30, Jake McHenry wrote: > Can someone point me in the right direction towards creating and > implementing XML with php? I've heard it can make things much easier on > me, and would like more info on it. Also, if anyone has any storys > from using it, might give

[PHP] Re: Please check this program (its working)

2004-01-09 Thread memoimyself
On 9 Jan 2004 at 8:20, Ryan A wrote: > I dont know if this is the right way to do this, so please have a looksee > and tell me. Its working perfectly well...but will I have problems if I > try it on a large email list or will it hog resourcesetc? ANY advice > appreciated. One step at a time,

[PHP] Re: Please help with mail function

2004-01-09 Thread memoimyself
Hello Rolf, On 9 Jan 2004 at 0:51, Rolf Berkenbosch wrote: > I have a big problem with the mail function in a php script. > If I run this script with root access, the mail function is working. > If I try to run it like http://www.i-s-u.nl/test.php it won't work. > What is happening, what can

[PHP] Re: php on linux..

2004-01-08 Thread memoimyself
Hello Khoa, On 8 Jan 2004 at 0:13, khoa vo wrote: > > > Your name: > > That's fine, but that's not what you have up on your web space. Your form is pointing to action.html, not action.php. > > #!/lusr/bin/php > Hi . Ok, you

[PHP] Re: Problem with while loop

2004-01-08 Thread memoimyself
Hello Richard, On 7 Jan 2004 at 21:02, Richard Kurth wrote: > I can't seam to get this while loop to work properly. It should create > a message that has the first two lines and then it will list all the > domain that meat the criteria. > > $lines = "The following are web sites that are at 95%

[PHP] Re: (OT?) form question

2004-01-07 Thread memoimyself
Hello Craig, On 7 Jan 2004 at 9:50, craig wrote: > This may be more of an HTML question - can't find anything > in the php manual, but I may not know where to look. > > Is it possible to put the cursor into a form element > when a page loads without using javascript? PHP does everything it h