[PHP] Record Sorting Using Up and Down Arrows

2002-10-04 Thread David Pratt
Hi there. I am trying to write a routine to allow me to sort the contents of a table by clicking on up or down arrows. The idea is that top record will have down arrow, bottom record up arrow and records inbetween both an up arrow and down arrow. Clicking the arrow causes the record to move up o

Re: [PHP] Findng a pattern

2002-10-04 Thread Rasmus Lerdorf
You are building something that will automatically scrape Google by explicitly circumventing the tools they have provided for you to do so. Whether the information is for your own internal statistics or not is irrelevant. The terms of service state: No Automated Querying You may not send aut

php-general Digest 5 Oct 2002 06:16:07 -0000 Issue 1625

2002-10-04 Thread php-general-digest-help
php-general Digest 5 Oct 2002 06:16:07 - Issue 1625 Topics (messages 118900 through 118942): Need help with fsockopen() 118900 by: Cliff Small 118901 by: bbonkosk.tampabay.rr.com PHP debugger 118902 by: Anna Gyor Modifying the size of a jpg. 118903 by: nico

[PHP] sending post without a form

2002-10-04 Thread Pablo Oliva
Did the individual trying to send post(ed) data without the use of a form succeed? I tried doing this before and didn't have any luck with it... And I eventually gave up. Has anybody had any luck in doing it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Thanks "Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message 001201c26c2c$5b7091a0$0500a8c0@BAMBINO">news:001201c26c2c$5b7091a0$0500a8c0@BAMBINO... > > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCHO has Spoken! > > > > > > > -Original Message- > From: Henry [mailto:[EMAI

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Dear Rasmus et.al. I am not wishing to reformat or display or mirror anything from google. This is for my own internal statistics. I hope that puts your mind at rest. Henry "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You realize that yo

RE: [PHP] Findng a pattern

2002-10-04 Thread Timothy J Hitchens
Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Try this.. but take what Rasmus says if you are talking about Google: 1 - 10 of about 14. Search took 0.14seconds."; preg_match_all("/[0-9]+[.]*[0-9]*/",

Re: [PHP] Findng a pattern

2002-10-04 Thread Rasmus Lerdorf
You realize that you are asking us to help you violate the terms of service of Google? A direct quote from their terms of service: "You may not take the results from a Google search and reformat and display them, or mirror the Google home page or results pages on your Web site." -Rasmus

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Yes The string will always be the same and the repective values will always have the same meaning. "Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message 001101c26c2b$55adc400$0500a8c0@BAMBINO">news:001101c26c2b$55adc400$0500a8c0@BAMBINO... > Are the value in the same order each time? > > > T

RE: [PHP] Findng a pattern

2002-10-04 Thread Timothy J Hitchens
Are the value in the same order each time? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Saturday, 5 October 2002 2:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Findng a pattern Thanks, but I don

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Yes But that the string is contained within a much bigger string as well I want to search for the follwong string but with wild cards for the numeric values and I would like to know the values as well. "Results $1 - $2 of about $3. Search took $4 seconds." Where all the $'s are numeric value

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Thanks, but I don't want to uses google's SOAP interface, is there a preg type solution. "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Google has a SOAP interface for this. > > On Sat, 5 Oct 2002, Henry wrote: > > > Dear All, > > > > Excuse

RE: [PHP] Findng a pattern

2002-10-04 Thread Timothy J Hitchens
Are you saying you want to be able to extract the numbers etc? Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO has Spoken! -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Saturday, 5 October 2002 2:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Findng a pattern D

Re: [PHP] Findng a pattern

2002-10-04 Thread Rasmus Lerdorf
Google has a SOAP interface for this. On Sat, 5 Oct 2002, Henry wrote: > Dear All, > > Excuse my ignorance but I'm STILL a newbie to this aspect of PHP. > > $str="Results 1 - 10 of about 14. Search took > 0.04 seconds." > > I would like to look for the string above in a buffer of text. However

[PHP] Findng a pattern

2002-10-04 Thread Henry
Dear All, Excuse my ignorance but I'm STILL a newbie to this aspect of PHP. $str="Results 1 - 10 of about 14. Search took 0.04 seconds." I would like to look for the string above in a buffer of text. However I would like to find it even if the numeric are different. Furthermore I would like t

RE: [PHP] Re: access denied

2002-10-04 Thread Timothy J Hitchens
Please don't 777 anything... do you have shell access (if platform/access supports it) login and and see what the perms are and work on the problem don't hammer it with a fix all. Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Chen Shuang [

[PHP] Re: access denied

2002-10-04 Thread Chen Shuang
try CHMODing your files and your directory to 777, since i believe you are using a Linux Server. "Simon Angell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The PHP script im using works on my computers server, but when after > uploading to my web server i g

RE: [PHP] One Session ID, Multiple Domains

2002-10-04 Thread John W. Holmes
> Here's the situation: I have an online store. I use sessions to track > the shopping cart. When I go to checkout and switch to SSL, it's on > another domain (but still on the same machine). I need to access the > session data from the non-SSL domain for checkout. How can I go about > doing this?

Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-04 Thread Tom Rogers
Hi, Saturday, October 5, 2002, 4:10:03 AM, you wrote: JB> I had not downloaded mcrypt, but I download it (which required a later JB> version of mhash so I downloaded, and installed it too). I compiled JB> everything with the instrucitons you listed, and I am still getttng the same JB> error mess

[PHP] One Session ID, Multiple Domains

2002-10-04 Thread SpamSucks86
Is it possible to have one session ID and access it from two domains? Here's the situation: I have an online store. I use sessions to track the shopping cart. When I go to checkout and switch to SSL, it's on another domain (but still on the same machine). I need to access the session data from

Re: [PHP] unexpected t varable

2002-10-04 Thread Gary
John W. Holmes wrote: >>John W. Holmes wrote: >> >> Can someone tell where I messed up on this code snippit? >>>Your first mistake is not giving us the full error and the line >>>number... >>> >>> >>> >>> if ($res->numRows() > 0){

RE: [PHP] unexpected t varable

2002-10-04 Thread John W. Holmes
> John W. Holmes wrote: > >>Can someone tell where I messed up on this code snippit? > > > > > > Your first mistake is not giving us the full error and the line > > number... > > > > > >>if ($res->numRows() > 0){ > >>list($id, $question, $responce1, > > > > $responce2,

Re: [PHP] unexpected t varable

2002-10-04 Thread Gary
John W. Holmes wrote: >>Can someone tell where I messed up on this code snippit? > > > Your first mistake is not giving us the full error and the line > number... > > >>if ($res->numRows() > 0){ >> list($id, $question, $responce1, > > $responce2, > >>$responce3)

RE: [PHP] unexpected t varable

2002-10-04 Thread John W. Holmes
> Can someone tell where I messed up on this code snippit? Your first mistake is not giving us the full error and the line number... > if ($res->numRows() > 0){ > list($id, $question, $responce1, $responce2, > $responce3) = $res->fetchRows() and you're missing a

[PHP] unexpected t varable

2002-10-04 Thread Gary
Can someone tell where I messed up on this code snippit? if ($res->numRows() > 0){ list($id, $question, $responce1, $responce2, $responce3) = $res->fetchRows() $id = $row[0]; $question = $row[1];

[PHP] Re: Stuck at PHP4 installation( with Apache2 )

2002-10-04 Thread kramer
Thanks Erwin. Unfortunately it doesn't work, even after I copied php4ts.dll. How would I specify the drive:\Program Files, which has a space in-between. Should I include single or double quote ? I tried all these combinations... LoadModule php4_module F:/Progra~1/php-4.2.3-Win32/php4ts.dll Load

RE: [PHP] Re: elseifs and ereg

2002-10-04 Thread John W. Holmes
> Err, yeah, I just figured that out. So now I have this, but it always > matches the first. I even tried setting $now = "2221" > > Thanks for the help! > > Bryan > > > $now = date("Hi", strtotime("now")); > $out = "not set"; Hey...you've got that right now...kind of. > if (ereg("[22

Re: [PHP] Copying array segments

2002-10-04 Thread Robert Cummings
Rasmus Lerdorf wrote: > > > I've got an array that is 5 arrays deep, and I want to copy the array > > three levels down of one index into a new array. > > > > Example: $output['recommendernames'][0]['recommendername'][0]['com']; > > > > This is what I want to do: > > > >$newoutput =

Re: [PHP] Copying array segments

2002-10-04 Thread Rasmus Lerdorf
> I've got an array that is 5 arrays deep, and I want to copy the array > three levels down of one index into a new array. > > Example: $output['recommendernames'][0]['recommendername'][0]['com']; > > This is what I want to do: > >$newoutput = $output['recommendernames'][0]['recommen

[PHP] Copying array segments

2002-10-04 Thread Lon Lentz
I've got an array that is 5 arrays deep, and I want to copy the array three levels down of one index into a new array. Example: $output['recommendernames'][0]['recommendername'][0]['com']; This is what I want to do: $newoutput = $output['recommendernames'][0]['recommendername'];

Re: [PHP] Re: elseifs and ereg

2002-10-04 Thread Bryan Koschmann - GKT
Err, yeah, I just figured that out. So now I have this, but it always matches the first. I even tried setting $now = "2221" Thanks for the help! Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Uploading Files

2002-10-04 Thread eriol
"Jason" <[EMAIL PROTECTED]> disgorged: : : : I am able to get rid of this error, but changing the line to: : move_uploaded_file($_FILES['userfile']['tmp_name'], : "../images/$_FILES[userfile][name]"); : : However, the file is then uploaded as Array[name] : : How do I get past this? I'm no

[PHP] Re: elseifs and ereg

2002-10-04 Thread Nick Eby
check the manual page for ereg... you'll find that it takes 2 parameters minimum, and the return value is not what your code expects it to be. http://www.php.net/ereg "Bryan Koschmann - Gkt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Okay, I think I'm just

[PHP] elseifs and ereg

2002-10-04 Thread Bryan Koschmann - GKT
Okay, I think I'm just being stupid here. Can someone please tell me why this is wrong? Yeah I know it looks lame, but I'm just testing something. This always returns "no matches" Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] Execution Time

2002-10-04 Thread Mark Olton
Edit your php.ini, change "max_execution_time" to something greater than 30. Mark > -Original Message- > From: Pong-TC [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 2:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Execution Time > > > Hello All > > I have a problem wi

[PHP] Problem uploading PDF files

2002-10-04 Thread Wilmar Perez
Hello guys I do have a problem uploading PDF files. Whenever I try to upload a PDF file, the enviromental variable of the file field in the form gets set to "none", otherwise it goes fine. Any idea? *** Wilmar Pérez

[PHP] Execution Time

2002-10-04 Thread Pong-TC
Hello All I have a problem with the execution time. I use PHP to update database, but it could not perform well due to the limited execution time. How could I extend the execution time? Here is my error: Fatal error: Maximum execution time of 30 seconds exceeded in d:\inetpub\wwwroot\cgi-bin\

[PHP] RE: Incrementing the value

2002-10-04 Thread Jason D
It's not very clear what you want but the following could be it: > i have written code such that initially it will display the value > correspond to the value 1..after every click it will increment the value > 2,3...so on..but now it is displaying the value 1 and for after each click >

[PHP] Re: Uploading Files

2002-10-04 Thread Jason
Okay, I checked out the link listed below, and tried using what is given there, but I get the following error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in d:\www_root\locutus\phpman\admin\test.php on line 16 Here's the code t

[PHP] Re: Uploading Files

2002-10-04 Thread eriol
"Jason" <[EMAIL PROTECTED]> disgorged: : I would like to be able to upload files from the client computer to the : server via a form. I know how to build the form, but am not sure of the : best way to process this. I know there are certain ftp functions that can : do this, which I'm not sure

[PHP] Uploading Files

2002-10-04 Thread Jason
I would like to be able to upload files from the client computer to the server via a form. I know how to build the form, but am not sure of the best way to process this. I know there are certain ftp functions that can do this, which I'm not sure how to use. Are there any others? Jason D. Willi

Re: [PHP] Distance Script Available?

2002-10-04 Thread Edward Marczak
On 10/4/02 8:21 AM, "RoyW" <[EMAIL PROTECTED]> tapped the keys: > There has to be somewhere you can pick up a script or function that will > calculate distance? If you can search by US Zip Code or lat/long, search the archives of this list for 'proximity'. You'll find this comes up quite often.

[PHP] Modifying the size of a jpg.

2002-10-04 Thread nicos
Hello, I'm trying to modify the size of jpgs so they can be less big, so easily downloadable. If anyone has worked on it, contact me please. Thanks. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://w

[PHP] PHP debugger

2002-10-04 Thread Anna Gyor
Hello, is there any application with I can test my php-based web site? I know Zend Studio and PHPEdit but I can't use them if any variable comes from an other html site. (For example in logging there are loginname and password as html variable and the debugger don't see them and the script doesn

Re: [PHP] Need help with fsockopen()

2002-10-04 Thread bbonkosk
http://www.php.net/manual/en/function.fsockopen.php Seems to be A LOT of useful information there? Did you check it out? -Brad > I have a script that downloads html pages from many different sites. The > script executes as expected but is slw. I would like to replace > fopen() with fs

[PHP] Need help with fsockopen()

2002-10-04 Thread Cliff Small
I have a script that downloads html pages from many different sites. The script executes as expected but is slw. I would like to replace fopen() with fsockopen() so that I can set a time limit for the page downloads. Here is an example of how I'm using fopen(): $OpenFile = fopen("$site

Re: [PHP] recent encrpyt decrypt code... (problems)

2002-10-04 Thread Jeff Bluemel
I had not downloaded mcrypt, but I download it (which required a later version of mhash so I downloaded, and installed it too). I compiled everything with the instrucitons you listed, and I am still getttng the same error messages. Jeff "Tom Rogers" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

Re: [PHP] Obfuscating E-Mail

2002-10-04 Thread Ashley M. Kirchner
Justin French wrote: > simple str_replace() stuff will get the address into a mickey at disney > dot com format... but the link needs to be done with javascript, and you > have to accept that it will not work for everyone. What about if I made the link point to another PHP script that will t

Re: [PHP] Obfuscating E-Mail

2002-10-04 Thread Justin French
simple str_replace() stuff will get the address into a mickey at disney dot com format... but the link needs to be done with javascript, and you have to accept that it will not work for everyone. the phpclasses.org site does this along with 1000's of others, so I'm sure you can find some code. i

Re: [PHP] form and php

2002-10-04 Thread Gerard Samuel
I believe -> Test Test Tao Hou wrote: >Hi, >I jsut install apache1.3.26 and php 4.2.3 on my win2000 machine for my >course project. > >when I run: >phpinfo(); >?> >everything works fine, it will show me the information. but when I try >the followings, it give me an error: > > >**

[PHP] Obfuscating E-Mail

2002-10-04 Thread Ashley M. Kirchner
What's the best (or easy, whichever) way to obfuscate e-mail addresses, either in plain HTML, or through a PHP script to prevent harvesters from collecting them? I don't mind if the address shows up as 'mickey at disney dot com (as opposed to [EMAIL PROTECTED]), however I want it to be a 'ma

[PHP] form and php

2002-10-04 Thread Tao Hou
Hi, I jsut install apache1.3.26 and php 4.2.3 on my win2000 machine for my course project. when I run: everything works fine, it will show me the information. but when I try the followings, it give me an error: test.html This page is for Power Calculation

RE: [PHP] globals not working?

2002-10-04 Thread Jon Haworth
Hi Paul, > function testGlobal() { > global $evtredir_site; > > echo "TestGlobal: '$evtredir_site'\n"; > } > > When I do "testGlobal();" I get: > > TestGloal: '' Change this function to: function testGlobal() { global $evtredir_site; echo "TestGlobal: ". $evtre

[PHP] use_cookies not working

2002-10-04 Thread Richard Fox
I am using ini_set("session.use_cookies","0"); to disable cookies but I don't see PHPSESSID showing up like I thought it would, so I don't think its working. I call it before session_start(). After the ini_set call I do session_log("CSE_Session_Start"); session_module_name(

[PHP] globals not working?

2002-10-04 Thread Paul Kaiser
I have an odd problem. I have a file called "evt_to_web.php". This file contains some variable assignments and a few functions. I have used require_once "evt_to_web.php"; in another file, indextest.php. In indextest.php, I then call a function that is in evt_to_web.php. That function cannot see

[PHP] Re: GD on Linux

2002-10-04 Thread Joshua E Minnie
"Joshua E Minnie" <[EMAIL PROTECTED]> wrote: : I was wondering if anyone could point me in the right direction as to why I : can't get image manipulation with PHP to work. I am running 4.1.2 on Redhat : with Apache. The configure script has "--with-gd" and in the php.ini file I : added the line

[PHP] GD on Linux

2002-10-04 Thread Joshua E Minnie
I was wondering if anyone could point me in the right direction as to why I can't get image manipulation with PHP to work. I am running 4.1.2 on Redhat with Apache. The configure script has "--with-gd" and in the php.ini file I added the line "extension=gd.so". I got it working on my W2K IIS5 S

Re: [PHP] Problem uploading files

2002-10-04 Thread Wilmar Perez
Hello Justin, thanks for your comments. Well just to answer your questions: 1. I've got register_globals set to ON. I have never had problem before with my forms, but this is the first time I try to upload a file. 2. I'm following the sample code you recommend. They're in fact pretty sim

Re: [PHP] Problem uploading files

2002-10-04 Thread Justin French
A few observations: if ($formfile == "none") { echo "There is no file to send"; exit; } for starters, I don't see how $formfile could ever be "none"... secondly, if you have register_globals set to off in your php.ini, $formfile wont' even be a variable, but you've only sent what looks like part

[PHP] Problem uploading files

2002-10-04 Thread Wilmar Perez
Hello guys This is my first post to the list, hope you can give point me to the right direction. Well, I've been trying to upload a file without much success so far. All I get is my firs error message: "There is no file to send" (shown in the script). This is my form: Book Name:

[PHP] Re: $B$($($H(B

2002-10-04 Thread @ Edwin
Not that this is relevant but... "$B2rFI$9$k(B"(kaidoku suru) means "to decipher" or "to decode". So, perhaps, the person who posted the message was just wondering how will the ml figure out what the message was. Or, ... (I don't really know... there's a Japanese ml so the post must be a mistak

Re[2]: [PHP] XML dom encode

2002-10-04 Thread Tom Rogers
Hi, Untested but it would be something like this: 0){ //Create DomDocument ob_start(); echo ''; $buffer = ob_get_contents(); ob_end_clean(); $doc = domxml_open_mem($buffer); //Get root node $root = $doc->document_element();

[PHP] Re: $B$($($H(B

2002-10-04 Thread Rick Beckman
And I see my post got butchered... Well, that's what I get for trying to help. :-\ -- Kyrie Eleison, Rick www.spiritsword.com/phpBB2/ Rick Beckman wrote: > The best translation I could find comes from worldlingo.com ... > $B$3(B $B$l(B $B$C(B $B$F(B $B$I(B $B$&(B $B$d(B > $B$C(

[PHP] Re: $B$($($H(B

2002-10-04 Thread Rick Beckman
The best translation I could find comes from worldlingo.com ... $B$3(B $B$l(B $B$C(B $B$F(B $B$I(B $B$&(B $B$d(B $B$C(B $B$F(B solution? $B$9(B $B$k(B $B$s(B $B$G(B $B$7(B $B$g(B $B$&(B? Obviously, that's not enough to help.. Sorry. However, they do offer "clarifi

[PHP] Re: mail headers & filtering

2002-10-04 Thread Henry
I like that ;-) "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > On 09/30/2002 01:29 PM, Henry wrote: > > How about somebody making a javascript email encoder so that if you use a > > javascript enabled mail client it will get decoded o

RE: [PHP] the files I'm working with

2002-10-04 Thread Jon Haworth
Hi Marek, > safe enough would be to put this at the begining > if(!ereg('^[0-9]+$',$song) { > die('Sorry...') > } Sure, but why incur the expense of using the ereg() parser? If you're only ever going to be testing whether $song is a number or not, use http://php.net/is-numeric. Cheers Jon

Re: [PHP] Distance Script Available?

2002-10-04 Thread Miles Thompson
From concept to reality? mt At 02:51 PM 10/4/2002 +0200, Maxim Maletsky wrote: >Distance of what? > > >On Fri, 4 Oct 2002 07:21:53 -0500 >"RoyW" <[EMAIL PROTECTED]> wrote: > > > There has to be somewhere you can pick up a script or function that will > > calculate distance? > > > > :-) > > > > R

Re: [PHP] XML dom encode

2002-10-04 Thread Tom Rogers
Hi, Friday, October 4, 2002, 10:14:31 PM, you wrote: DÖJ> header("Content-Type: application/xml"); DÖJ> //query database records DÖJ> $connection = mysql_connect("localhost", "user", "pass") or die("can't connect"); DÖJ> mysql_select_db("webbish"); DÖJ> $query = "SELECT id, title, artist F

Re: [PHP] Unix passwd file

2002-10-04 Thread Erwin
>> Username is no problem, the Unix encrypted >> password is the one I am trying to work out. If the user has a >> password of: phprocks and in /etc/passwd >> that encrypted password works out to be: !#@KJCKMSD@, then I >> validate the user, they enter the correct username and password, >> will

Re: [PHP] Distance Script Available?

2002-10-04 Thread Maxim Maletsky
Distance of what? On Fri, 4 Oct 2002 07:21:53 -0500 "RoyW" <[EMAIL PROTECTED]> wrote: > There has to be somewhere you can pick up a script or function that will > calculate distance? > > :-) > > Roy > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://w

Re: [PHP] Unix passwd file

2002-10-04 Thread Scott St. John
At 01:54 PM 10/4/2002 +0200, lallous wrote: >Peter, I think he's stuck with the parsing part? >you can file() the /etc/passwd file then explode() it and add the >username,passhash parts and/or more values into the mysql table. I can parse the file just fine, what I am trying to do is actually mak

RE: [PHP] Re: XML dom encode

2002-10-04 Thread Davíð Örn Jóhannsson
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: 4. október 2002 12:23 To: [EMAIL PROTECTED] Subject: [PHP] Re: XML dom encode On 10/04/2002 09:14 AM, 翽 wrote: > But I need to modify this script so that I can set the encoding of the xml document >to ISO-8859-1 so

[PHP] Re: help on regex

2002-10-04 Thread Mark Harwood
> I am trying to learn regex and could need some help. > > There are 2 function I would need. 1 which returns false if the data does > contain anything else than numbers or fullstops > > I tryed this: > function validate_phone ($phone) { > return (ereg('^[0-9][:punct:]', $phone)); > } try using

Re: [PHP] Unix passwd file

2002-10-04 Thread Scott St. John
At 04:54 AM 10/4/2002 -0600, Peter Janett wrote: >You can just put the username and password in the MySQL database as normal >text, then build your applications that are reading them to check the >passwords with the UNIX Crypt function. Basically that is what I am trying to do. I just converted

[PHP] Re: help me please.

2002-10-04 Thread Erwin
> got a problem here people. > What I want to do is upload a file and store its name in a database. > For some reason I cant. What version of php are you using? Did you check the register_globals in php.ini??? O...in the process script, you have $usefile, but in the submit script, it's $useRfile

[PHP] Re: XML dom encode

2002-10-04 Thread Manuel Lemos
On 10/04/2002 09:14 AM, 翽 wrote: > But I need to modify this script so that I can set the encoding of the xml document >to ISO-8859-1 so it would look like this: > > > - > - > sdfsdfsdf > ssdfsdf > > - > asdf > asdf > > - > sdfasdf > 涩 > > > > Any Ideas h

[PHP] Distance Script Available?

2002-10-04 Thread RoyW
There has to be somewhere you can pick up a script or function that will calculate distance? :-) Roy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML dom encode

2002-10-04 Thread Davíð Örn Jóhannsson
0){ //Create DomDocument $doc = new_xmldoc("1.0"); //Add root note $root = $doc->add_root("cds"); //Iterate through result set while(list($id, $title, $artist) = mysql_fetch_row($result)){

[PHP] help me please.

2002-10-04 Thread Steve Jackson
got a problem here people. What I want to do is upload a file and store its name in a database. For some reason I cant. I can upload the file fine but can't pass it's name to the mysql DB. Any ideas: Upload form: You can now upload a picture..."; echo ""; echo ""; echo ""; echo ""; blueFont(

Re: [PHP] the files I'm working with

2002-10-04 Thread Marek Kilimajer
safe enough would be to put this at the begining if(!ereg('^[0-9]+$',$song) { die('Sorry...') } Rick Beckman wrote: >song.php is the file that I'm using as my template file, and it calls >information from the includes/ directory, which the file "1" would be in. If >someone would please look

RE: [PHP] Good Practice: Variables, Error Reporting and Security

2002-10-04 Thread Jay Blanchard
[snip] I made one. Here: // Alter variables for the versions prior to 4.1.0 // NOTE: $_REQUEST global variable is NOT supported. if(strnatcasecmp('4.1.0', PHP_VERSION)>=0) { foreach(Array( '_GET' => 'HTTP_GET_VARS'

[PHP] Re: the files I'm working with

2002-10-04 Thread Rick Beckman
Outlook Express added a .dat extension to the "1" file... The actual files I'm working with do NOT have extensions. Just wanted to clear that up. -- Kyrie Eleison, Rick www.spiritsword.com/phpBB2/ Rick Beckman wrote: > song.php is the file that I'm using as my template file, and it calls > in

[PHP] the files I'm working with

2002-10-04 Thread Rick Beckman
song.php is the file that I'm using as my template file, and it calls information from the includes/ directory, which the file "1" would be in. If someone would please look at song.php (I stripped it down to the basics pretty much) and let me know the best and most secure way to do what I want it

[PHP] help on regex

2002-10-04 Thread andy
Hi everybody, I am trying to learn regex and could need some help. There are 2 function I would need. 1 which returns false if the data does contain anything else than numbers or fullstops I tryed this: function validate_phone ($phone) { return (ereg('^[0-9][:punct:]', $phone)); } The next on

RE: [PHP] No ouput until program end, why?

2002-10-04 Thread John W. Holmes
> I am running a PHP program under Linux on the command line. The problem > I have is that I get no output to the screen until the program finishes. > > I have lots of echo statements throughout the program to help me debug > but none of them are printed until the program finishes, which is reall

RE: [PHP] Umm... Uh-oh

2002-10-04 Thread John W. Holmes
That still wouldn't fix anything if you're including a file based on unchecked user input. Make an array in your file of "safe" files to include, that can be designated by the user. $safe_files = array("file1","file2","file3"); include("/path/to/include/" . $safe_files[$_GET['include']] . ".p

Re: [PHP] Error disabling

2002-10-04 Thread Holger Heinze, Portalmeister GmbH
Hi there, i use this line in my code. #error_reporting(E_ALL); // set to --> (E_ERROR) (E_WARNING) (E_PARSE) (E_NOTICE) (E_CORE_ERROR) (E_CORE_WARNING) (E_ALL) check out the docs: http://www.php.net/manual/en/function.error-reporting.php holger - Original Message - From: "Davíð Örn Jó

Re: [PHP] Good Practice: Variables, Error Reporting and Security

2002-10-04 Thread Maxim Maletsky
On Fri, 4 Oct 2002 20:50:32 +1000 Adam Royle <[EMAIL PROTECTED]> wrote: > Hi All, > > I have been a subscriber of php-db for quite some time, and I have seen > MANY ppl ask why their variables aren't being passed though, etc, due > to register_globals, etc, blah blah blah > > I have kept my

Re: [PHP] Need to move all MySQL tables to another server

2002-10-04 Thread Jason Wong
On Friday 04 October 2002 18:58, Peter Janett wrote: > I'm upgrading a web server, and need to move all the MySQL data from the > old box to the new one. I have approx. 50 databases, some of which have a > lot of tables in them. > > I know I can write a script to list all the databases, then expo

Re: [PHP] Unix passwd file

2002-10-04 Thread Josep R. Raurell
I found this code in a web (or somthink like this), but can remever where to give the credits, sorry. include_once('/etc/php/bases.php'); function autentifica($user,$pass) { global $db1Host, $db1User, $db1Pass; $auth = false; mysql_connect($db1Host,$db1User,$db1Pass) or die

[PHP] Re: Need to move all MySQL tables to another server

2002-10-04 Thread lallous
With the mysqldump utility (comes with mysql) you can backup/restore any database. I don't know if you can tell it to dump all databases and their tables too. If you've got root access, you can simply copy the 'data' (i.e: C:\mysql\data) from a server to another. good luck, Elias "Peter Janett"

[PHP] Re: Installing PHP

2002-10-04 Thread lallous
did you try www.phpbuilder.com for how to install PHP /win ? Elias, "Dan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to create a message board. I setup a windows 2000 server and > installed IIS. In order to setup this messageboard i need to hav

Re: [PHP] Error disabling

2002-10-04 Thread Maxim Maletsky
Error Reporting : php.net/error_reporting looks like this: error_reporting(0); // for outputting nothing error_reporting(55); // PHP4's default error_reporting(E_ALL | E_NOTICE); // for anything PHP can complain of Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins

[PHP] Need to move all MySQL tables to another server

2002-10-04 Thread Peter Janett
I'm upgrading a web server, and need to move all the MySQL data from the old box to the new one. I have approx. 50 databases, some of which have a lot of tables in them. I know I can write a script to list all the databases, then export the sql for each database, then each table in it, then the

Re: [PHP] Unix passwd file

2002-10-04 Thread lallous
Peter, I think he's stuck with the parsing part? you can file() the /etc/passwd file then explode() it and add the username,passhash parts and/or more values into the mysql table. Elias, "Peter Janett" <[EMAIL PROTECTED]> wrote in message 026a01c26b94$7b45d0a0$55285742@peters">news:026a01c26b94

Re: [PHP] Unix passwd file

2002-10-04 Thread Jakob Breivik Grimstveit
Scott wrote: >[...] does anyone know if I populate a MySQL >table with the login/password can php then use that encrypted password to >validate users? > > should be the answer to your questions. -- jakob -- PHP General Mailing List (ht

Re: [PHP] Error disabling

2002-10-04 Thread John Wards
A quickie woudl be put an @before every function that would report an error like mysql_query etc John On Friday 04 Oct 2002 11:51 am, Davíð Örn Jóhannsson wrote: > I need to be able to disable error reporting on one page with php, I > just don’t remember how to do this, if I remember correctly

Re: [PHP] Unix passwd file

2002-10-04 Thread Peter Janett
You can just put the username and password in the MySQL database as normal text, then build your applications that are reading them to check the passwords with the UNIX Crypt function. In other words, just as your passwords are stored in a plain text file, store them in plain text in the db. The

[PHP] Error disabling

2002-10-04 Thread Davíð Örn Jóhannsson
I need to be able to disable error reporting on one page with php, I just don’t remember how to do this, if I remember correctly I could call some function in the begining of a php doc and tell it not to disply any errors that occur while parsing the doc.

[PHP] Good Practice: Variables, Error Reporting and Security

2002-10-04 Thread Adam Royle
Hi All, I have been a subscriber of php-db for quite some time, and I have seen MANY ppl ask why their variables aren't being passed though, etc, due to register_globals, etc, blah blah blah I have kept my eyes open reading all the material I can, and I understand the security implications of

  1   2   >