[PHP] HTTP_POST_VARS truncated

2001-11-30 Thread mweb
Hello, To test the http/php setup on one of my computers I wrote a very simple html form, with two select fields, two text fields, and the submit field. Pushing submit the data are sent via POST method to an extremely simple PHP page which only contains something like: foreach (var, key) in

[PHP] Help with directory !

2001-11-30 Thread De Necker Henri
Hi there.Im cant just get to access a file in a directory form my localhost dir. The file : $loc = ./doos.txt i can access, but the following i can't : $loc = .\files\doos.txt What am i doibg wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread Andrey Hristov
I cannot compile this: try that : foreach ($HTTP_POST_VARS as $key = $var){ print VAR: $var KEY = $key; } Regards, Andrey Hristov - Original Message - From: mweb [EMAIL PROTECTED] To: phplist [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:03 AM Subject: [PHP] HTTP_POST_VARS

[PHP] mail-help

2001-11-30 Thread Chamarty Prasanna Kumar
-- 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] Re: Help with directory !

2001-11-30 Thread Fred
The first one looks like a *nix directory and the second one looks like a windows direcrory. Perhaps it will work if you switch your slashes around. Fred De Necker Henri [EMAIL PROTECTED] wrote in message

[PHP] Help - mail

2001-11-30 Thread Chamarty Prasanna Kumar
Hi all, using mail() function to send a mail using php. I want to send that mail so that the receiver should not see the FROM address or the mail should go without any FROM address. Please write with an example !! Thanking You, Regards, Kumar.

RE: [PHP] Re: Help with directory !

2001-11-30 Thread De Necker Henri
The first one works both ways!O and im working on windows This works fine : $loc = ./doos.txt This works fine : $loc = .\doos.txt The second one does work at all! Is it in the correct order/way? -Original Message- From: Fred [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 10:25 To:

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread Jason
try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key is

Re: [PHP] Help - mail

2001-11-30 Thread Jason
http://download.php.net/manual/en/ref.mail.php - Original Message - From: Chamarty Prasanna Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 1:28 AM Subject: [PHP] Help - mail Hi all, using mail() function to send a mail using php. I want

[PHP] Session Help

2001-11-30 Thread phantom
I am trying to set my session data to be stored in MySQL so I am using session_set_save_handler() which sets the six user-level session storage functions (which I have already defined). Will session_set_save_handler automatically run the appropiate storage function when required (like when i say

RE: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread De Necker Henri
Thanks Jason Jani!Both ur ways work! $loc = ..\files\poese.txt $loc = ..\\files\\poese.txt But another question that comes to mind is that why must i include the '..\' to move down to a sub-directory? I thought '..\' moves up a directory tree! This also works both ways : $loc =

Re: [PHP] LDAP sorting

2001-11-30 Thread Stig Venaas
The LDAP sorting code I posted a couple of days ago was a bit lacking. Here's a function that should work: function myldap_sort($data, $attr) { // -1 because of the count entry echo #, $n = count($data) - 1; for ($i=0; $i$n; $i++) { $a[$i]=$data[$i][$attr][0]; }

[PHP] Re: Help with directory !

2001-11-30 Thread De Necker Henri
Thanks Jason Jani!Both ur ways work! $loc = ..\files\poese.txt $loc = ..\\files\\poese.txt But another question that comes to mind is that why must i include the '..\' to move down to a sub-directory? I thought '..\' moves up a directory tree! This also works both ways : $loc =

Re: [PHP] database question

2001-11-30 Thread Jon Farmer
yeah good call on a type it should of been \s not \S -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Jim Musil [EMAIL PROTECTED] To: py [EMAIL PROTECTED] Cc:

Re: [PHP] Sending Form Result to File

2001-11-30 Thread Jason
just pico a file called myforms.csv or something. use the first line for you schema... name,date,comments,etc chmod the file to rw permissions or chown to nobody. $file = fopen(/home/myaccnt/public_html/protected/myforms.csv, w); fputs($file,

[PHP] payflow pro advice

2001-11-30 Thread Jason
Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or just exec() externally. I've read that Verisign

Re: [PHP] HTTP_POST_VARS truncated

2001-11-30 Thread mweb
reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key

Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Johan Holst Nielsen
Want to send mail through PHP script such that the receiver of that mail should not contain FROM header. I used mail() function with empty FROM header and even without FROM header, but the receiver is still getting FROM address as [EMAIL PROTECTED] You can't. The mail specification

[PHP] Student need help

2001-11-30 Thread Valentin V. Petruchek
Hello everyone! sorry, but thing i'm asking for is interesting for Ru.Net users only so i'm gonna write it in Russian: çÏÓÐÏÄÁ ÄÅ×ÅÌÏÐÅÒÙ! ðÏÍÏÇÉÔÅ ÓÔÕÄÅÎÔÕ - ÐÒÉÍÉÔÅ ÕÞÁÓÔÉÅ × ÓÏÃÉÏÌÏÇÉÞÅÓËÏÍ ÏÐÒÏÓÅ, ËÏÔÏÒÙÊ Ñ ÐÒÏ×ÏÖÕ × ÒÁÍËÁÈ ÉÚÕÞÁÅÍÏÇÏ ËÕÒÓÁ ÓÏÃÉÏÌÏÇÉÉ. ïÐÒÏÓ ÐÒÏ×ÏÄÉÔÓÑ ÎÁ ÔÅÍÕ ÉÓÐÏÌØÚÏ×ÁÎÉÑ

Re: Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Chamarty Prasanna Kumar
Thanks very much !! Smart solution !! yes, I don't want to get reply from that mail. Just looking for any solution..if u finds one please let me know. Regards, Kumar. On Fri, 30 Nov 2001 Johan Holst Nielsen wrote : Want to send mail through PHP

RE: [PHP] Student need help

2001-11-30 Thread De Necker Henri
Why does Russia have so much beautiful women? -Original Message- From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 12:45 To: [EMAIL PROTECTED] Subject: [PHP] Student need help Hello everyone! sorry, but thing i'm asking for is interesting for Ru.Net

[PHP] HELP URGENT VARS !!!

2001-11-30 Thread Olivier Masudi
$name1=a; $name2=b; I want to do this for($i=0;$i$nbname;$i++) echo \$name$i; output : a b where \$name$i= $name1 , $name2 , $name3 .. I try to print tha value of the vars $name1,. not the string $name1, Is it possible REM : The vars $name1, com from a

Re: Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Jon Farmer
Problem with that solution is some SMTP hosts will reject messages from domains that do not resolve to the sending SMTP host. I would recommend setting up a alias on sendmail and pipe all email to that address to /dev/null You would need to stress to your recipients that all replies to that

[PHP] Hoekom is jy so still??

2001-11-30 Thread De Necker Henri
Jy word net ryker om op jou ass te sit.n Rand kos nou R14,85. Wat se jy daar van? -- 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] fresh install woes

2001-11-30 Thread Caspar Kennerdale
I've insatlled mandrake 8.1 from the ISO's I downloaded frrom their site. Everything seems fine, but when I try to execute any software ie startx or even pico from the command line then I get a cannot be found message As I navigate through the directoires it seems that they have not been

Re: [PHP] HELP URGENT VARS !!!

2001-11-30 Thread Valentin V. Petruchek
?php $name1 = 'value1'; $name2 = 'value2'; $name3 = 'value3'; for ($i=1;$i=3;$i++) { eval (\$val = \$name$i;); echo $val.'br'; } ? Zliy Pes, http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Excel and PHP in Unix

2001-11-30 Thread Iván Toda Caraballo
Hello, I am using the Unix version of PHP, and i would write some information from the HTML in a Excel file. I was made this using COM functions in a Windows version of PHP and it works. But COM functions are only available on the Windows version of PHP. I want to know how I can

Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Johan Holst Nielsen
hmm, youre right. You can use this header maybe FROM: Do Not Reply nonexists@localhost The SMTP should be able to resolve localhost? Regards, Johan Jon Farmer wrote: Problem with that solution is some SMTP hosts will reject messages from domains that do not resolve to the sending SMTP

Re: [PHP] Verisign Payflow Pro? Freebsd... Any ideas?

2001-11-30 Thread GB Clark II
On Friday 30 November 2001 00:56, you wrote: Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or

[PHP] Validating mailing addresses

2001-11-30 Thread paul wilczynski
Joshua Hoover wrote ... I've been looking at a variety of software packages which allow you to validate U.S. mailing addresses against the USPS's database. Unfortunately, all of the products I've been able to find so far are Windows based and only support interfacing via COM. Have you checked

[PHP] How to display one line from a file rather than the whole lot

2001-11-30 Thread Kevin Garrett
Hi guys, I'm looking to edit this to just return one particular line rather than the whole file: ?php // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b . htmlspecialchars

[PHP] MySQL: copying entire columns

2001-11-30 Thread Tom Churm
hi, i've created a mysql table from an excel csv dump and the field-order is not the way i want it. could someone possibly give me a hint on how i can create a copy of an entire column, place it in the position where i want in my table, and then delete the original column? i'm using phpMyAdmin

RE: [PHP] HELP URGENT VARS !!!

2001-11-30 Thread Nicolas Guilhot
You can also use this syntax : $var1=variable 1; $var2=variable 2; for ($i= 1; $i 3; $i++) { echo ${var$i}; } -Message d'origine- De : Olivier Masudi [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 30 novembre 2001 12:02 À : [EMAIL PROTECTED] Objet : [PHP] HELP URGENT VARS !!!

Re: [PHP] Excel and PHP in Unix

2001-11-30 Thread Tom Churm
hi, i just wanted to put in a plug for my own code to generate dynamic Excel or Word files here. it's ultra easy to use: http://sourceforge.net/projects/php-doc-xls-gen/ thanks, tom Pavel Jartsev wrote: Iván Toda Caraballo wrote: Hello, I am using the Unix version of PHP,

Re: [PHP] MySQL: copying entire columns

2001-11-30 Thread Miles Thompson
Tom It's a relational database, field column position does not matter. One Date's 121 rules, if I remember correctly. In terms of human readability, it sometimes matters. Check the MySQL manual, I think there's an example of this under the ALTER TABLE command. But really, position doesn't

[PHP] Re: db connect

2001-11-30 Thread Ian
Fred, I am more confused now that I know the script works your end. I have the sample_db setup correctly, as I can connect to it if I change the $default_dbname value to hold the sample_db. Whatever I put in the $default_dbname variable I can connect to no trouble. Passing the database as an

Re: [PHP] MySQL: copying entire columns

2001-11-30 Thread Tom Churm
hi, miles: i think you helped me hit on something big here. each time i've been using INSERT statements in my php code, i've been addressing the field names in exactly the order they appear in my mysql table. ie: i've been using $sql = Insert into $table_name(Name, Address, Phone)

Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Johan Holst Nielsen
I am talking about the final SMTP host.. it will do a reverse lookup on the From: domain and if it dont resolve to the IP of the sending STMP host it will reject it. yes I know. But it the final SMTP tries to resolve the host (localhost) it will get a response from it self? I haven't tried

Re: [PHP] MySQL: copying entire columns

2001-11-30 Thread Andrey Hristov
?php $which_column = 0; // starting from 0 $fname = some.csv; $out_fname = some_new.csv; $cschar = ,; $f_cont = file($fname); foreach ($f_cont as $key =$value){ $tmp = explode($cschar,trim($value)); $tmp[count($tmp)] = $tmp[$which_column]; unset($tmp[$which_column]); $out_cont[]

Re: [PHP] How to display one line from a file rather than the whole lot

2001-11-30 Thread Hank Marquardt
The key will be to put some kind of 'if' around your echo statement, but since you didn't say what the criteria for display is it's pretty tough to help any further. If the criteria is content driven, preg_match or ereg are you're answer, if it's the X'th line in the file then you could probably

[PHP] Re: How to display one line from a file rather than the whole lot

2001-11-30 Thread Julio Nobrega Trabalhando
Dirty trick: ?php $line_I_want = '47'; // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { // echo bLine $line_num:/b . htmlspecialchars ($line) . br\n; if ($line_I_want == $line_num) {

[PHP] php4 on pws?

2001-11-30 Thread Maciej Wypij
Hello, does anybody know how to get php4 work on a pws? I only know how to make php3 (with binaries from www.php.net) work on a pws. Maciej Wypij -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] is_int with HTML FORM

2001-11-30 Thread TD - Sales International Holland B.V.
Hey there, First of all please CC me as I'm no longer a member on this list. Sorry about that but I receive too much :-(. Please bear with me as I'm a new PHP scripter on the block Ok for the question. I was under the impression that PHP would automatically select the type for the vars

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
Ok for the question. I was under the impression that PHP would automatically select the type for the vars to use. However if I have a field in my form where I insert only a 4 in I'd expect the var to be an integer (or atleast some other whole number type of var). However is_int fails on

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
or remove the {$len} to not check for a length Sorry I meant replace the above with * m: -- 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

[PHP] help with images

2001-11-30 Thread Gav
First of all please excuse my ignorance if anything that I ask here is impossible or a common question, I have searched but not found the answer. I'm working with composite images which at the moment are dynamically produced and set in html layers. The problem is that I want the user to be able

Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Jim Musil
If you mail via pfsockopen, then you specify the sender which must be real, but you also specify the From: header which can be anything you want. ex: $smtp_server = your.smtp.server; $port = 25; $mydomain = yourdomain.com; $sender = [EMAIL PROTECTED];

[PHP] Re: HTTP_POST_VARS truncated

2001-11-30 Thread CC Zona
In article GNLT20$[EMAIL PROTECTED], [EMAIL PROTECTED] (Mweb) wrote: foreach (var, key) in HTTP POST VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two

[PHP] chown/chgrp not working

2001-11-30 Thread Paul Warner
I have a client that I made a image uploader/thumbnailer for that insists on using FrontPage. In order to make FP happy, I need to set the owner to 'nobody' and the group to 'site3' which are uid 99 and gid 117. The uploaded file is set as httpd/root and the thumbnail created by the script

[PHP] Re: HTTP_POST_VARS truncated

2001-11-30 Thread mweb
One or more options in each select field are selected, right? Fields having no values (such as unchecked radio buttons, etc.) don't get passed. Yes, I know empty values are not passed, and, yes, the options were selected (I tried with different values because I started thinking I was having

[PHP] Re: [PHP-DB] PHP/Mysql

2001-11-30 Thread Andrey Hristov
Fatal error: Call to undefined function: mysql_connect() means to things. php is not built with integrated mysql support, or php cannot find php_mysql.so on your comp. What is the value of php.ini variable include_path or something similar. Regards, Andrey Hristov - Original Message -

RE: [PHP] chown/chgrp not working

2001-11-30 Thread Darren Gamble
Good day, What user is the application running as? Only the superuser can use these functions (this is documented with both of these functions). For security reasons, you may want to use an external sudo script to accomplish this. Be very, very careful... Darren

[PHP] Re: [PHP-DB] PHP/Mysql

2001-11-30 Thread Paul Warner
Hello, I've got cobalt raq4 with php(work) and mysql(work) but when I try to connect via mysql_connect() this error happens: Fatal error: Call to undefined function: mysql_connect() This is my php.ini: SNIP I thing that it's all ok but it doesn't work. Any Ideas? Hi

[PHP] Speed of Images from DB

2001-11-30 Thread Jim Musil
I've been searching for the best way to store images that would be used in a dynamic site. In this situation, a site admin would upload images via a php script. Obviously this creates several problems. To prevent naming problems, I have php name all the uploaded images and store the name in

Re: [PHP] chown/chgrp not working

2001-11-30 Thread Paul Warner
Ahh, it is not running with root priv., so this is the problem. Sounds like a good time to look for another way to skin this cat... Thanks! -- Paul - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Paul Warner' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November

[PHP] Re: HTTP_POST_VARS truncated

2001-11-30 Thread CC Zona
In article GNMDDQ$[EMAIL PROTECTED], [EMAIL PROTECTED] (Mweb) wrote: One or more options in each select field are selected, right? Fields having no values (such as unchecked radio buttons, etc.) don't get passed. Yes, I know empty values are not passed, and, yes, the options were

[PHP] Re: [PHP-DB] R: [PHP-DB] PHP/Mysql

2001-11-30 Thread Andrey Hristov
Set include_path to the place where is your php_mysql.so and uncomment extension=php_mysql.so Regards, Andrey Hristov Bye - Original Message - From: Riccardi Moreno [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 5:45 PM

[PHP] php + apache 2.0.28 / windows

2001-11-30 Thread TISSANDIE Francois
Hi all, I try to install new 2.0.28 apache on window NT. Apache works fine, but I cannot run php scripts. I think I missed something on .conf to load php, but what ? any idea ? Yhanks for help François Tissandié. Embrassez ceux que vous aimez Atos-Infogérance Tour MANHATTAN 6 Place de l'Iris

[PHP] Database + Form

2001-11-30 Thread TD - Sales International Holland B.V.
Hey there, once again... sorry but I'm not on the list so please CC me :-) I was in the assumption that you needed to use addslashes on a var you retrieve from a form to properly insert it into the database. Well I'm not using it and I can put ,\n,\t etc in my webform but SQL won't evaluate

Re: [PHP] SMS

2001-11-30 Thread Dan McCullough
I think you need an SMS server to broadcast the data. Am I correct? Anyone --- Daniel Berwig [EMAIL PROTECTED] wrote: Does anyone know how could I send data from php through SMS to a cel phone? I simply can't find info about that. Thanks in advance, Daniel Berwig. -- PHP General

Re: [PHP] I'm getting frustrated with this.

2001-11-30 Thread andre
look this: http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html maybe it help you andre - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 4:59 PM Subject: [PHP] I'm getting frustrated with this. Hi, I just want

Re: [PHP] declaring variables mandatory???

2001-11-30 Thread Tyler Longren
I'm not sure, but I'd check the Error level settings in php.ini. It might be set to display stupid little warnings like this. Good luck, Tyler Longren - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 1:37 PM Subject: [PHP]

Re: [PHP] generating text file from php

2001-11-30 Thread John S. Huggins
On Fri, 30 Nov 2001, David Tod Sigafoos wrote: -I have a script which generates html and writes out for users to -download. The script works and the html file works. - -I build strings of html then writeout with fwrite. - -My question is how can i add linefeeds to the strings? \n or maybe

Re: [PHP] declaring variables mandatory???

2001-11-30 Thread R'twick Niceorgaw
Check this url. Your error_reporting is set to E_ALL in the php.ini file. Change it to suit your need. On my machine I have error_reporting set as below in the php.ini file. error_reporting = E_ALL ~E_NOTICE http://www.php.net/manual/en/function.error-reporting.php - Original

Re: [PHP] chown/chgrp not working

2001-11-30 Thread Fred
I tackled a similar problem by running a root cron job that does the chown and chgrp every x minutes. Fred Paul Warner [EMAIL PROTECTED] wrote in message 023601c179b6$a35bdd80$[EMAIL PROTECTED]">news:023601c179b6$a35bdd80$[EMAIL PROTECTED]... Ahh, it is not running with root priv., so this is

[PHP] How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin

2001-11-30 Thread sgibbs
Our organization has a website that uses PHP and MySQL. In fact, at least 75% of our webpages are generated dynamically. I want to run reports on the current MySQL database, create new databases and create, copy and alter existing tables. Our web host does not support telnet or SSH for its

[PHP] Re: How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin

2001-11-30 Thread Julio Nobrega Trabalhando
(I think I need their assistance if I want to use PhpMyAdmin, right? Most of the time, no. These are the lines you usually need to change on PhpMyAdmin config file: $cfgServers[1]['host'] = 'localhost'; // MySQL hostname $cfgServers[1]['user'] = 'root'; // MySQL user

Re: [PHP] SMS

2001-11-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Dan McCullough) wrote: I think you need an SMS server to broadcast the data. Am I correct? you can also send sms with the mail function, but a gsm modem is by far the best, so for a stabile service either rent a sms service or get somekind of a gsm modem. AFAIK -- Henrik

Re: [PHP] SMS

2001-11-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Dan McCullough) wrote: Heres a code snippet: Sorry for leading astray. // load the swsms module dl( ../swsms.so ); never heard of a sms module in php, where can you get this? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: [PHP-WIN] BARE LF in Sending Mail from PHP

2001-11-30 Thread R'twick Niceorgaw
which line the error was on ? and what was the error ? I can not see why it would give any parse error I have run this test program and it worked fine.. without any parse error. It may be somewhere else in your code. Here's my sample code. ?php function SendSite($yname, $ymail,

Re: [PHP] SMS

2001-11-30 Thread Dan McCullough
That example I sent was from a place where they have the swsms shared object which you can get in a developers license, I havent actually tried it, but was looking at it for a project. --- Henrik Hansen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Dan McCullough) wrote: I think you need an

Re: [PHP] How to work with MySQL tables WITHOUT telnet, SSH orPhpMyAdmin

2001-11-30 Thread Sverre Johan Tøvik
At 15:19 -0500 30-11-01, [EMAIL PROTECTED] wrote: Our web host does not support telnet or SSH for its clients and is not interested in working with PhpMyAdmin at the moment (I think I need their assistance if I want to use PhpMyAdmin, right?). Is this rather typical of web hosts? You do

Re: [PHP] SMS

2001-11-30 Thread Dan McCullough
somewhere in here ... I'm not familiar with the actual object, but if you have success withit I would like to hear how you are doing with it. http://www.simplewire.com/developers/code/ --- Henrik Hansen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Dan McCullough) wrote: Heres a code

Re: [PHP] How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin

2001-11-30 Thread Dan McCullough
Yes most shared hosts will not allow the creation of multiple databases. Just one, so you will have to make use with table creation. dan mccullough programming/enginnering 603.444.9808 --- Sverre Johan Tøvik [EMAIL PROTECTED] wrote: At 15:19 -0500 30-11-01, [EMAIL PROTECTED] wrote: Our

[PHP] system(), flush() and so on...

2001-11-30 Thread faeton
Salute, PHP list :), Aloha, ppl. Could anybody explain 2 me what da heck is wrong with flush(). What is needed for it to run as needed? :) If I'm to mistaken that should be an php module for apache? And what if it's compiled together with apache? I dunno what 2 do.

Re: [PHP] SMS

2001-11-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Dan McCullough) wrote: somewhere in here ... I'm not familiar with the actual object, but if you have success withit I would like to hear how you are doing with it. http://www.simplewire.com/developers/code/ ahh yeah now i remember seing it :) -- Henrik Hansen --

[PHP] Re: system(), flush() and so on...

2001-11-30 Thread Julio Nobrega Trabalhando
Hi, please be more specific. Including what error you are getting, what is the tools being used, and their versions. Here's a quick help for producing better questions, wich will in turn make us answer faster and with more quality: http://www.tuxedo.org/~esr/faqs/smart-questions.html PS:

Re: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton
Hello Julio, Hm... I don't even know what to specify :) The exact problem is using system(traceroute host.com), but it should've returned its results line by line, instead of executing the whole command and then outputting its result. That is done by flush(), which is executed by system() foo

RE: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
Good day, flush() will just empty the contents of the output buffer when it's called. You should do this after you output the command, yes, or the user will have to wait until the rest of the page is loaded. But this won't let you see the output as it is generated by the system() function. You

Re[2]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton
Hello Darren, -- manual cut The system() call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module. -- manual cut Hehe. The problem is not in flushing ability of system() foo, but flush() itself

RE: Re[2]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
Good day, Oops, you're right. I did not read that line nor was I aware of that. I just tried ?php system(traceroute www.google.com); ? . It works exactly as it says it should- outputs the lines as they come in. I also know flush() works fine (at least for me). Perhaps you could provide some

RE: [PHP] declaring variables mandatory???

2001-11-30 Thread Brian V Bonini
change error level reporting error_reporting() -Brian -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: [PHP] declaring variables mandatory??? Hello, I have a problem with my php installation. PHP

[PHP] Stuck on array, need a little help.

2001-11-30 Thread Brian V Bonini
I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\

Re: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
Your script is working like you are asking it to ... Change ... while (list($val, $key)=each($bikes[$sub_cat])) { To ... while (list($key, $val)=each($bikes[$sub_cat])) { and it should work like you WANT it to ... I'm stuck. $key returns Array how can I get at each level of this

RE: [PHP] Speed of Images from DB

2001-11-30 Thread Matthew Loff
It would be mighty handy for MySQL to have a binary file column type, like Oracle, where the file was stored externally, outside of the rest of the table data... Anyone heard of any plans to implement this? -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]]

RE: Re[4]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
Good day, I am not sure what the problem is, then. I presume that you installed these via RPMs, and have PHP operating as an Apache module. Does the simple script provided fail as well? Have you tried some simple scripts with sleep() and flush() to see if flush() works? If you don't hear

RE: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
The script is still working right, you just need to nest another while loop into your current while loop. Like so ... if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo trtd$val/td; while (list($sub_val, $sub_key) =

Re[6]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton
Hello Darren, You can try it yourself : www.xemi.info/test.php What do you think? Server config: RedHat 7.1, Apache 1.3.20, PHP 4.0.6 loaded as a module. PS. I tried everything. Simply everything. DG I am not sure what the problem is, then. I presume that you installed these DG via RPMs, and

[PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
Hi, i have a strange problem. I get a users birthdate with three dropdown menus (year, month and day of month). I get these values into one string with: $user_birthdate = $birth_year . $birth_month . $birth_day; If i echo $user_birthdate after this it is correct (mmdd). But when i insert

RE: Re[6]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
Good day, For whatever reason, your traceroute command is returning results very quickly. It may be functioning normally. Perhaps you should try a command that will take much longer to execute, such as du / --max-depth=1. Darren Gamble Planner, Regional Services

Re: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, 1 Dec 2001, 0:43:42, you've written: What's the propery of field your are inserting your info to? Is it INT or BIGINT or maybe TEXT? Try something new :) DA Hi, DA i have a strange problem. DA I get a users birthdate with three dropdown menus (year, month and day of DA month).

[PHP] Don't tell me this isn't possible (object related question)

2001-11-30 Thread Jeroen Olthof
hi, let's say I have made some objects $content = new Content(); and in object content a new object is created $person = new Person(Jeroen); Person holds a var age Now I want to do something like this in a normal PHP script echo $content-getPerson(Jeroen)-getAge(); or since PHP doesn't use

RE: Re[8]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread Darren Gamble
Good day, Then I'm not sure. Perhaps someone in-the-know will respond to your question. Else, file a bug report. Your script runs fine on my 'puter, FYI. Otherwise, it would be worthwhile to write something quick to test flush() with. If it is also not working, it will provide more evidence

Re[10]: [PHP] Re: system(), flush() and so on...

2001-11-30 Thread faeton
Hello Darren, Something quick is like that? for($i = 0; $i 10; $i++) { print $i.br\n; flush(); sleep(3); }; Yeah? There it is: www.xemi.info/flush.php DG Then I'm not sure. Perhaps someone in-the-know will respond to your DG question. Else, file a bug report. Your script runs fine on my

[PHP] Re: Don't tell me this isn't possible (object related question)

2001-11-30 Thread l0t3k
Jeroen, this will be possible with ZE2 (check out the Zend site for more info) Jeroen Olthof [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, let's say I have made some objects $content = new Content(); and in object content a new object is created

Re[2]: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, $date = $birth_year.-.$birth_month.-.$birth_day; And you can try inserting such kind o' date to a DATETIME field. There's an alternative way: $time = mktime(0,0,0, $birth_month, $birth_day, $birth_year); That would return a unix timestamp that can be written to a BIGINT field and

[PHP] Getting the filesize of an image?

2001-11-30 Thread Uchendu Nwachukwu
Is there any easy way to get the filesize of an image on a remote server? Please tell me there is! TIA -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Getting the filesize of an image?

2001-11-30 Thread Kurt Lieber
Yes -- RTFM. http://php.net/getimagesize --kurt On Friday 30 November 2001 04:04 pm, Uchendu Nwachukwu wrote: Is there any easy way to get the filesize of an image on a remote server? Please tell me there is! TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Re: I'm getting frustrated with this.

2001-11-30 Thread chip
Got it! Turns out to be one of those obvious left-it-out errors that happens when staring at the monitor too long. One other guy helped point this out off-list. I'm at home now and don't recall his name, the emails being at work. Thanks to all, Chip On Friday 30 November 2001 12:09 pm, Fred

Re: [PHP] PHP Authentication

2001-11-30 Thread EDUMEXICO
Hi, there is a module for apache that autorizes with mysql, the name of the module is: mod_auth_mysql-2.20, that way you can protect files/directories with the .htaccess method. Bye. PD. The module is at: www.mysql.com On Thu, Nov 29, 2001 at 08:59:05PM +, Hippie wrote: I'm attempting

  1   2   >