RE: [PHP] Re:[PHP] Installation on win32

2001-02-13 Thread Maxim Maletsky
have you read my previouse post? I bet - That's the problem Cheers, Maxim Maletsky -Original Message- From: Sean Kennedy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:02 PM To: PHP Mailing List Subject: [PHP] Re:[PHP] Installation on win32 Nah, I have windows s

RE: [PHP] about session

2001-02-13 Thread Maxim Maletsky
go to PHP.net/downloads.php download the newest version and install it. Follow all the instruction in install file VERY carefully so nothing funny happens. Cheers, Maxim Maletsky -Original Message- From: JW [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 4:45 PM To: [EMAIL

[PHP] Want alumini software

2001-02-13 Thread Ripal Kadakia
Hey guys, where can i find php program for alumini. Ripal

RE: [PHP] Installation on win32

2001-02-13 Thread Maxim Maletsky
add this into your httpd.conf file: ## PHP 4.0.3pl1 AddType application/x-httpd-php .php .phtml .php3 .html .inc AddType application/x-httpd-php-source .phps Cheers, Maxim Maletsky -Original Message- From: S

[PHP] Re:[PHP] Installation on win32

2001-02-13 Thread Sean Kennedy
Nah, I have windows showing me the extentions, so that wouldn't be a problem. (Though I checked, cause you never know...) And I restart apache. Actually, I restarted my machine, no dice. This is driving me crazy. I have followed the instructions TO THE LETTER. Several Times I might add. I j

Re: [PHP] about session

2001-02-13 Thread JW
how can i update the php version 3 to version 4 in linux? whether should i update Apache and SSL too? thank you! -- 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-

[PHP] about session

2001-02-13 Thread JW
how can i update the php3 to php4 in linux? thx! -- 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 PROTECTED]

Re: [PHP] Installation on win32

2001-02-13 Thread Julie Meloni
Make sure you do not have a hidden file extension of *.txt on the end of your script. If you don't, then the problem is in httpd.conf, or you didn't restart Apache after making changes to httpd.conf. Sounds silly, but that ol' hidden file extension thing gets people ALL the time. Swear. > N

[PHP] SOAP

2001-02-13 Thread Christopher Cheng
Is there any development of SOAP extension to PHP? -- 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 PROTECTED]

[PHP] SOAP

2001-02-13 Thread Christopher Cheng
Is there any development of SOAP extension to PHP? -- 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 PROTECTED]

Re: [PHP] about session

2001-02-13 Thread Ankur Verma
No! php sessions functions won't work before Version 4 to implement sessions in versions of php before version 4, you could use phplib best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "JW" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

[PHP] Installation on win32

2001-02-13 Thread Sean Kennedy
Ok, I am trying to install php4 on a win32 system as a module for apache. I have followed all the instructions for both apache and php. Now, when I load up a page, it is blank, and when I view the source, I see my php file. For example... Now, when I load this in my browser, I see this as the

RE: [PHP] about session

2001-02-13 Thread Maxim Maletsky
Sessions were introduces in PHP4. In PHP3 only PHPLIB could do this kind of job which wasn't a part of the package. Cheers, Maxim Maletsky -Original Message- From: JW [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 3:34 PM To: [EMAIL PROTECTED] Subject: [PHP] about sessio

[PHP] about session

2001-02-13 Thread JW
i want to know whether session is not work before the version php4? thx! -- 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 PROTECTED]

Re: [PHP] re:linebreak

2001-02-13 Thread Steve Werby
"Deependra B. Tandukar" <[EMAIL PROTECTED]> wrote: > I did with . "\r\n" too is not giving a new line. Actually "\n" does create a newline. If you view the source code of the web page from the browser you'll see that it works. "\n" is not an HTML tag. It's not designed to create a newline in th

[PHP] mail not sending to multiple address

2001-02-13 Thread Peter Houchin
Can some one please have a look through this and give me a step in the right direction asto why my mail script won't cc or bcc. I've checked with the mail server admin and he said as far as the email server is concerned it supports multiple email address.. it will only send to the $address but n

Re: [PHP] Include

2001-02-13 Thread Ankur Verma
you should try the setting for include_path in php.ini as include_path =" /usr/share/php:./" note the addition of './' in the include path. this would allow php to include the files in the current directory as well, which is the case I guess with the phorum scripts. regards best regards Ank

Re: [PHP] PHP 4 on RedHat 7

2001-02-13 Thread scottrus
Mike - As root run /sbin/ldconfig -v > /tmp/libs.txt then check the /tmp/libs.txt file to ensure that xmltoc was actually found. If it's not and it is on your drive then verify the paths in /etc/ld.so.config and run /sbin/ldconfig -v again after making any changes. libxml != xmltok afaik. -- Sc

Re: [PHP] Cookies

2001-02-13 Thread Ankur Verma
when the cookie is not set, the $HTTP_COOKIE_VARS will not have an index 'getdwgnum' maybe you should try it this way "") { $str = "where Cook = $cookieinfo"; $cx=odbc_pconnect("doc","",""); } else setcookie ("getdwgnum", $cook,time()+28800); ?> this code i

Re: [PHP] Any image drawing tutorials anywhere?

2001-02-13 Thread Ankur Verma
you might want to take a look at imagemagick http://www.wizards.dupont.com/cristy/ImageMagick.html regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Lucas Persona" <[EMAIL PROTECTED]> To: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, Fe

Re: [PHP] PHP 4 on RedHat 7

2001-02-13 Thread Michael Stearne
That's crazy because I am doing the same exact thing right now (compile with PDF on RH 7 and having problems.) Anyway PDF and everything compiles fine on RH 6.2 but I have had some problems on 7. What I did is: Install mySQL Configure and install Apache (my configure looks like this): ./configur

[PHP] re:linebreak

2001-02-13 Thread Deependra B. Tandukar
Thanks! I did with . "\r\n" too is not giving a new line. DT

Re: [PHP] Line Break

2001-02-13 Thread John Monfort
try \r "\r\n" is equivalent to you pressing the return key. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- On Wed, 14

Re: [PHP] Line Break

2001-02-13 Thread David Robley
On Wed, 14 Feb 2001 14:04, Deependra B. Tandukar wrote: > Greetings! > > I know "\n" gives the new line and "\t" gives the tab. Is there any > other code for them because this is not working in the web server where > I host my web pages? > > Looking froward to hearing from you. > > Regards, > DT

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread Aaron D. Turner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ah, figured out the problem. MAX_FILE_SIZE is in BYTES not Kilobytes. Any file >5K was killed. - -- Aaron Turner <[EMAIL PROTECTED]|synfin.net|linuxkb.org> URI:www.synfin.net They that can give up essential liberty to obtain a little temporary s

[PHP] Line Break

2001-02-13 Thread Deependra B. Tandukar
Greetings! I know "\n" gives the new line and "\t" gives the tab. Is there any other code for them because this is not working in the web server where I host my web pages? Looking froward to hearing from you. Regards, DT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] is the list still up?

2001-02-13 Thread Toby Butzon
Check out php.net/round and it's relatives --Toby LDL Enterprise wrote: > > I am having trouble getting this peice of code to only show 2 decimal > places. > > echo $cart->cart_total($table, $scid) * .0625; > > The class returns 100.50 and the above code returns 6.28125 > > Any help taking t

[PHP] ezmlm response (fwd)

2001-02-13 Thread John Monfort
Hello everyone, I've just joined this list, so I thought I'll introduce myself. I won't bore you with the long life story, so here's the quick summary: -Electrical + Computer Engineering student -web development for 6+ years (started out with the VI editor) -HTML,C/C++,PERL

Re: [PHP] mysql_error() not really helping

2001-02-13 Thread David Robley
On Wed, 14 Feb 2001 13:01, Christian Dechery wrote: > I'm having a little trouble here developing and running queries. > > I spent some time developing in ASP, and whenever there was something > wrong with a query, the script halted, and the error message - from > ODBC, tye sql syntax error - was

[PHP] is the list still up?

2001-02-13 Thread LDL Enterprise
I am having trouble getting this peice of code to only show 2 decimal places. echo $cart->cart_total($table, $scid) * .0625; The class returns 100.50 and the above code returns 6.28125 Any help taking the 125 off would be appreciated. Thanks. _ ___ | | | \ | | | |__ | |> || |__ |_

[PHP] is the list still up?

2001-02-13 Thread LDL Enterprise
_ ___ | | | \ | | | |__ | |> || |__ |||___/ || Larry L. [EMAIL PROTECTED] www.ldlenterprise.com -- 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 administra

Re: [PHP] Random String of n Length

2001-02-13 Thread Randall Blaine Goguen
Generate a Random Password with PHP http://www.linuxguruz.org/z.php?id=305 # Note: 1. You can add more charactors, numbers or lower case charactors # to '$possible_charactors' is you wish. # 2. You can change the string length, for example, # echo 'Random_Password(16);' for 16 charactors.

Re: [PHP] passthru environment variables

2001-02-13 Thread Rich Puchalsky
OK, I finally found it. Someone else here recommended setenv -- it's actually putenv. putenv was *not* found through any search I could make on the PHP Web site involving the word environment and so on, I found it through Google. And it's apparently documented under "PHP Options and Information

[PHP] Random String of n Length

2001-02-13 Thread Jonathan Sharp
I want to generate a random string of characters of n Length...what's the easiest way to do this? Thanks, -Jonathan -- 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,

[PHP] Short tags - proper name?

2001-02-13 Thread Toby Butzon
Greetings, I was just wondering if there's a "proper" name for what I've been calling the "short equals tag" ( 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 PROTECTED]

Re: [PHP] Bad Practices

2001-02-13 Thread Mark Charette
From: "Philip Olson" <[EMAIL PROTECTED]> > They're very useful. Also, regarding SQL, don't do "SELECT * ..." all the > time as it's overkill if not all fields are being used. And, in fact, doing a "SELECT *" ends up precluding most optimizations within a query engine! Selecting only what you rea

Re: [PHP] mysql_error() not really helping

2001-02-13 Thread scottrus
Christian - You need to be checking the return values of the mysql_*() functions. Make sure you're not calling them with a @mysql_*() as that will disable error reporting. Perhaps you should give us some examples of what's failing and how? Also, if the server isn't yours the server admin may ha

Re: [PHP] PHP 4 on RedHat 7

2001-02-13 Thread scottrus
Mike - You're not 100% specfic (or I'm not 100% clear) on what you've tried to do to fix this but here's a basic recipie which should work for you. (it has for me.) 1) Get the current php src.rpm file from the Red Hat 7 errata and install it. 2) cd /usr/src/redhat/SPEC/ and edit the php.spec fil

RE: [PHP] Upload form

2001-02-13 Thread Maxim Maletsky
You can't do it (at least not that I know) How will you make a default value not knowing the File System of a user's local machine? Try something different... Cheers, Maxim Maletsky -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001

RE: [PHP] Using a variable in a variable

2001-02-13 Thread Maxim Maletsky
Often people try to do that ... but I also know that, array variables were invented exactly for doing this kind of jobs. Try to implement Arrays more often.. www.php.net/array Cheers, Maxim Maletsky -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Feb

RE: [PHP] Would Like to know

2001-02-13 Thread Maxim Maletsky
If you run it from command line then yes. If you instead doing it from your browser then this is where it will be sent. You could use a $variable .= 'staff' system, so before an echo $variable you can also precreate a file. Cheers, Maxim Maletsky -Original Message- From: Barry Fawthro

RE: [PHP] ereg_replace

2001-02-13 Thread Maxim Maletsky
it replaces 'This' with 'That', some you tell to ereg what he should think 'This' is and what to replace it with. It does only one replacement at a time. Cheers, Maxim Maletsky -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:31 AM

RE: [PHP] parse speed vs require speed

2001-02-13 Thread Maxim Maletsky
My advise to you is to care about the portability of software rather then it's speed. include() and require() are not too painful, not too slow. You can easily have 10 of them and by that your page will be slower by only few dozens of milliseconds. However doing so you could reuse some parts of yo

RE: [PHP] Include

2001-02-13 Thread Maxim Maletsky
You need to add a . (dot) to your include path in PHP.ini... Cheers, Maxim Maletsky -Original Message- From: Fabian Fabela [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 2:39 AM To: [EMAIL PROTECTED] Subject: [PHP] Include Hello, I have php 4.0.3pl1. I am trying to i

RE: [PHP] hidden form field.

2001-02-13 Thread Maxim Maletsky
I'll give you an example of it's use: You have a submission form where you need to confirm: you have a form on page 1: field 1... field 2... field 3... and submit button.. When people submit the data it goes to page 2 where a loop will take all that, create a hidden forms and will also list th

[PHP] PHP 4 on RedHat 7

2001-02-13 Thread Mike Tuller
I'm at a loss for this one. I can't seem to get PHP 4 on RedHat 7. I can get the rpm to install and work, but if I try to configure myself, it never works. Everything says to configure with apxs, but there is no apxs. What is strange though is if I look at how the rpm configures PHP, it configures

RE: [PHP] rename?

2001-02-13 Thread Maxim Maletsky
I think you can rename it by using a full path. Have you tried it yet? Cheers, Maxim Maletsky -Original Message- From: Miguel Loureiro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:02 AM To: php-gen Subject: [PHP] rename? Hi , having a hierarchy of directories, li

[PHP] Fast Template woes

2001-02-13 Thread Joseph H Blythe
Hey all, I got a rather strange probelm with fast template, I won't go into great detail unless someone has had a simular experience while using define_dynamic. Basically I have written a site which totally uses Fast Templates and some sections use define_dynamic which work perfectly, my probl

[PHP] mysql_error() not really helping

2001-02-13 Thread Christian Dechery
I'm having a little trouble here developing and running queries. I spent some time developing in ASP, and whenever there was something wrong with a query, the script halted, and the error message - from ODBC, tye sql syntax error - was printed along with the line of code. In PHP that's not how

Re: [PHP] Re:LOCK TABLES x COMMIT/ROLLBACK

2001-02-13 Thread Christian Dechery
At 11:51 14/2/2001 +1300, Phil Daintree wrote: >This also troubles me i have read and read the docs on this. It seems that >Lock tables >prevents other threads interfering with your transaction your inserts >will not be >compromised by another thread deleting or updating data inconsistent with

[PHP] Re: [PHP-WIN] INSERT into MSSQL Server

2001-02-13 Thread Frank M. Kromann
It is only the ' charactor there has a "problem" you have to excape any special character before inserting. the text Joe's should be inserted like this" INSERT INTO table1 (int_field, char_field) VALUES (1, 'Joe''s') A single quote is escaped by an extra single quote. - Frank >I trying to in

Re: [PHP] Newbie -- tutorial exercises reveal too much -- pdf download not "saveable"

2001-02-13 Thread David Robley
On Wed, 14 Feb 2001 07:20, Info wrote: > Hi, > > I don't have adequate space to have PHP and MySQL on my local machine. > Yes, need a new and better box. So, used my net site for some > exercises. That is not satisfactory because I must reveal password and > such in plain text to execute a php/

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Doug Budny
Basically I'm trying to get 3 session vars on a page in a sub directory, clientid, clientname and rnum. I do a session_start() at the beginning of every page, I also do a session_id($HTTP_COOKIE_VARS['sessId']) on each page, with the sessid being the same. But when I do "echo session_id()" on

Re: [PHP] GD library

2001-02-13 Thread Michael McGlothlin
Have you tried Apache Toolbox? If building under Unix w/ Apache as your web server it can be a great time saver and if your running into problems you can look how it builds something and see how to make it work so you'll know later. You can find it easily from Freshmeat.net. David Robley wrote

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread Aaron D. Turner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 13 Feb 2001, jason cox wrote: > Aaron, > > Are you processing the file on the page you're > "posting" to? Yep. A little more info this time. Ok this makes no freaking sense to me: I can upload my /etc/passwd file - -rw-r--r--1 roo

Re: [PHP] GD library

2001-02-13 Thread David Robley
On Wed, 14 Feb 2001 00:23, Rahul Hari Bhide wrote: > Hi , > I am configuring php with the --with-gd option . > My libgd.a is sitting in /usr/local/lib and other header files in > /usr/local/include . > > ./configure --with-gd=/usr/local/lib gives me the following error : > > checking whether

RE: [PHP] Upload form

2001-02-13 Thread Brandon Orther
I am trying to do that with a file input not a text box. So if anyone has done this with a file input box please e-mail me! -Original Message- From: jason cox [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:24 PM To: Brandon Orther Cc: [EMAIL PROTECTED] Subject: Re: [PHP] U

Re: [PHP] could anyone please help me with this date coding?

2001-02-13 Thread David Robley
On Wed, 14 Feb 2001 09:26, Charles Mulford wrote: > Hi all! could anybody help me? I am fairly new to PHP and I inherited > these scripts from someone who doesn't work with me anymore. They seem > to puke on this portion while running them on win2k, latest php4 and > mysql. On Linux platform they

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread jason cox
Aaron, Are you processing the file on the page you're "posting" to? Could you send your processing code so we can have a look? If you're still having problems, I can send you an example. Jason --- "Aaron D. Turner" <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

Re: [PHP] Upload form

2001-02-13 Thread jason cox
Brandon, You can set a default value for a form field by doing something like the following: Hope that helps, Jason --- Brandon Orther <[EMAIL PROTECTED]> wrote: > Hello, > > This is off topic, but I have been working on it all > day with php and can't > seem to figure it out. Does anyone

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Chris Lee
I dont have to call session_register() on every page, should have to, just call session_start() thats it. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Michael McGlothlin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">n

RE: [PHP] session encode

2001-02-13 Thread Peter Houchin
Its sort of what i wondered when the session is started it makes a file in say c:/temp (in NT machine) what i wondered is how do you encode the information in there ... the info in the file is something like user|s:6:"username";pass|s:6:"password";email|s:6:"email address"; and also i can't g

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Chris Lee
mine is alot simpler and works fine, try this. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Doug Budny" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm having a strange problem with sess

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Michael McGlothlin
I think you might need to session_register () the variables on each page you want to use them, not just once per session. Doug Budny wrote: > I'm having a strange problem with sessions, it appears that they are > not propagating to the next page. When I run the login page the sess > vars get

[PHP] Going backwards with sessions.

2001-02-13 Thread Doug Budny
I'm having a strange problem with sessions, it appears that they are not propagating to the next page. When I run the login page the sess vars get registered, the session_id() get's set, and the cookie sessId get's set. However when I go to the order page in a subdirectory only the cookie se

Re: [PHP] converting a date to a string format

2001-02-13 Thread Jared Howard
date("Ymd", mktime(0,0,0,date("d"),date("m")-14,date("Y"))); At 03:57 PM 2/13/01 -0500, Don wrote: >Does someone have a snippet of code that retrieves today's date, >subtracts 14 days and converts the result to a string in the form >"MMDD"? > >If possible, please reply to my email. > >Thanks,

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread Aaron D. Turner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 13 Feb 2001, Michael McGlothlin wrote: > A lil clip from Devedge.. you need a VALUE="" field along w/ a NAME="" > maybe? A VALUE= isn't required for TYPE=file (and adding it didn't solve my problem). > This places an element on an HTML

Re: [PHP] Here you have, ;o)

2001-02-13 Thread Josh G
Definitely, I agree, but I think it would be better if WSH was simply patched, perhaps with a way to sign scripts, and non-expert users can't give them root permissions, and that scripts should not ever be able to send emails without a user confirmation, no matter what permissions they have. Perha

Re: [PHP] session encode

2001-02-13 Thread Michael McGlothlin
You don't need to use session_encode () in most situations. You can use sessions and they'll automaticlly encode your variables. Is that what you wondered? Peter Houchin wrote: > With session incode do you have to have it on every page where you have a > session_start() ? > > Peter > --

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread Michael McGlothlin
A lil clip from Devedge.. you need a VALUE="" field along w/ a NAME="" maybe? This places an element on an HTML form that lets the user supply a file as input. When the form is submitted, the content of the specified file is sent to the server as the value portion of the name/value pair for

[PHP] session encode

2001-02-13 Thread Peter Houchin
With session incode do you have to have it on every page where you have a session_start() ? Peter

[PHP] Still can't talk to the Oracle

2001-02-13 Thread Kristofer Widholm
I'm setting up a back end production system for a television show, and have been given space on a development server with PHP 4 and Oracle support compiled in (but not the OCI libraries). The Oracle admin have given me my user name (let's say ora_user), a TNS name (tns_name), and a password (o

Re: [PHP] URGENT! Regarding file writing

2001-02-13 Thread Michael McGlothlin
Without knowing exactly what you're doing I'd say it's easiest to read the entire file into an array, modify the line you want, and write the file back out. Then you could easily modify any line you wanted. Otherwise check out fseek () in the PHP manual. whatever wrote: > How to do that? I me

[PHP] file upload temp file is and isn't there

2001-02-13 Thread Aaron D. Turner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Solaris 7 Apache 1.3.14 PHP 4.0.4p1 For the life of me I can't figure out what's going on. I have: Choose File: and I can try to upload a file, but then the HTTP_POST_FILES hash doesn't get properly populated and no file is s

Re: [PHP] URGENT! Regarding file writing

2001-02-13 Thread whatever
How to do that? I mean how to set file pointer to certain line? I've tried ftel() but it returns starnge number like 17534 decrementing it causes file-handle error Yes i do have adequate permissions to modify the file in question on Win2000 10x in advance Nemanja NOTE: My email is incorrect. Plea

[PHP] Upload form

2001-02-13 Thread Brandon Orther
Hello, This is off topic, but I have been working on it all day with php and can't seem to figure it out. Does anyone know how to give a file field in a form a default value? I am trying to have a script automatically fill in some upload fields on my form. Thank you, --

Re: [PHP] URGENT! Regarding file writing

2001-02-13 Thread Michael McGlothlin
Did you try taking the line you wanted to change and doing a minus one to get the right line number? Not sure why windows won't change the file. I'm assuming you have the proper permissions to do what your trying to do? whatever wrote: > Hi! > I would like to know how to overwrite line in fil

[PHP] could anyone please help me with this date coding?

2001-02-13 Thread Charles Mulford
Hi all! could anybody help me? I am fairly new to PHP and I inherited these scripts from someone who doesn't work with me anymore. They seem to puke on this portion while running them on win2k, latest php4 and mysql. On Linux platform they work as they are supposed to. thanks in advance! Charles

[PHP] URGENT! Regarding file writing

2001-02-13 Thread whatever
Hi! I would like to know how to overwrite line in file which matches certain condition. Best thing i managed so far is to write line AFTER the line i wanted to overwrite under Linux. No such luck under Win2000 which refuses to write anything to a file but file date/time property has been changed.

[PHP] Re:LOCK TABLES x COMMIT/ROLLBACK

2001-02-13 Thread Phil Daintree
This also troubles me i have read and read the docs on this. It seems that Lock tables prevents other threads interfering with your transaction your inserts will not be compromised by another thread deleting or updating data inconsistent with your SQL. The snag for me is that all obscure input fr

Re: [PHP] SELECT statement

2001-02-13 Thread Michael McGlothlin
Try or print mysql_error () rather than or die ( print mysql_error () )? Peter Houchin wrote: > I've tried this but mysql_error() doesn't give me any errors, i tried my sql > line at the command line with success here is my code if some one could have > a look at it and give some suggestions as

Re: [PHP] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Kurth Bemis
At 04:17 PM 2/13/2001, Michael McGlothlin wrote: can i ask why you're doing this - it seems like a waste of resources to me. ~kurth >I'd like to pipe and parse my Apache logs through PHP into a MySQL db. Is >there a way to do this automaticlly for each entry and would that cause a >major perf

RE: [PHP] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Thor M. Steindorsson
try this script: http://www.wokzilla.com/usage/usage.php3 -Original Message- From: Michael McGlothlin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Piping/parsing Apache logs though PHP? I'd like to pipe and parse my Apache lo

[PHP] Re: [PHP-DB] installing MySQL with PHP4.0.3pl1

2001-02-13 Thread Darryl Friesen
> I'm trying to get MySQL to work with php, however I'm running php on a WinNT > box and I was wondering if I needed to install MySQL in a specific location > on the hard drive? The reason I as is that when I try to connect to a > database I create in MySQL in php it doesn't find any database. I

Re: [PHP] Would Like to know

2001-02-13 Thread Chris Lee
-- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Barry Fawthrop"" <[EMAIL PROTECTED]> wrote in message 00ad01c095fc$d6865940$[EMAIL PROTECTED]">news:00ad01c095fc$d6865940$[EMAIL PROTECTED]... Can PHP direct the output to a file eg

Re: [PHP] converting a date to a string format

2001-02-13 Thread Philip Olson
try something like : function pastDate($days,$format='Ymd') { $secs = ( $days * 86400 ); return date( $format,time()-$secs ); } print pastDate(14); Regards, Philip Olson http://www.cornado.com/ On Tue, 13 Feb 2001, Don wrote: > Does someone have a snippet of code that retrieves to

RE: [PHP] SELECT statement

2001-02-13 Thread Peter Houchin
I've tried this but mysql_error() doesn't give me any errors, i tried my sql line at the command line with success here is my code if some one could have a look at it and give some suggestions as to how i can get the email ... Thanks again Peter eRentals Unable to connect to ser

[PHP] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Michael McGlothlin
I'd like to pipe and parse my Apache logs through PHP into a MySQL db. Is there a way to do this automaticlly for each entry and would that cause a major performance loss to the web server? If not does anyone know the best way to parse the server log? I'd like to do somerthing like move the se

Re: [PHP] php and xml

2001-02-13 Thread Chris Lee
testing testing"); ?> works for me on my linux box. have you checked your permisions ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Jan Grafström"" <[EMAIL PROTECTED]> wrote in message 96c6t7$52l$[EMAIL PROTECTED]">news:96c6t

[PHP] RE: [PHP-DB] installing MySQL with PHP4.0.3pl1

2001-02-13 Thread Thor M. Steindorsson
a rule of thumb with windows boxes: always install software in the default location :) in this case that would be c:\mysql cheers, Thor. -Original Message- From: Paulson, Joseph V. "Jay" [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 2:19 PM To: PHP-DB-LIST; [EMAIL PROTECTE

Re: [PHP] php and xml

2001-02-13 Thread Nathan Cassano
Steve, Did you take a look at the raw data returned by the fsockopen file pointer. There may be some http headers that are tripping up the xml parser. -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 12:07 PM To: PHP Mailing Lis

[PHP-CVS] cvs: php4 /pear/Crypt CBC.php

2001-02-13 Thread Colin Viebrock
cmv Tue Feb 13 13:53:48 2001 EDT Modified files: /php4/pear/CryptCBC.php Log: initialize two variables Index: php4/pear/Crypt/CBC.php diff -u php4/pear/Crypt/CBC.php:1.5 php4/pear/Crypt/CBC.php:1.6 --- php4/pear/Crypt/CBC.php:1.5 Fri Feb 2 13:52:21

Re: [PHP] INSERT into MSSQL Server

2001-02-13 Thread Michael McGlothlin
Have you tried addslashes () on the input lines before the insert? Conover, Ryan wrote: > I trying to insert some data into a MSSQL Server 7.0 database from Php. Some > of the data has various characters ', > . How can I tell SQL Server to > treat these characters as part of the input. > > Rya

[PHP] XML parsing problems..

2001-02-13 Thread Michael McGlothlin
I didn't see any responses to this the other day when I asked so this time I'll include source.. just cutting and pasting so hopefully nothing gets clobbered.. When I parse this lil bit of raw data it parses properly. You can trace it and see that it opens and closes the tags properly and that

RE: [PHP] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Balak, Frank
I don't know if this will do it for you, but try mod_log_mysql. This module logs all request to tables of your definition. It doesn't do the error log though. Frank -- Franklin J. Balak Jr. Quality Assurance Data Analyst Brown Printing Company Waseca Division Waseca,

[PHP] installing MySQL with PHP4.0.3pl1

2001-02-13 Thread Paulson, Joseph V. \"Jay\"
Hello everyone- I'm trying to get MySQL to work with php, however I'm running php on a WinNT box and I was wondering if I needed to install MySQL in a specific location on the hard drive? The reason I as is that when I try to connect to a database I create in MySQL in php it doesn't find any data

RE: [PHP] INSERT into MSSQL Server

2001-02-13 Thread Peter Houchin
in mysql i'd treat them as a char or varchar i would assume it would be the same in MSSQL -Original Message- From: Conover, Ryan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:32 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] INSERT into MSSQL Server I tryin

[PHP] INSERT into MSSQL Server

2001-02-13 Thread Conover, Ryan
I trying to insert some data into a MSSQL Server 7.0 database from Php. Some of the data has various characters ', > . How can I tell SQL Server to treat these characters as part of the input. Ryan Conover -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

[PHP] RE: Would Like to know

2001-02-13 Thread Sam Leibowitz
> Can PHP direct the output to a file > eg send the HTTP_USER_AGENT information to a file ?? Sure. Read the documentation for fopen(), flock(), and fwrite(). Then fwrite() out $HTTP_SERVER_VARS["HTTP_USER_AGENT"]. Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] RE: Your Opinion?! PHP4 coding style - Comment and Splitting source code

2001-02-13 Thread Mark Maggelet
On Tue, 13 Feb 2001 16:48:10 -0500, Sam Leibowitz ([EMAIL PROTECTED]) wrote: >My personal opinions: > >The effect of comments in code parsing speed is negligable. Never >hesitate >to put in a comment because you think it's going to slow down the >procedure. >If your speed requirements were that do

  1   2   3   >