Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Berthold
Hi again! If it would be so simple I would not ask... OK, once more: #!/usr/local/bin/php -q ?php $link1 = mysql_connect(localhost,user,passwd) || die (Fehler! Zeile .__LINE__.:\n.$php_errormsg.\n.mysql_error()); echo Link 1: $link1\n; if (mysql_select_db(test, $link1)) { echo Successful

Re: [PHP] Anyone Up?

2002-02-01 Thread hugh danaher
I learned it as: echo ${check.$i}; and then was told to use an array... as in: echo $check[$i]; hugh - Original Message - From: Brian Clark [EMAIL PROTECTED] To: PHP is not a drug. [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 11:38 PM Subject: Re: [PHP] Anyone Up? * Brian

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread hugh danaher
I think you'll need something like this: VALUE=\'Your Name1\' / /single quote marks I believe (and I certainly could be wrong). otherwise it'll truncate at 'Your' of course, if this is what you want... Hugh - Original Message - From: Luke Welling [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Anyone Up?

2002-02-01 Thread Brian Clark
* hugh danaher ([EMAIL PROTECTED]) [Feb 01. 2002 03:44]: I learned it as: echo ${check.$i}; Works the same way. If you want to get really picky: echo ${'check'.${i}}; and then was told to use an array... as in: echo $check[$i]; The circumstances must have been different. As of php 4.1.0,

RE: [PHP] Re: Anyone Up?

2002-02-01 Thread Niklas Lampén
You're wrong here, my friend. You can have any value you like. value=@£$ASDFSDF ASDP fosifu @}{$#%/@would work. Niklas -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 1. helmikuuta 2002 10:48 To: Luke Welling Cc: Php-General Subject: Re: [PHP] Re: Anyone

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Brian Clark
* hugh danaher ([EMAIL PROTECTED]) [Feb 01. 2002 03:48]: I think you'll need something like this: VALUE=\'Your Name1\' / /single quote marks I believe (and I certainly could be wrong). otherwise it'll truncate at 'Your' of course, if this is what you want... (Not trying to pick on

[PHP] PHP-DOMxml

2002-02-01 Thread Sandeep Murphy
Hi all, I hv spent too much time trying to solve this by myself and hope someone out there can help me out.. I am trying to use the DOM xml parser to parse my xml data.. The problem is that the parser reads only the parent and child elements but when the child nodes repeat themselves inside of

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread hugh danaher
Not familiar with anything but php and html. I know that in a type=text (obviously not a checkbox) if you don't use the escape backslashes, the value written into the box is 'Your' without the 'Name #' I am told this is because the browser views the space after 'r' in 'Your' as a break and is

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Brian Clark
* hugh danaher ([EMAIL PROTECTED]) [Feb 01. 2002 04:21]: Not familiar with anything but php and html. XHTML isn't too different. There are different `rules' -- like tags and attributes must be lower case, values must be surrounded by double quotes, tags without closing tags: br /, img

RE: [PHP] Re: Anyone Up?

2002-02-01 Thread Niklas Lampén
Well, Netscape breaks value=This is to This, but IE understands that as This%20is. so if you set the value to be This%20is, both Netscape and IE understands that as This is. There are many other chars that can f**k up the value, so use htmlspecialchars() to correct that. Niklas -Original

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Lars Torben Wilson
On Fri, 2002-02-01 at 01:20, hugh danaher wrote: Not familiar with anything but php and html. I know that in a type=text (obviously not a checkbox) if you don't use the escape backslashes, the value written into the box is 'Your' without the 'Name #' I am told this is because the browser

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Jason Wong
On Friday 01 February 2002 16:23, Berthold wrote: Hi again! If it would be so simple I would not ask... OK, once more: #!/usr/local/bin/php -q 1) Has the mysql functions ever worked for you on that system? 2) Are you only get this problem when using php from the command line? -- Jason

Re: [PHP] Anyone Up?

2002-02-01 Thread Lars Torben Wilson
On Thu, 2002-01-31 at 23:37, jtjohnston wrote: Niklas, Bingo. I wondered if it was somehting like that? Same thing in JS more or less. Thanks, John eval() will work here, but it's overkill--it's a very expensive operation. You should avoid it whenever you can. A better way is to put

[PHP] ftp_rawlist doesnt take directories with spaces?

2002-02-01 Thread Johan Köhne
it seems ftp_rawlist doesnt take directories with spaces for me. does anyone have any experience with this? johan kohne -- 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

RE: [PHP] php.jobs

2002-02-01 Thread Boaz Yahav
You can check out http://www.weberdev.com. There is both a Jobs Section and a projects section where people are looking for developers to do projects for them. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message-

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Lars Torben Wilson
On Fri, 2002-02-01 at 01:33, Brian Clark wrote: * hugh danaher ([EMAIL PROTECTED]) [Feb 01. 2002 04:21]: Not familiar with anything but php and html. XHTML isn't too different. There are different `rules' -- like tags and attributes must be lower case, values must be surrounded by

[PHP] Neatest way to display remote page including images?

2002-02-01 Thread Graeme Bailey
Greetings all, I'm new, obviously. I want to (hopefully) display an html page with multiple choice drop down select option list, the list displaying various remote urls hidden, with plain text descriptions... eg option 1 http://sitex.com/pagexyz this page eg option 2

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Berthold
Hi! 1) Yes of course. I only have to delete the $link-variables... But then - of course - I can only use the last connection. 2) It made no sense. Shell or Apache. And the settings in php.ini are '-1' for 'unlimited'. And I use the right php.ini, even with the shell-version. Jason

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Brian Clark
* Lars Torben Wilson ([EMAIL PROTECTED]) [Feb 01. 2002 05:07]: On Fri, 2002-02-01 at 01:33, Brian Clark wrote: XHTML isn't too different. There are different `rules' -- like tags and attributes must be lower case, values must be surrounded by double quotes, tags without closing tags: br

Re: [PHP] redirection rather than include()

2002-02-01 Thread Graeme Bailey
G'day Martin, I'm new to PHP too, and I'm working on the same sort of problem... I had some success with something like this... //- ? //location index stored in variable $n //print(brLocation chosen = Location $n); //debugging switch($n){

[PHP] Connect() function

2002-02-01 Thread Jean-Arthur Silve
Hi ! I m using PHP 4.0.5 and I try to create a function called connect : function connect() { ... } My problem is I get this : Fatal error: Cannot redeclare connect() in /opt2/htdocs/www.mydomain.com/html/connexion.php on line 6 In connexion.php there is only the function declaration and

[PHP] Re: How to have custom error pages rather than CGI Error. The specifed ...

2002-02-01 Thread Todor Stoyanov
In IIS 5 Go to Web site properties, then Custom Errors and edit the properties of error 404. Nyon [EMAIL PROTECTED] wrote in message 002c01c1ab4d$afeb4ef0$8401a8c0@kayak01">news:002c01c1ab4d$afeb4ef0$8401a8c0@kayak01... Hi, I am running PHP on W2k. How do I redirect an url if a php file is

[PHP] wincvs?

2002-02-01 Thread marc beyerlin
hi phpfreaks, i try to get an Anonymous CVS connection with wincvs. i insert into the ENTER THE CVSROOT: field- pserver:[EMAIL PROTECTED]:/repository login and give the PASSWORD dialog box the password phpfi as seen on the php.net site, but i get the error, whats wrong ??? greetings, marc

[PHP] PHP commands and HTML combobox

2002-02-01 Thread Eduardo Melo
How can i use a HTML combobox content into a PHP code as such as : select name=combo optionOption 01 optionOption 02 optionOption 03 /select a href=http://www.iasp.br/iasponline.php?option=xx; img border=0 src=baok.gif width=17 height=17 /a xx must be the option select in the combo

[PHP] Re: wincvs?

2002-02-01 Thread Henrik Hansen
[EMAIL PROTECTED] (Marc Beyerlin) wrote: hi phpfreaks, i try to get an Anonymous CVS connection with wincvs. i insert into the ENTER THE CVSROOT: field- pserver:[EMAIL PROTECTED]:/repository login and give the PASSWORD dialog box the password phpfi as seen on the php.net site,

[PHP] preg_replace()str_replace() escaping a double-quote problem

2002-02-01 Thread Anton Kolev
Any idea why when I print the value of $text, I get a backslash in front of the result. Any of the following: $text=preg_replace(/\/, quot;, $text); $text=preg_replace(/\/, A, $text); str_replace() also does the same :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] is there a way to get the content type with php

2002-02-01 Thread Sebastian
Hi all i have a skript that sends out various files after versifying tat the user is authenticated. can i determine the content type of a file with php? like using it on pdf and it return applicatin/pdf etc? Sebastian

Re: [PHP] Connect() function

2002-02-01 Thread David Otton
On Fri, 01 Feb 2002 11:46:27 +0100, you wrote: I m using PHP 4.0.5 and I try to create a function called connect : function connect() { ... } My problem is I get this : Fatal error: Cannot redeclare connect() in /opt2/htdocs/www.mydomain.com/html/connexion.php on line 6 In connexion.php

Re: [PHP] is there a way to get the content type with php

2002-02-01 Thread David Otton
On Fri, 1 Feb 2002 12:37:24 +0100, you wrote: Hi all i have a skript that sends out various files after versifying tat the user is authenticated. can i determine the content type of a file with php? like using it on pdf and it return applicatin/pdf etc? That information is in

Re: [PHP] Connect() function

2002-02-01 Thread Lars Torben Wilson
On Fri, 2002-02-01 at 02:46, Jean-Arthur Silve wrote: Hi ! I m using PHP 4.0.5 and I try to create a function called connect : function connect() { ... } My problem is I get this : Fatal error: Cannot redeclare connect() in /opt2/htdocs/www.mydomain.com/html/connexion.php on

[PHP] ReFilling mySQL Database with CSV file!!

2002-02-01 Thread Thomas Edison Jr.
I have to shift my site to a new location. I have enormous records in many tables in my database which will be needed 2 be shifted to. The 'phpMyAdmin' at my site allows me make dumps of the Data in the CSV format. I haven't done this before. These are the options it gives me : 1. Structure

RE: [PHP] ReFilling mySQL Database with CSV file!!

2002-02-01 Thread Jerry Verhoef (UGBI)
First structure only second data only Don't forget to check the check box for complete inserts and extended inserts reload in new db. create the DB upload the 1 file and then the second file Done -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Friday,

Re: [PHP] ReFilling mySQL Database with CSV file!!

2002-02-01 Thread Hendrik Mans
Thomas Edison Jr. [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 2. Structure and data This is the one you want. It's not CSV (comma separated values), but rather the complete SQL code used to build your entire database. You'll be able to import this into

[PHP] classes $this-

2002-02-01 Thread Phil Schwarzmann
Can anyone direct me to a nice site that will take my hand and walk me through the basics of classes and $this- Ive written a few really good PHP sites and haven't had to use either of the two and Im sure Im missing out on some essentials to good coding. Thanks!

[PHP] Re: PHP commands and HTML combobox

2002-02-01 Thread Hendrik Mans
Eduardo Melo [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... select name=combo optionOption 01 optionOption 02 optionOption 03 /select Use: option value=xxyy xx is what will end up in your GET (or POST) parameters and ultimately in $combo,

Re: [PHP] classes $this-

2002-02-01 Thread pioneer
On Fri, 1 Feb 2002, Phil Schwarzmann wrote: Can anyone direct me to a nice site that will take my hand and walk me through the basics of classes and $this- Ive written a few really good PHP sites and haven't had to use either of the two and Im sure Im missing out on some essentials to good

[PHP] need some advice; small server on a win98 machine.

2002-02-01 Thread Wilbert Enserink
Hi all, I'm a php programmer building my first server. I think I need some advice. I'm trying to build a very small server on a win98 machine. I just installed PWS, then I installed PHP4 as a CGI module using the 'self'-installer from php.net. Then I installed mySQL, latest version. I know PWS

Re: [PHP] ReFilling mySQL Database with CSV file!!

2002-02-01 Thread Miles Thompson
Thomas, What phpMyAdmin is doing is providing a graphic interface for mysqldump. So read the MySQL docs on that and it will give you a better idea of what you're getting. What facilities do they provide at the new site? Will you have a shell, or is it a web interface? Will they provide a

[PHP] SAPI (Apache 2) question connection pooling

2002-02-01 Thread Frank Joerdens
Greetings. I am wondering about the status of the multithreaded PHP for the multithreaded Apache. In particular, I'd like to know a) if Apache 2 is a single-process server (as opposed to Apache 1.x which forks a new process for a new request) b) if PHP will work, or does work, with Apache 2 in

[PHP] eregi_replace Howto

2002-02-01 Thread Martin Cabrera Diaubalick
Hello all! I would like to change all the links containing string microsite from $contenido1 to: a href=http://www.whatever.com;Link not available/a. The rest of the links of $contenido1 would have to be ontouched. To do this, I tried $contenido1=eregi_replace((a

[PHP] javascripts commands

2002-02-01 Thread Eduardo Melo
How can i access an HTML ComboBox content using javascript language ? thank's eduardo melo computer programmer htmlDIV DIV DIV H5--/H5 H5Eduardo Fco Melo/H5 H5Celular : 19-9743-0804/H5 H5R. Antônio Biasi Filho, 74nbsp;- Hortolândia - SP - CEP 13184-040/H5 H5Currículumnbsp;disponível

[PHP] Re: javascripts commands

2002-02-01 Thread Todor Stoyanov
document.forms['yourcombo'].options[document.forms['yourcombo'].selectedInde x].value Eduardo Melo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How can i access an HTML ComboBox content using javascript language ? thank's eduardo melo computer programmer

[PHP] Escaping a double-quote problem

2002-02-01 Thread Anton Kolev
Any idea why when I print the value of $text, I get a backslash in front of the result? $text=preg_replace(/\/, quot;, $text); $text=preg_replace(/\/, A, $text); $text=str_replace(\, A, $text); Contrary: $text=preg_replace(//, amp;, $text); works quite well. cheerz -- PHP General

[PHP] javascript, php and html commands

2002-02-01 Thread Eduardo Melo
My somebody help me solve the code below ? A have a COMBO called ~edicoes~ and i must to use the option selected to open an URL as shown below : SELECT name=edicoes ? $sql = select num_edicao from edicao where flg_edicaocorrente = 'S'; $result = @mysql_db_query(iasp, $sql) or die

[PHP] Re: classes $this-

2002-02-01 Thread shann
try $this-http://www.zend.com/zend/tut/class-intro.php shann. Phil Schwarzmann [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone direct me to a nice site that will take my hand and walk me through the basics of classes and $this- Ive written

RE: [PHP] need some advice; small server on a win98 machine.

2002-02-01 Thread Rick Emery
Dump PWS, PHP module, mysql Download and install PHPTRIAD, which will install Apache server, PHP, and MySQL on your system. It's a turn-key operation. -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 6:18 AM To: [EMAIL PROTECTED]

RE: [PHP] PHP commands and HTML combobox

2002-02-01 Thread Rick Emery
Eduardo, You've already solved your own problem. You just need to take it one step further. given: form method=post action=formprocess.php select name=combo option value=01Option 01 option value=02Option 02 option value=03Option 03 /select -- in

[PHP] Associative arrays... help

2002-02-01 Thread Sandeep Murphy
Hi, sorry for repeating this...didnt change the sub..:) Is there any way I can construct an associative array out of 3 other arrays?? like for eg. function parse() { appid[]; appnm[]; url[]; } I want to do something like this: function arr() { $applist = array(APPID =$appid,

RE: [PHP] PHP commands and HTML combobox

2002-02-01 Thread Sandeep Murphy
Hi, Is there any way I can construct an associative array out of 3 other arrays?? like for eg. function parse() { appid[]; appnm[]; url[]; } I want to do something like this: function arr() { $applist = array(APPID =$appid, APP NAME=$appnm,

Re: [PHP] Making your include files invisible (header() in if loop)

2002-02-01 Thread Erik Price
On Thursday, January 31, 2002, at 11:50 PM, qartis wrote: I wanted to hide the existance of my include files by making them 'invisible': give a 404 error when requested. This worked, but the files that were including were obviously 404ing too. So I decided to use $PHP_SELF and check

RE: [PHP] Making your include files invisible (header() in if loop)

2002-02-01 Thread Jerry Verhoef (UGBI)
Or even better put them outside your www root. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 4:19 PM To: qartis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Making your include files invisible (header() in if loop) On Thursday,

[PHP] Date format

2002-02-01 Thread Jose
Hi all. How can I write the date in this format (dd/mm/) if php gives me (,mm,dd)?? Thanks --Jose Fco. ( [EMAIL PROTECTED] ). OLINET, S.L. Teléfono: 952207135 - Fax: 952207600 Avda. Juan

RE: [PHP] Date format

2002-02-01 Thread Rick Emery
list($y,$m,$d) = explode(,,$phpdate); $newdate = $d/$m/$y; -Original Message- From: Jose [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Date format Hi all. How can I write the date in this format (dd/mm/) if php gives me

Re: [PHP] Date format

2002-02-01 Thread Anas Mughal
I don't know how you are getting your (,mm,dd). But, try looking the date function. It should do the trick for you. --- Jose [EMAIL PROTECTED] wrote: Hi all. How can I write the date in this format (dd/mm/) if php gives me (,mm,dd)?? Thanks

[PHP] Re: How to get the URL into a var?

2002-02-01 Thread Andy
Thanx Francois this brought me on the propper road. Works fine now! Cheers Andy Francois Jordaan [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to find out which dir the user is browsing. How can I get the URL into a var? I tryed

Re: [PHP] Date format

2002-02-01 Thread Mike Frazer
$today = date(d/m/Y); That will get the current date and dump it in the format you asked for (DD/MM/, complete with leading zeros). Mike Frazer Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... list($y,$m,$d) = explode(,,$phpdate); $newdate =

[PHP] getting information from a COMBOBOX

2002-02-01 Thread Eduardo Melo
how can i get a result from a COMBOBOX ? as such as : ?=combo? best regards eduardo melo computer programmer _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List

RE: [PHP] getting information from a COMBOBOX

2002-02-01 Thread Rick Emery
You get the results by including it in a FORM/FORM and calling another PHP script which uses that value. As I stated earlier, you CANNOT retrieve the value of the COMBO BOX in the same page that it is created until the SUBMIT button is pushed -Original Message- From: Eduardo Melo

[PHP] Upload script with user admin

2002-02-01 Thread ArtistHotel
Hi, I need an upload script that lets predefined users log in and upload files. Does such a script exist? Regards JEns -- 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

Re: [PHP] Help with JPGraph in PHP.

2002-02-01 Thread Jose Daniel Ramos Wey
Unfortunatly header(Content-type: image/png) won´t help in IIS when PHP is running as CGI. You would have to be using PHP as an apache module or something similar. IIS won´t let CGIs change the headers. The solution is change your webserver, try to run PHP as an ISAPI module or save the

Re: [PHP] Upload script with user admin

2002-02-01 Thread Jeff Sheltren
You may want to check into some of these: http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/ Jeff At 05:34 PM 2/1/2002 +0100, ArtistHotel wrote: Hi, I need an upload script that lets predefined users log in and upload files. Does such a script exist? Regards

[PHP] Determining what script is running

2002-02-01 Thread Andrew Weiland
We're having a little trouble tracking down some problems with out webserver. We have a rougue script or two that's hogging a massive amount of CPU time. I was wondering if there was a way to see what httpd (apace) process is running what script? Thanks -- ===

[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
I forgot to add the security at the top of that code I sent. Upon a successful login you might want to create a session variable to signify that they are logged in. At the top of the pages you want to be secure from 'other' users just do a test at the top to check to see if that variable was set.

[PHP] header() and frameset

2002-02-01 Thread Benjamin deRuyter
Does anybody know of a way to break out of a frameset while using the following code to redirect the browser: header(Location: http://www.anywhere.com/;); exit(); Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: Escaping a double-quote problem

2002-02-01 Thread Lerp
Look up addslashes and stripslashes in the manual. Normally you'd use addslashes going into the db, and stripslashes coming out for display. HTH Joe :) Anton Kolev [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Any idea why when I print the value of $text, I

Re: [PHP] SAPI (Apache 2) question connection pooling

2002-02-01 Thread Rasmus Lerdorf
a) if Apache 2 is a single-process server (as opposed to Apache 1.x which forks a new process for a new request) It is a hybrid server which can be anything from one to the other. b) if PHP will work, or does work, with Apache 2 in this mode It works today. c) how database connection

Re: [PHP] header() and frameset

2002-02-01 Thread rpruitt
Anywhere in the head of the page you're gonna bust out, place this small code -- script if (parent.frames.length 0) { parent.location.href = self.document.location } /script Benjamin deRuyter wrote: Does anybody know of a way to break out of

[PHP] SAX + attributes

2002-02-01 Thread Sandeep Murphy
hi, can anyone tell me how I can retrieve attributes of a node using SAX parser in PHP?? TIA, sands -- 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 administrators, e-mail: [EMAIL

Re: [PHP] header() and frameset

2002-02-01 Thread Richard Crawford
Clarification: this will only work if you put the script inside the page that the header() command points to. If you put the header() command in the same document with this script, then the header() command won't work, since you'll be sending output to the browser. Here's a thought. Use the

[PHP] Re: Escaping a double-quote problem

2002-02-01 Thread Anton Kolev
oh yes and I had some magic_quote_smth=Yes parameter set by default in php.ini :) it's really not very smart to use it, it's very misleading one can see hundreds websites, which fill textareas with backslashes on re-submit to the same form Lerp [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Upload script with user admin

2002-02-01 Thread Will Hives
That's cool. How do you then delete and edit that image? Will in article [EMAIL PROTECTED], Lerp at [EMAIL PROTECTED] wrote on 2/1/2002 5:07 PM: Hi there, here's a bit of code to get you started. It includes a form that allows uploads, and the code to process the upload on the

[PHP] Newbie: function for downloading

2002-02-01 Thread Manuel Ritsch
Hey There I have a little question I'm making a page where you can download mp3's (hip hop and funk beats made by myself) and i want, if you press on the link (a href=yadayada.mp3), that it doesn't start an internal audio player (like some configurations/browsers do), rather i want that the

[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
Deleting and editing is accomplished by selecting out of the db the appropriate record. So if you had a page that looped through 35 (for example) records, and each record had a link that was created (a class='link_black_02' href='deletephotoconfirm.php?photoid=$photoid' . delete . /a) -- use the

[PHP] Problems with date function

2002-02-01 Thread Jorge Arechiga
Hi everybody I hope someone can help me in an issue on where i've been stuck for a while. I'm trying to show a date from a Table in SQLServer7 when i use this : trtd align=right width=60%? echo (odbc_result($resultd1,'date1'));?/td/tr the browser shows me the date correctly and

[PHP] Re: Problems with date function

2002-02-01 Thread Lerp
Hi there :) Check this out. It grabs the date from your table, and uses the mktime and date functions to format the date properly :) //format the gamedate for display below $month = substr($gamedate, 5, 2); //print $month . BR; $day = substr($gamedate, 8, 2); //print $day . BR; $year =

RE: [PHP] Associative arrays... help

2002-02-01 Thread Kevin Stone
You can have arrays of arrays of arrays of arrays if you like. But you must treat each array according to its type. I'm not sure what your function parse() is doing, but I assume it's going to build three list-type arrays. So when your looping through the associative array with a foreach()

[PHP] Re: Problems with date function

2002-02-01 Thread Mike Eheler
? echo date(m d Y,strtotime(odbc_result($resultado,'fechaasignacion')));? date accepts unix timestamps, not strings, so you have to convert that string to a unix time with strtotime. Mike Jorge Arechiga wrote: Hi everybody I hope someone can help me in an issue on where i've been

[PHP] PHP/Flash interaction

2002-02-01 Thread Luke Crouch
Anyone know of some good sites online that show how to optimize performance for PHP/Flash interaction? -L -- 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 administrators, e-mail:

[PHP] getting a list of all php functions

2002-02-01 Thread Mike Eheler
Okay, my goal is to compile an array of *all* functions currently defined and available in PHP 4.1.1. That's a simple task if all I want is functions for the extensions I chose to compile into PHP (get_defined_functions()), but what about the other ones? Is there a place somewhere that has a

[PHP] help writing cookie 2 hosts same domain

2002-02-01 Thread Razorfish
I'm trying to write a cookie that is properly read by two hosts of the same domain. The hosts: https://secure.domain.com http://www.domain.com With PHP 4.1.1 for Linux on Apache (as module) I've written setcookie(session,$sesscode, /, domain.com, 0); and

Re: [PHP] getting a list of all php functions

2002-02-01 Thread Jason Wong
On Saturday 02 February 2002 02:29, Mike Eheler wrote: Okay, my goal is to compile an array of *all* functions currently defined and available in PHP 4.1.1. That's a simple task if all I want is functions for the extensions I chose to compile into PHP (get_defined_functions()), but what

Re: [PHP] getting a list of all php functions

2002-02-01 Thread Mike Eheler
That'll do! Thanks! Mike Jason Wong wrote: On Saturday 02 February 2002 02:29, Mike Eheler wrote: Okay, my goal is to compile an array of *all* functions currently defined and available in PHP 4.1.1. That's a simple task if all I want is functions for the extensions I chose to compile into

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Erik Price
On Friday, February 1, 2002, at 05:07 AM, Lars Torben Wilson wrote: Everything is correct 'cept the 'double quotes' bit--XML accepts attribute values enclosed in either single or double quotes. Yes, and to extend on that: you need to stick to one convention or the other throughout the

RE: [PHP] Newbie: function for downloading

2002-02-01 Thread Rick Emery
Well, the quick and dirty is that the user RIGHT-CLICKs on the link. The Context menu will display which invites the user to Save Target As. But I gues you really want a LEFT-CLICK option? -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002

Re: [PHP] SAPI (Apache 2) question connection pooling

2002-02-01 Thread Frank Joerdens
On Fri, Feb 01, 2002 at 09:14:24AM -0800, Rasmus Lerdorf wrote: a) if Apache 2 is a single-process server (as opposed to Apache 1.x which forks a new process for a new request) It is a hybrid server which can be anything from one to the other. b) if PHP will work, or does work, with

Re: [PHP] SAPI (Apache 2) question connection pooling

2002-02-01 Thread Rasmus Lerdorf
On Fri, Feb 01, 2002 at 09:14:24AM -0800, Rasmus Lerdorf wrote: a) if Apache 2 is a single-process server (as opposed to Apache 1.x which forks a new process for a new request) It is a hybrid server which can be anything from one to the other. b) if PHP will work, or does work,

[PHP] Attaching a file via MAIL()

2002-02-01 Thread Dave
How can I add an attachment to an email using MAIL(). So far I have been able to successfully send email by using: mail($to, $subject, $message, $headers); Is there something I can add in the $headers to add an attachment?? I am running PHP 4 and apache under a windows 98 environment...

[PHP] Email Attachment

2002-02-01 Thread Mauricio Sthandier
Hello, I'm new in php development... I was wondering how can I attach a Word (.doc) Document in an email sent with the mail() function (if I can do it just with it). I know it has to see with the additional headers of the email, but I would be grateful If anyone could tell where can i go to for

Re: [PHP] COS function

2002-02-01 Thread LaserJetter
Maybe this is something which should be changed in future PHP releases. Even the Windows Calcuator and my old scientific calc know that cos 90º is 0!! Out of interest, have you tried any results using trignonometrical identities ie tan() = sin() / cos() to see if the error cancels out in the

[PHP] Re: external programs

2002-02-01 Thread LaserJetter
Is the external exe waiting for more input from you before it finishes? Also, is the call to system() or exec() whatever inside HTML or BODY tags as sometimes this makes a difference as to whether or not anything is displayed - some characters are ignored by HTML LJ Chris Randall [EMAIL

RE: [PHP] PHP/Flash interaction

2002-02-01 Thread Mike Krisher
what do you mean by optimization? do you mean loading info(name/value pairs) from PHP to Flash and vice versa. I don't know if there is a way to optimize it at all, GET and POST are the same things with Flash as they are with HTML and the like. Let me know if you're looking for something

[PHP] Writing to specific place in file?

2002-02-01 Thread John P. Donaldson
I'm trying to modify a PHP form processor script that writes to files. It writes to text files fine, but I would like it to write to a specific place in a file because I want the file to contain HTML tags. I can start this file out by having the proper HTML tags at the top of the file because

Re: [PHP] Re: Anyone Up?

2002-02-01 Thread Lars Torben Wilson
On Fri, 2002-02-01 at 10:48, Erik Price wrote: On Friday, February 1, 2002, at 05:07 AM, Lars Torben Wilson wrote: Everything is correct 'cept the 'double quotes' bit--XML accepts attribute values enclosed in either single or double quotes. Yes, and to extend on that: you need to

[PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
I've got a fairly basic website content management system I'm working on, and I've got the data split up in MySQL by the following: a few columns for identifiers like language, section and unique keyname, a column for a component name and a column for the relevant content for that component. As

Re: [PHP] Attaching a file via MAIL()

2002-02-01 Thread mike cullerton
on 2/1/02 11:36 AM, Dave at [EMAIL PROTECTED] wrote: How can I add an attachment to an email using MAIL(). So far I have been able to successfully send email by using: mail($to, $subject, $message, $headers); Is there something I can add in the $headers to add an attachment?? you

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
$sql = SELECT * FROM $table_name WHERE sec = '$sec' AND WHERE subsec = '$subsec' AND WHERE name = '$name' ORDER BY component ; $result = mysql_query($sql) or die(Error: .mysql_error().$sqlBR); while ( link($component,$content) = mysql_fetch_array($result)

[PHP] Pregenerating Script Once Again Putting this question

2002-02-01 Thread karthikeyan
Hi Guys, I got some sweet responses like using cat and using Output Buffering functions. But then what i really want is to provide user with the interface like this : Pregeneration Program --- Step 1 - Choose you Header file [ ]

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
Thanks for your reply.. I guess I should have mentioned my platform: iPlanet/NT.. The manual says that link() isn't available for Windows users.. Is there another function I could use? My second question concerns the .. do stuff here .. portion.. I'm not sure what I'd actually put there. My

[PHP] php and sym links

2002-02-01 Thread swade
hi, Is there something about php that would prevent me from doing the following setup /var/www/base/index.php /var/www/site1/index.php is sym link to /var/www/base/index.php /var/www/site2/index.php is sym link to /var/www/base/index.php /var/www/site3/index.php is sym link to

[PHP] adding hidden form values to array

2002-02-01 Thread Erik Price
In my system, a user can query a database which is populated with the names of image files. The form is submitted, and the page recalls itself but displays all matching results. In each matching result is a checkbox form field, with the primary key of the file as the value (I'm using

  1   2   >