[PHP] Count lines or chars
Hi PHP-gurus :-) I'd like to count the lines within a file and store the result within a variable. Every line begins with the char %. Would it be easier to count these chars and how could I do that? Thanks for your help. markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PEAR-DEV] German [PEAR]-mailinglist arranged | webmaster@php.net out of order
On Wed, 4 Dec 2002 20:08:54 +0100 "Tobias Schlitt" <[EMAIL PROTECTED]> wrote: > Ralf Geschke has set up a german-language mailinglist about > PEAR. I would like it very much, if you add a link to this > mailingslist on the PEAR-website. Yay! Together with the new PEAR column in PHP magazine Germany will now be PEARized in no time :-) BUT... I think Ralf should really turn off the admin approval for new members, or he´ll be flooded :-) Regards, Markus -- Markus Wolff <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] undefined constant?
If have this piece of code (test.php): I open the file in my browser like this: localhost/test.php?test=test and get this page: Notice: Use of undefined constant test - assumed 'test' in c:\programfiler\apache group\apache\htdocs\test.php on line 2 A Do I need to define test? How can I work around this annoying notice? Forgive me for my ignorance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] undefined constant?
quoting solved the problem thanks mate :) > How about if you quote index/key names in arrays like: > > if($_GET['test'] == "test") { echo "A"; } > > HTH, > Jason k Larson > > > Markus Jäntti wrote: > > If have this piece of code (test.php): > > > > > if($_GET[test] == "test") { echo "A"; } > > else { echo "B"; } > > ?> > > > > I open the file in my browser like this: localhost/test.php?test=test > > and get this page: > > > > Notice: Use of undefined constant test - assumed 'test' in > > c:\programfiler\apache group\apache\htdocs\test.php on line 2 > > A > > > > > > Do I need to define test? How can I work around this annoying notice? > > Forgive me for my ignorance. > > > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] target for ftp_ssl_connect
Hello, I would like to make use of the function ftp_ssl_connect. Can anyone tell me an appropriate server for this function? WU-FTP with ssl-support does not exist anymore (I read); the openssl.9.6.g port 22 (of the default config) does not seem to work. Which server-deamon is the right one? Or must I use "cURL" ?? Thanks in advance Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ftp_ssl_connect
Hello, I try it again ... is anybody here who can tell me how to use the ftp_ssl_connect function in 4.3? Has anybody a sample code in which the use uf the openSSL functions are declared? rtfm does not help here, because I do read for days now. Thanks, Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ftp_ssl_connect
Hello, The problem is that I cannot find a way to set up an appropriate sftp-server. My tunneling with ssh does not work as it should; I'm still working on it... Bye Markus Jason Wong schrieb: On Tuesday 28 January 2003 20:19, Markus Boettger wrote: Hello, I try it again ... is anybody here who can tell me how to use the ftp_ssl_connect function in 4.3? Has anybody a sample code in which the use uf the openSSL functions are declared? rtfm does not help here, because I do read for days now. Just what exactly is the problem? AFAICS its use is similar to the plain ftp_connect() -- and there are plenty of examples on how to use that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Linux PHP editor
Jj Harrison\\ wrote: > I just switched over to Red Hat Linux from Win2k... > > Only to find my fav editor only works on windows systems... > > could someone suggest a good replacement? > > > -- > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com http://quanta.sf.net (a html ide with php support, quite good, open source) http://www.jedit.org very powerful editor with support for many programming languages open source, you need java to run it and for course http://www.xemacs.org http://www.gvim.org markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Trying to input a webpage - need help
On Fri, Aug 16, 2002 at 08:02:17PM -0400, Ken Meyer wrote : > I am trying to write a script that will read a page from > another website. So long at the page is accessed via a "GET", > this is no problem; I just need to open the page using fopen, > readfile or file_get_contents. The problem is that I need to > access a page that requires a "POST". Any suggestions as to how > I could do this? You can either use the curl extension (see manual) or "Snoopy" (see sourceforge), a browser client class. - Markus ps: php-general@ is the right list to post such questions. -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc "Finally, if someone actually flying a plane is relying on a freakin' webcam to land, we're all in trouble." - A /. poster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: SV: [PHP-DEV] How to specify exstension_dir in PHP.ini for Windows
On Wed, Aug 28, 2002 at 01:16:44PM +0200, Steinar Kolnes wrote : > Thanks for the respond, I am actually using 'extension_dir' There was only a > typos in the e-mail. > The question however; how do I specify the directory ?? Chances are pretty high that you've modified the wrong php.ini . Please ask further question on php-general@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: SV: SV: [PHP-DEV] How to specify extension_dir in PHP.ini for Windows
On Wed, Aug 28, 2002 at 02:09:57PM +0200, Steinar Kolnes wrote : > > When changing the directory to the latter it seems that it finds something > because it comes up with an new error message: > "The procedure entry point _Zend_list_delete could not be located in the > dynamic link library php4ts.dll" That sympton occurs if you the PHP version you're using differes from the one the library was linked against. Make sure you don't mix up those and always only use php and libs from the very same distribution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] problem in starting apache in win2k with mcrypt and mhash module
You're mixing an older library with a newer php version (or the other way around). Please clean up your system first. Please ask on [EMAIL PROTECTED] next time. (Reply-To set). - Markus On Fri, Sep 06, 2002 at 09:56:59AM +0800, Terence Lee wrote : > Hello > > i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i > try to start the apache but encounter the following error msg > > "The procedure entry point _ecalloc could not be located in the dynamic > link library php4ts.dll" > > "Unable to load dynamic library 'c:\php\extensions\php_mcrypt.dll" - The > specified procedure could not be found." > > "mhash: Unable to initialize module > Module compiled with module API=20010901, debug=0, thread-safety=1 > PHP compiled with module API=20020429, debug=0, thread-safety=1 > There options need to match" > > i m sure that the "php_mcrypt.dll" is already in that location. i've > also tried to change the "extension_dir" in c:\winnt\php.ini to > c:\php > c:\php\extensions\ > c:\winnt > c:\winnt\system32 > > and copied all the required dll to corresponding directories. same error > was encountered when i start the apache. can you advice how can i solve > it? i would like to use the mhash and mcrypt functions. > > Terence > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc "In short, the window belongs to me. The document belongs to the web site designer." - Poster on opera.wishlist -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Lib creation
[Cc'd to [EMAIL PROTECTED]] On Tue, Oct 08, 2002 at 12:40:12PM +0200, Metal3d wrote : > Hello > I'm new here, and i'll try to stay ... :oP > I'm French so excuse me if i do mistakes . > > My friend and I have created a lib in php ( a framework) ... > So i wonder if it is possible to install this lib into PHP to use it without > have to call include('class.inc') in scipts ... > If it is possible ... how can i do that ? I think your answer is the 'auto_prepend_file' directive in php.ini > Have i to recode this in C and compil an lib ? is there a documentation for > it ? http://www.php.net/manual/en/zend.php Btw, such questions are best asked at [EMAIL PROTECTED] . - Markus -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Derick, while ($xml) $ass->get_new_ideas(); <[James]> Markus: IE on_user_fart() -- People doesn't seem to like the new XHTML2 specs :) -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 4.3.0pre1 [updated]
Shouldn't this be synchronised with a Win32 binary release? (Apologies if pre1 binaries for Win32 are available, I can't seem to get the inforamtion where they are?) thanks, - Markus On Thu, Oct 10, 2002 at 03:05:22PM -0400, Andrei Zmievski wrote : > Apologies, the correct URL to download PHP 4.3.0pre1 from is: > > http://www.php.net/~andrei/php-4.3.0pre1.tar.bz2 > > -Andrei http://www.gravitonic.com/ > * 2 + 2 = 5 for extremely large values of 2. * > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Derick, while ($xml) $ass->get_new_ideas(); <[James]> Markus: IE on_user_fart() -- People doesn't seem to like the new XHTML2 specs :) -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New to PHP, and stuck
I'm working myself through Julie C. Meloni's book "PHP" and now I'm stuck at chapter 12. My script gives me this error: You have an error in your SQL syntax near '()' at line 1 even tho I've even tried replacing my own work with the file from the book's companion-files. I'd be very happy if someone would take the time to look through this and tell me what the problem might be. Hard to move forward when I don't understand this. Here's the script: mysql_connect("localhost","john","doe99") or die(mysql_error()); $db = @mysql_select_db($db_name,$connection) or die(mysql_error()); //start creating the SQL statement $sql ="CREATE TABLE $_POST[table_name] (("; //continue the SQL statement for each new field for ($i =0;$i < count($_POST[field_name]);$i++){ $sql .= $_POST[field_name][$i]."".$_POST[field_type][$i]; if ($_POST [field_length][$i] != "") { $sql .= "(".$_POST [field_length][$i]."),"; } else { $sql .= ","; } } //clean up the end of the string $sql = substr($sql,0,-1); $sql .= ")"; //execute the query $result = mysql_query($sql,$connection) or die(mysql_error()); //get a good message for display upon success if ($result) { $msg ="".$_POST[table_name]." has been created!"; } ?> Create a Database Table:Step 3 Adding table to ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT
Hey, you should really teach your webmaser to fix the site. First I thought "okay, he doesn't like opera" but then .. It's even a mess in IE5.5. Only NS4.7 which I just had by chance renders it readable (yet it looks completely different layout-wise) ... um. Plain text would have done it too :-) - Markus -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] static not working as expected
'statis' is ONLY used inside functions. You need the 'var' keyword to define class property. This is true for ZE1, I can't tell if ZE2 has static class properties, anyone else? - Markus On Tue, Jun 18, 2002 at 10:42:43AM -0700, Purushotham Komaravolu wrote : > > class Counter { > var $counter = 0; > > function increment_and_print() > { > print ++$this->counter; > print "\n"; > } > } > > > class SingletonCounter { > static $m_instance = NULL; // throwing error here > > function Instance() > { > if (self::$m_instance == NULL) { > self::$m_instance = new Counter(); > } > return self::$m_instance; > } > } > > SingletonCounter::Instance()->increment_and_print(); > SingletonCounter::Instance()->increment_and_print(); > SingletonCounter::Instance()->increment_and_print(); > > ?> > > > is throwing the following error > Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or >`'}'' in /singleton.php on line 15 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is it possible to communicate javascript and php?
On Sat, Jan 20, 2001 at 05:20:53PM -0800, Alex Black wrote : > no without submitting information to the server with get or post. > > for example, if a bit of javascript you have comes up with some value, the > only way you can get it to the server is to put it in a get and send the > user to that url: > > http://www.mysite.com/index.php?your_js_var=your_value With 'post' methods its also possible this way (works NS and IE): <!-- function do_something( form) { form.jsvar.value = form.bla.selcetedIndex; form.submit(); return true; } //--> foo bar You know have set the phpvar $jsvar from within javascript. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] Sending a mail in HTML format
On Sat, Jan 20, 2001 at 06:46:39PM -0700, Pascal Clerin wrote : > I want to send a mail in HTML format with the mail() function. > I have tried to send html stuff in the message parameter, but when I read it > in my hotmail account, I just see the html code and not what the html is > supposed to show. > I suppose that it is necessary to send some additional headers to specify that > the mail is in html format. > Thanks for your help. How about sending yourself a HTML email and examing the headers ? I did that way, worked. To shorten this cycle for you, some hints: Content-Type: text/html; charset="us-ascii" (for example) To include test and html, use the following: Content-Type: multipart/alternative; boundary="=_NextPart_000_062D_01C079C0.9DFF9B70" Then, in the body This is a multi-part message in MIME format. --=_NextPart_000_062D_01C079C0.9DFF9B70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ene mene u --=_NextPart_000_062D_01C079C0.9DFF9B70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable ene mene mu m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] mysql table dump problem
On Sat, Jan 20, 2001 at 05:57:25PM -0800, PHP List wrote : > dump a table to a file on my server: > $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' > LINES TERMINATED BY '\n' FROM table_name"; > > Problem is that once I have created the dump file, it will not allow me to > overwrite it and it gives me an error. Error = rm: cannot unlink > `test.txt': Operation not permitted. It is owned by mysql:mysql. So it > looks like it must be deleted by root or I need to change the ownership of > the file so it can be deleted. So... As i first shot, if you need it quickly to work, add a random number to the text file. Sorry, no more ideas, just a dirty hack. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] Getting part of a string
On Sat, Jan 20, 2001 at 09:10:45PM -0500, [EMAIL PROTECTED] wrote : > I have a form which users enter their email address, once submitted I need a > way to chop it up and put it in lowercase. So that if a user submits > [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest > lowercase so I would get @aol.com > > I know how to get the string to lowercase by using > > $Email1=strtolower($Email); > > My problem is how to get $Email and chop off anything up to the @ and because > people may enter different email providors I have no idea how to get around > it. Anyone have a suggestion I would really appreciate it. The key to your secret is called regular expression. Note, this does not validate if the email is correct; if you need this, take a look at php.net, some of the manual comments talk about email validaten ( whereupon methinks Tom Christiansen email verifier [written in perl] is still the best validator). hope this helps m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] my cookies arent working!
On Sun, Jan 21, 2001 at 04:24:09PM +1300, Lucas Young wrote : > I think most of the problems I am having with PHP and sample code not > working seems to be because cookies arent being generated > I'm using php.ini in it's default config > Windows 2000 Pro IIS PHP 4.0.4pl1 > PHP seems to be working fine otherwise... I did the installshield install > then unzipped the zip package over the top to get the extra modules... > How can I check that cookies are working and et up? I am seeing cookies in > c:\documents and settings\\cookies on both the web machine and my > workstation for normal www sites but not for any of my php sites... How have you done cookie activation ? One easy way is to use session_start(); as it tries to set a cookie and fallsback to urlmodifieng if not possible. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] my cookies arent working!
On Sun, Jan 21, 2001 at 05:45:44PM +1300, Lucas Young wrote : > I'm actually using code from the web - sympoll from www.ralusp.net and > authlib, both give me errors and neither seems to be writing cookies... I > note in PHP the session save path is /tmp, where should this folder live? Where you think its best secure. Or no files at all and sessions saved to database (with session_handlers). But, what about cookies ? Session file layout has nothing to do make cookies work or not. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] Build with Apache on Linux
Why not building apache with dso support and build a libphp4.so shared image ? Much less hassle. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] mysql_fetch_array strangeness
Because, basically, in php an array is a hash with just numbers as keys. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] PHP without a webserver
On Sat, Apr 14, 2001 at 03:34:32PM -0500, Plutarck wrote : > The final layer is the scripting engine. In the script if a move_elevator() [...] > This would allow the vast majority of the real "content" of a game or > application to be written in a scripting language, much like web apps are > now. The script would run just as well on Linux as it would on windows. [...] This is not only true since now or since quake but also sicne the early days of Sierra On-Line games / Lucasmfilm Games. All their games were built on a particular Scripting Engine. For Lucasfilm, this was SCUMM[tm] and for Sierra it was SCI (Sierra Creative Interpreter). This is why those games also run nowadays on Linux (see http://freesci.linuxgames.com/ ). Ok now this is hell Offtopic ;-) But, yes, gtk+ rocks. And, for me, I removed perl and also use now PHP as my day to day scripting language. Its behaviour of hashes is much more intuitive for me than perl's way (every used nested hashes ? you're getting crazy doing so :). But, after all maybe i'm just too dump for perl then. But hey its ok :) I've much joy and fun working with PHP :-) cheers, Markus -- 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] wddx installation
hi i installed php with this "config" on rh6.2.. './configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-trak-vars' '--with-xml' '--with-wddx' and a phpinfo(); show me this too... but when i try to use anny wddx function i get this message... Fatal error: Call to undefined function: wddx_serialize_value() in /usr/local/apache/htdocs/xml/xml.php on line 2 -- annybody have a idea whats wrong ? ~~~ Markus Maussner Application Development and Operations DISTEFORA Mobile (Germany) GmbH Amsinckstrasse 69 D-20097 Hamburg T: +49 (0) 40 80 80 99 - 904 F: +49 (0) 40 80 80 99 - 502 E: [EMAIL PROTECTED] W: www.distefora.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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] wddx installation
hi... sorry i found the error myself... it shoube be --enable-wddx and not --with-wddx markus Am Mit, 18 Apr 2001 schrieb Markus Maussner: > hi > > i installed php with this "config" on rh6.2.. > './configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-trak-vars' >'--with-xml' '--with-wddx' > > and a phpinfo(); show me this too... > > but when i try to use anny wddx function i get this message... > > Fatal error: Call to undefined function: wddx_serialize_value() in > /usr/local/apache/htdocs/xml/xml.php on line 2 -- > > annybody have a idea whats wrong ? > > > ~~~ > Markus Maussner > Application Development and Operations > DISTEFORA Mobile (Germany) GmbH > Amsinckstrasse 69 > D-20097 Hamburg > T: +49 (0) 40 80 80 99 - 904 > F: +49 (0) 40 80 80 99 - 502 > E: [EMAIL PROTECTED] > W: www.distefora.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 administrators, e-mail: [EMAIL PROTECTED] -- ~~~ Markus Maussner Application Development and Operations DISTEFORA Mobile (Germany) GmbH Amsinckstrasse 69 D-20097 Hamburg T: +49 (0) 40 80 80 99 - 904 F: +49 (0) 40 80 80 99 - 502 E: [EMAIL PROTECTED] W: www.distefora.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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] What is CVS?
On Fri, Apr 20, 2001 at 05:16:50PM -0700, Michael C wrote : > What is CVS? Right at the top of http://cvs.php.net/viewcvs.cgi/ there're a bunch of links about CVS. HTH, Markus -- PHP CVS 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] reading apache log into MySQL
hi.. annybody know how i could read the apache logfile into mysql ? my problems is that i dont find anny reasonable "field limiters"... like first it uses " " then it uses "\"" then again " " if i would do a explode on " " it destroys the "get " index.php "" markus -- ~~~ Markus Maussner Application Development and Operations DISTEFORA Mobile (Germany) GmbH Amsinckstrasse 69 D-20097 Hamburg T: +49 (0) 40 80 80 99 - 904 F: +49 (0) 40 80 80 99 - 502 E: [EMAIL PROTECTED] W: www.distefora.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 administrators, e-mail: [EMAIL PROTECTED]
[PHP] Cannot remove module mod_php4.c: not found in module list
Hello i have a big problem and find no answer In /var/log/httpd/error_log if have this error "Cannot remove module mod_php4.c: not found in module list" i installed three times the php4.0.4 no problems with configure; make; make install but if i would start the apache i get this error gruß snooter -- 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] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
Hello, big,big problem ! What is this in my httpd.error.log! My only different to an other surfer is i've installed php4 on this machine snooter -- 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] URL redirection
header( 'Location: rediret_me_here.php'); - Markus - Original Message - From: "Jamie Saunders" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 12:20 AM Subject: [PHP] URL redirection > > Hi, > > Is there a PHP function that will redirect the current page to another url? > > e.g. > > if ($varTwo == $varOne) { > > URL redirection code > > } else { > > echo "You stay right where you are!"; > } > > Thanks. > > > Jamie Saunders > Mail: [EMAIL PROTECTED] > Web: http://jamie-s.co.uk > > > -- > 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 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] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed)
Isn't using *.zip a bit more common ? Luckily I downloaded the *.exe before. - Markus - Original Message - From: "José León Serna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 5:08 PM Subject: Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed) > Hello: > Sorry, but I didn't know that f2s.com deletes all the .exe files from > their servers, now I have uploaded a .rar file and it's working. Sorry for > any inconvenience. > > Best Regards > > Visual PHP Studio, RAD development with PHP > http://www.visualphpstudio.f2s.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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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] can't get php working on redhat 7.1
- Original Message - From: "Daniel Goldin (E-mail)" <[EMAIL PROTECTED]> To: "Php (E-mail) (E-mail)" <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 9:47 PM Subject: [PHP] can't get php working on redhat 7.1 > Got apache going. But no php. Anyone had any experience on this the latest > redhat. > > Hoping to get some pointers to getting apache/php/mysql working nicely in > redhat 7.1. I've been struggling with this for days now. What's the problem in detail ? - Markus -- 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] gdImageCreateFromJpeg in -lgd... no
Can do what i want. I need gif and jpeg habe installed jpeg-6b , gd-1.8.4gif.tar.gz checking for libjpeg (needed by gd-1.8+)... yes checking for jpeg_read_header in -ljpeg... yes checking for libXpm (needed by gd-1.8+)... no configure: warning: If configure fails try --with-xpm-dir= checking whether to include GD support... yes (static) checking for gdImageString16 in -lgd... yes checking for gdImagePaletteCopy in -lgd... yes checking for gdImageColorClosestHWB in -lgd... no checking for compress in -lz... yes checking for png_info_init in -lpng... yes checking for gdImageColorResolve in -lgd... yes checking for gdImageCreateFromPng in -lgd... yes checking for gdImageCreateFromGif in -lgd... yes checking for gdImageWBMP in -lgd... no checking for gdImageCreateFromJpeg in -lgd... no checking for gdImageCreateFromXpm in -lgd... yes checking whether to include FreeType 1.x support... yes checking for T1lib support... no -- 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] MSSQL
- Original Message - From: "Andreas Pucko" <[EMAIL PROTECTED]> To: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 12:19 AM Subject: [PHP] MSSQL > Hi there, > > while tying to connect to a MSSQL DB I get the error message: call to > undefined function. > > I thing my syntax is ok. > > > function pconnect_db() > { > > if (!($link = mssql_pconnect ($DB_SERVER, $DB_LOGIN, $DB_PASSWORD))) { > printf("An SQL error has occured. Please contact our webmaster\n\n"); > DisplayErrMsg(sprintf("internal error %d:%s\n", > mysql_errno(), mssql_error())); > exit() ; >} >return $link; > } 1) _Where_ to you get 'undefined function ? 2) Mixing mysql_* and mssql_* is probably not a good idea - Markus -- 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] Recursively create directories
- Original Message - From: "Philip Hallstrom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 7:01 PM Subject: Re: [PHP] Recursively create directories > > > >foreach($dir_array as $current_dir) { > > if(! is_dir($DOCUMENT_ROOT."/".$current_dir) ) { > > mkdir($DOCUMENT_ROOT."/".$current_dir,0700); > > } > >} Here's my appraoch: if( ! @is_dir( $this->cachedir)) { $dirs = split( '/', $this->cachedir); $createdir = ''; foreach( $dirs as $dir) { $createdir .= '/' . $dir; @mkdir( $createdir, 0775);} } HTH - Markus -- 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] Reports in web browser
On Sun, May 20, 2001 at 02:11:04AM +0200, Richard wrote : > You need to be more specific than that. > > You cannot demand the browser to start printing, [...] Not true if JavaScript is enabled (and most browsers do). window.print(); prints the document (but in fact, it will popup a printing dialog) - Markus -- 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] function to complete strings with white spaces on the left
On Mon, May 21, 2001 at 10:04:21AM -0500, Tolga thorr Orhon wrote : > One improvment: > > $strpad = "HELLO"; > echo str_pad(substr($strpad,0,17),17); why ? - Markus -- 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] is not translated...
Hallo Chris, On Mon, May 21, 2001 at 04:08:52AM +0200, Christian Marschalek wrote : > My system does not tranlate into the PHP Session id... Don't > have a clue why, though... SID gets only defined if the appropriate cookie is NOT set (which makes sense: you don't need to populate it anywhere in your code if the right cookie is set). If you just want the session ID use 'session_id()'. - Markus -- 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] if $submit
On Mon, May 21, 2001 at 03:15:37PM +0100, Tarrant Costelloe wrote : > Whenever I use the ? statement in a php page it always > comes up with: > > Warning: Undefined variable > Until the submit has been hit, and then it continue on with the rest of the > script fine ( ifelse). > > How do you stop this warning message? 1) set new error level: error_reporting( E_ALL ^ E_NOTICE); 2) use isset() if( isset( $submit)) { ... 3) or use @ in front of the variable if( @$submit) { ... - Markus -- 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] Accesing Oracle
On Mon, May 21, 2001 at 03:21:30PM +0100, Kike wrote : > Hi all, > I've just installed Orcale 8.1.7 in a linux server in my lan. I'm trying to access >to > the server from another computer with apache and i get the next: > Fatal error: Call to undefined function: ora_logon() in > /usr/local/apache/htdocs. > Where can i find docs to configure boths machines to access to the > oracle server? > Thanks a lot. Additionally to the other posts, make sure PHP _AND_ APACHE is at least linked against libpthread.so: LDFLAGS=-lpthread ./configure This is for both php and apache - Markus -- 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] query question
On Mon, May 21, 2001 at 10:36:42AM -0500, Jacky wrote : > What do I do if i want to move all values stored in one field > to another field in the same table, from field A to field B? > Has anyone ever done that? As simple as you think it should be UPDATE table SET column_a = column_b - Markus -- 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] best way to flush stdout?
On Mon, May 21, 2001 at 10:03:33AM -0700, Phil Glatz wrote : > I have a page that displays a few lines, then runs a database query that > takes five or six seconds. I'd like to flush stdout and display the first > text while the query is running, so the user doesn't think the site is > down. What's the best way to accomplish this? thanks Make sure output is not buffered via ob_* functions and just call 'flush()'. But note there's no real world fix because browsers can refuse to display immdiatly (depending on its rendering engine, etc) and apache can cache the output, too. - Markus -- 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] PHP & URL Question - omitting index.php
On Mon, May 21, 2001 at 04:01:14PM -0400, colin olkowski wrote : > http://www.blahbalh.com/directory/?arg1=arg1&arg2=arg2 Perfectly ok. - Markus -- 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] Class var not retaining values
On Mon, May 21, 2001 at 05:58:06PM -0400, Bob wrote : > I have a class defined with a var $reasons that I will use as an array. The > code to add to it is: > > function AddReason($score, $reason, $id) > { > static $index = 0; > $this->reasons[$index] = "$score|$reason|$id"; > for ($i = 0; $i < $index; $i++) > { >$out = $this->reasons[$i]; >echo "$out..."; > } > $index++; > return $score; > } Put in a var_dump( $this->reasons); to view yourself what it really contains. Or maybe you called your method static instead of a method ? - Markus -- 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] array sort
On Mon, May 21, 2001 at 03:19:28PM -0700, Alex Black wrote : > hi all, > > I'm trying to do an array sort that takes: > > $test = array( > array( // this is $test[0]. > string => "this is the second", > num => 2 > ), > array( // this is $test[1]. > string=> "this is the first", > num => 1 > ), > ); > > and sorts that array based on $test[$x][num], so I get: > > $test = array( > array( // this was $test[1], now $test[0]. > string=> "this is the first", > num => 1 > ), > array( // this was $test[0], now $test[1]. > string=> "this is the second", > num => 2 > ), > > ); Use 'uasort()': function my_hash_sort( $a, $b) { $a = $a['num']; $b = $b['num']; if( $a == $b) return 0; return ( $a > $b) ? -1 : 1; } uasort( $test, 'my_hash_sort'); - Markus -- 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] array sort
On Mon, May 21, 2001 at 06:05:49PM -0700, Alex Black wrote : > > Use 'uasort()': > > > > function my_hash_sort( $a, $b) { > > $a = $a['num']; > > $b = $b['num']; > > if( $a == $b) return 0; > > return ( $a > $b) ? -1 : 1; > > } > > > > uasort( $test, 'my_hash_sort'); > > hoping this wouldn't be the answer, thanks :) > > another for you: > > I've now coded my function, and the ordering works fine. > > except I'm inside a class and would really rather not include some strange > little file with a single function in it. my code here > > on a whim, I tried > uasort($this->modules[$group], '$this->_ary_sort()'); > > with no luck :) > > ideas? sure :) use uasort( $this->modules[ $group], array( &$this, '_ary_sort'))' You could also write '$this' instead of '&$this' and it would work but would unneccessarily create a new copy of the object. - Markus -- 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] problem getting oracle to work with php4
On Tue, May 22, 2001 at 07:06:32PM +0200, [EMAIL PROTECTED] wrote : > got php to work with mysql but when I try to compile in oracle support > something goes bad. > .configure, make & make install semm to go fine > but when I restart apache I get an error: > Shutting down http: [OK] > Starting httpd: Syntax error on line 872 of /etc/httpd/conf/httpd.conf: > Cannot load /etc/httpd/lib/apache/libphp4.so into server: libclntsh.so.1.0: > cannot open shared object file: No such file or directory > [FAILED] libclntsh.so.1.0 is not in your library path /etc/ld.so.conf btw, make sure you linked both apache & php against libpthread like libclntsh.so.1.0 is - Markus -- 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] image upload - determining image resolution in pixels ?
On Tue, May 22, 2001 at 10:38:32AM -0700, Nicolas Mermet wrote : > I was wondering if there is a way to analize an uploaded jpeg file in > order to extract its resolution in pixels. GetImageSize() is a favourite one here. > Would that be also possible with a quicktime movie ? Possibly, but no one has done a constribution yet to php. - Markus -- 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] 3d array-number of elements in each dimension
On Tue, May 22, 2001 at 02:04:43PM -0700, Andrew V. Romero wrote : > I should clarify that I need to determine the number of elements in $j for > each row ($k). > > Thanks, > To reply personally, remove all numbers from address. Just a note: to receive mail post your real address. - Markus -- 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: Can you help me with this: Bug #11055: segmentation fault & core dump during make
Sorry no, never touch sybase yet. - Markus On Wed, May 23, 2001 at 04:58:53PM +0200, [EMAIL PROTECTED] wrote : > > > From: [EMAIL PROTECTED] > > > Operating system: linux 2.2.14 (RH 6.2) > > > PHP version: 4.0.5 > > > PHP Bug Type: Sybase-ct (ctlib) related > > > Bug description: segmentation fauld & core dump during make > > > > > > downloaded free sybase-ct libs from link in faq from php site. > > > unpacked in /sybase-ct > > > fixed /etc/ld.so.conf & ran ldconfig > > > > > > then tried to compile php with sybase-ct support (in order to access > > MSSQL server) as a DSO module: > > > > > > [root@linux php-4.0.5]# ./configure --with-mysql --with-apxs > > --enable-sockets --with-oracle=/mnt/ora_syb/ora/app/oracle/product/8.0.5 > > --with-sybase-ct=/sybase-ct > > > > > > went fine then ran: > > > [root@linux php-4.0.5]# make > > > > > > got the following error: > > > > > > make[1]: Entering directory `/mnt/ora_syb/php-4.0.5' > > > /bin/sh /mnt/ora_syb/php-4.0.5/libtool --silent --mode=link gcc -I. > > -I/mnt/ora_syb/php-4.0.5/ -I/mnt/ora_syb/php-4.0.5/main > > -I/mnt/ora_syb/php-4.0.5 -I/usr/include/apache > > -I/mnt/ora_syb/php-4.0.5/Zend > > -I/mnt/ora_syb/php-4.0.5/ext/mysql/libmysql > > -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/rdbms/demo > > -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/network/public > > -I/mnt/ora_syb/ora/app/oracle/product/8.0.5/plsql/public > > -I/sybase-ct/include -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmltok > > -I/mnt/ora_syb/php-4.0.5/ext/xml/expat/xmlparse > > -I/mnt/ora_syb/php-4.0.5/TSRM -DLINUX=2 -DEAPI -DUSE_EXPAT > > -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath > > /mnt/ora_syb/php-4.0.5/libs -avoid-version > > -L/mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -L/sybase-ct/lib -R > > /mnt/ora_syb/ora/app/oracle/product/8.0.5/lib -R /sybase-ct/lib stub.lo > > Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la > > ext/mysql/libmysql.la ext/oracle/liboracle.la ext/pcre/libpcre.la > > > ext/posix/libposix.la ext/session/libsession.la > > ext/sockets/libsockets.la ext/standard/libstandard.la > > ext/sybase_ct/libsybase_ct.la ext/xml/libxml.la TSRM/libtsrm.la -lpam > > -ldl -linsck -lsybtcl -lintl -lcomn -lct -lcs -lclntsh -lpsa -lcore4 > > -lnlsrtl3 -lm -lnsl -lresolv -lm -ldl -lcrypt -lnsl -lresolv > > > collect2: ld terminated with signal 11 [Segmentation fault], core > > dumped > > > /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to > > `comn_loc_copy' > > > make[1]: *** [libphp4.la] Error 1 > > > make[1]: Leaving directory `/mnt/ora_syb/php-4.0.5' > > > make: *** [all-recursive] Error 1 > > > N.B. > > > previous run witout sybase-ct support went fine! > > > > > > dont know if it will help but, try php 4.0.6rc1 from > > http://www.php.net/~andi/php-4.0.6RC1.tar.gz or try a 4.0.7-dev > > snapshot from http://snaps.php.net/php4-latest.tar.gz > > Cameron > > Since the error comes from : > /sybase-ct/lib/libct.a(ctconpr.o)(.text+0x5ac): undefined reference to > `comn_loc_copy' > > I feel that this will not solve the problem ... as in effect it did not. > I see that some people solved similar problems by doungrading to version > 4.0.3 ... could this be a solution for my problem ? > where can I get these old sources (on php site oldest version avalible is > 4.0.4) ? > Can any body suggest any other solution ? > > By dave > > > - > Questo messaggio ? stato inviato utilizzando http://it.my.gsmbox.com -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] PHP 4.1.0 uses much RAM compiled --with-mm
Hi, I'm experiencing strange PHP memory usage on a Sun SPARC machine running Solaris 8: I when I compile PHP 4.1.0 --with-mm to store session variables in memory the resulting Apache (1.3.22) process(es) immediately uses 138 MB of RAM. One can also observe an immediate significant reduction of available swap-space. Compiled --without-mm, memory-usage of the Apache process(es) is normal. with-mm: % ls -l libphp4.so -rwxr-xr-x 1 root root 2408468 Dec 11 23:27 libphp4.so % /usr/ucb/ps auxwww | grep http root 8670 0.9 1.0 138832 4848 ? S 18:44:34 0:00 /usr/apache/bin/httpd nobody8671 0.1 0.3 138848 1440 ? S 18:44:35 0:00 /usr/apache/bin/httpd without-mm: --- % ls -l libphp4.so -rwxr-xr-x 1 root root 2330076 Dec 26 17:01 libphp4.so % /usr/ucb/ps auxwww | grep http root 8817 0.8 1.0 7656 4800 ?S 18:45:47 0:00 /usr/apache/bin/httpd nobody8818 0.1 0.3 7672 1440 ?S 18:45:48 0:00 /usr/apache/bin/httpd In both versions (with-mm/without-mm) I've also enabled GD-, TTF-, DB3-, MySQL-Support and several more. Any hints how to reduce memory-consumption when using libmm? Thanks. Regards, Markus PS: The configure command-line ./configure \ --prefix=/usr/apache/php \ --with-apxs=/usr/apache/bin/apxs \ --with-config-file-path=/usr/apache/php \ --with-gd \ --with-jpeg-dir=/opt/sfw/lib \ --with-png-dir=/opt/sfw/lib \ --with-xpm-dir=/opt/sfw/lib \ --with-ttf \ --enable-gd-native-ttf \ --with-mysql \ --with-ttf \ --with-mm \ --enable-sockets \ --with-zlib=/usr \ --with-xml \ --with-db3=/opt/sfw \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --with-config-file-path=/etc/apache \ --enable-debug=no \ --enable-safe-mode=yes \ --with-exec-dir=/usr/apache/php/bin \ --enable-shared \ --enable-force-cgi-redirect=yes \ --enable-discard-path=yes \ --enable-inline-optimization -- 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] Find the nearest dealer in Germany on a given ZIP (PLZ)
Hi List ! I have a question on a topic that's been dealt with here before (but only for the US). I am looking for a soultion to find - via php /database - a way to search for the shortest distance between a given ZIP Code and available dealers nearby. So, let's assume I am living in German ZIP Code 7. I want to look for my nearest dealer. php and the database should be able to tell me where it is. Does anybody know how to achieve this ? Like in www.mediamarkt.de or at www.hp.com ? So it should be possible somehow. Do I have to link German ZIPs (=PLZs) to geographical data ? Where Can I get them from ? You cannot work on ZIPs alone, right ? how can you calculate the distance ? Thanks for any help Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hashes in strings
Hi, I would suggest not to use $hash[var1][var2] instead of $hash['var1']['var2'] because afaik php will think u mean two constants ( var1 and var2 ). Just if it doesnt find these constants it will use them as $hash['var1']['var2']. Markus Mirsberger "Dan Hardiker" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I think this will accomplish what your trying to achieve. > > $str = "I can use $hash[vars] in strings"; > > However, this will not work for multi dimensional arrays... eg: > > $hash['var']['var2'] = "Elephant"; > $str = "I can NOT use $hash[var][var2] in strings"; > > will output "I can NOT use Array[var2] in strings". For this you have to > jump out of the string and use contcatination... eg: > > $str = "I can use ".$hash[var][var2]." in strings"; > > will output "I can use Elephant in strings". > > Hope that helps :) > > -- > Dan Hardiker [[EMAIL PROTECTED]] > ADAM Software & Systems Engineer > First Creative Ltd > > > Hey there, > > > > why do these work: > > $vars = "vars"; > > $ar[0] = "arrays"; > > $hash['vars'] = "hashes"; > > str = "I can use $vars in strings"; > > str = "I can use $ar[0] in string"; > > > > while this one doesn't: > > str = "I can NOT use $hash['vars'] in strings"; > > > > Kind regards > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Bug #17121 Updated: failed to make with OCI8 for oracle support
Hi, this is not a bug issue, but an installation question. Either as on php-general@ (CC'd) or php-install@ (don't recall the exact name). Can't find clntsh usually means you don't have passed the right path to the oci PHP configure switch and/or the library isn't in your library path (/etc/ld.so.conf) - Markus On Fri, May 10, 2002 at 09:05:08AM -, [EMAIL PROTECTED] wrote : > ID: 17121 > Updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] > Status: Closed > Bug Type: OCI8 related > Operating System: Redhat 7..2 &.7.3 > PHP Version: 4.2.0 > New Comment: > > Ok, so i have oracle client installed but i did not do a administrativr > install > So I did that last night > now we are getting past that problem > What happens now is that it states that ld can't find -lclntsh > > what now > I'm just reinstalling maybe i'll get past this > but anay suggestion is welcome > > > Previous Comments: > > > [2002-05-09 11:49:34] [EMAIL PROTECTED] > > You need at least Oracle client installed in order to compile PHP. For > more info see http://www.php.net/manual/en/ref.oci8.php > > > > [2002-05-09 11:19:30] [EMAIL PROTECTED] > > Gee!! you responded quickly > I'm using oracle9i > And no i don't have it on my system > > > > [2002-05-09 10:57:36] [EMAIL PROTECTED] > > Which version of Oracle do you have installed? > There shoud be oci.h in /home/oracle/OraHome1/rdbms/demo, if its not > there could you try finding the file under $ORACLE_HOME > (/home/oracle/OraHome1). > > > > > [2002-05-09 10:48:45] [EMAIL PROTECTED] > > Hi there we have tried with both Redhat 7.2 and 7.3 and php 4.1.1 and > 4.2.0 > I extracted the sorce to /usr/local/php4.2.0/ > When doing a config(actualy config.nice) all works fine > below my config.nice > #! /bin/sh > # > # Created by configure > './configure' \ > '--with-apxs2=/usr/local/apache/bin/apxs' \ > '--with-config-file-path=/usr/local/apache/conf' \ > '--enable-versioning' \ > '--with-mysql=/usr/local' \ > '--enable-ftp' \ > '--with-imap=/usr/local' \ > '--with-gd=/usr/local/gd1.3' \ > '--enable-bcmath' \ > '--disable-debug' \ > '--enable-memory-limit=yes' \ > '--enable-track-vars' \ > '--with-oci8=/home/oracle/OraHome1' \ > "$@" > > when doing a make I get a failure in the php_oci8.h file > Below is the last few lines of the terminal output > I can't find anything that tels me what is going wrong everything looks > right and in place please,,please can you help > > -I/usr/local/gd1.3/ -I/usr/local/include -I/usr/local/include/mysql > -I/home/oracle/OraHome1/rdbms/demo -I/home/oracle/OraHome1/plsql/public > -I/usr/local/php-4.2.0/ext/xml/expat -D_REENTRANT > -I/usr/local/php-4.2.0/TSRM -g -O2 -pthread -DZTS -prefer-pic -c > internal_functions.c > In file included from internal_functions.c:38: > /usr/local/php-4.2.0/ext/oci8/php_oci8.h:52:17: oci.h: No such file or > directorymake[2]: *** [internal_functions.lo] Error 1 > make[2]: Leaving directory `/usr/local/php-4.2.0/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/php-4.2.0/main' > make: *** [all-recursive] Error 1 > > > > > -- > Edit this bug report at http://bugs.php.net/?id=17121&edit=1 -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc "I'm not stupid, you know? :)" - Jani Taskinen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Console application with PHP
Hi, all is possible. I suggest taking a look at http://gtk.php.net/ and http://www.php.net/manual/en/features.commandline.php for a start. - Markus On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : > Hi All > > I am trying to write something similar to a server console display, is it a > good idea to use PHP? > > Wondering how things like > 1. server clock (similar to a clock applet) > 2. server status > can be displayed with PHP code? > > Note: I need to display the above two in a continuous fashion on the status > bar!! > > Many Thanks > Dominic > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc - "I mean "When in doubt, blame mcrypt" is more often right than wrong :)" "Always right, never wrong :)" - Two PHP developers who want to remain unnamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [PHP-DEV] Console application with PHP
Windows too. - Markus On Thu, May 16, 2002 at 02:31:52PM -0700, Vail, Warren wrote : > Does this work on Windows, or is it restricted to Linux/unix? > > > Warren Vail > Tools, Metrics & Quality Processes > (415) 667-7814 > Pager (877) 774-9891 > 215 Fremont 02-658 > > > -Original Message- > From: Markus Fischer [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 11:58 AM > To: DoL > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] Re: [PHP-DEV] Console application with PHP > > > Hi, > > all is possible. I suggest taking a look at > http://gtk.php.net/ and > http://www.php.net/manual/en/features.commandline.php for a > start. > > - Markus > > On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : > > Hi All > > > > I am trying to write something similar to a server console display, is it > a > > good idea to use PHP? > > > > Wondering how things like > > 1. server clock (similar to a clock applet) > > 2. server status > > can be displayed with PHP code? > > > > Note: I need to display the above two in a continuous fashion on the > status > > bar!! > > > > Many Thanks > > Dominic > > > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Please always Cc to me when replying to me on the lists. > GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc > - > "I mean "When in doubt, blame mcrypt" is more often right than wrong :)" > "Always right, never wrong :)" > - Two PHP developers who want to remain unnamed > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc - "I mean "When in doubt, blame mcrypt" is more often right than wrong :)" "Always right, never wrong :)" - Two PHP developers who want to remain unnamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Newbie question about PHP and Oracle
Hi, I think you mean hwo u can get the data into an array well here is an example : $query = "select ..."; $stmt = ociparse( $connectionhandle, $query ); if( ociexecute( $stmt, OCI_DEFAULT ) ){ ocifetchinto( $stmt, $row, OCI_ASSOC+OCI_RETURN_NULLS ); } and now you got 1 resultset in an associative array called $row. take a look at the oci-functions in the manual for the different flags u can set. regards markus mirsberger "Michael Sweeney" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > a VERY newbie question, just how do I get data into a listbox? In mysql it > was pretty easy with mysql_fetch_row, but for oracle I am totally lost. > > > Thanks! > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] char encoding question
Dear list I run a php Version on my win2k with MySQL. I have a database runnning keeping address records. I do offer a form-html page to edit certain records. On a PC I can enter any character of the German language and it appears right in the db. On a MAC I can only enter the correct chars on Internet Explorer, not on Netscape. Does anyone out there have any idea what this could be caused by ?!? and how to avoid this ? thanks for any help. markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Errormessages
I run a script on my page that has worked fine before with 4.0.3 but now when my provider has upgraded to 4.1.2, a bunch of error messages appear. I get some messages about variables not being defined just as if I can't send variables via the adressbar (/ ../index.php?$kat=0 for example. ) How come they suddenly appear as not being defined? I also get a lot of messages saying "PHP Warning: Undefined offset: 1 in /home/f/falk/public_html/index.php on line 148" What does it mean that I have an undefined offset? You can find all errormessages here http://www.acc.umu.se/~falk Please help. Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpinfo() printing old ./configure arguments
Hello, We recently upgraded the php apache modules to include some bugfixes and the wddx module, but phpinfo() does still show a compilation time of August 1 2001 and the old compilation infos. Where do I have to dig about that? Please cc me as I'm not on the list. Markus Bertheau signature.asc Description: This is a digitally signed message part
[PHP] Apache 2.0.35 and php4.1
Hi, i installed the new Apache 2.0.35. When i want to load the php4 module apache doesn't starts. On Apache 1.3.22 it works fine. I find something on php.bugs.net. << If you use it with apache 2, you need a special SAPI module. Ask for support on the [EMAIL PROTECTED] mailinglist >>> What should i do to use php in new Apache. thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] What's wrong with my PHP
Please ask support questions at [EMAIL PROTECTED] And, check what type '$this->a' is. It's probably not an array. - Markus On Sun, Oct 21, 2001 at 05:33:25PM +0800, fatbobman wrote : > when i try to open add a record to my db.. > php tell me > Warning: Cannot use a scalar value as an array in c:\program files\apache > group\apache\htdocs\textdb\tdb.inc.php on line 127 > > 127: $this->a[] = array($fieldname, $fieldtype); > > why ... my php.ini's wrong ...? > how to edit it > i'm using php 4 > thanks -- 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] language.variables.predefined.php
Good day, refering to /manual/en/ -- 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] language.variables.predefined.php
(Hey, bug in Evolution. Hope it works now.) Good Day, refering to /manual/en/language.variables.predefined.php you write "If the register_globals directive is set, then these variables will also be made available in the global scope of the script; i.e., separate from the $HTTP_*_VARS arrays. This feature should be used with care, and turned off if possible;" if it should be used with care, you should introduce the apache variables from a few lines above as elements of the $HTTP_SERVER_VARS array, not as global variables. Markus Bertheau -- 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: Testing Alert: Significant changes to DOM-XML
[This mail goes out to php-dev, php-qa and php-general and has its Reply-To: set to php-dev!] Hi Zak, thanks for the mail, I was thinking about writing such a mail myself but was to tired I guess. Yep, the CVS note to the latest ext/domxml changes state it clearly: # Testers/patches/contribs welcome. The actual changelog can be found here [1]. Also for anyone out there who has no idea about CVS: It won't help me anything filing bug reports against any released source code of PHP out there. Please use the HEAD branch when filing bug reports. See CVS instructions at http://www.php.net/anoncvs.php how to achive this. Although I don't expect a rush on this ;) I want to give out some simple rules for anyone helping us getting domxml more stable: .) If you have a reproduceable crash with small self-containing script with no other external dependencies than loading a file -> don't forget to use the bug reporting system! Do not mail me privately about it! No, I'm not lazy or whatever but I wan't to broaden the audience reading about the bugs (two eyes see less than more eyes) and it also helps me keeping track of all the problems. .) If you have a reproduceable crash but can't create a small self-containing script, there are three options: 1) still try to create one (prefered) 2) Provide backtrace in your bug report ('bt full' command, not normal bt) 3) give me access to your devel system (no, no joke. This has worked in the past, it can in the future) But no promises. .) Before reporting, try creating a testcase which is suiteable to run on the command line of PHP (read: with the CGI version). Apache is nice but it adds some extra work when handling the bugs I prefer the reproduceable scripts which use the CGI version for testing and don't contain any fancy tags but newlines and such instead. The find bug/fix it cycle is much faster without apache. Again, I'm not lazy, but I'm also using MSVC for debugging and although I'm not a windows fan I've seen myself being faster chasing down bugs with it then with gdb (doh!). .) Patches can go directly to me; but please also tell me why and what and give a testing script and not only send a diff to me. Of cousre, anyone with the proper karma is encouraged to fix it himself (you might want to check back if I'm not currently working on it). .) NEW FEATURES No, I do NOT plan to add now featuers. I'm just interesting in making the current version more stable but time doesn't permit to expand this scope. But you're still encouraged to use the bug report system to put your feature requests there or do it yourself. What I wrote done seems normal to me and I do not explicetely prefer this for domxml but anything else too. Saves mit quite lot of time. On Sat, Dec 01, 2001 at 08:19:47PM -0700, Zak Greant wrote : > Marcus Fischer has made [...] Yo, and its still MarKKKus ;-) - Markus [1] http://cvs.php.net/cvs.php/php4/ext/domxml/php_domxml.c -- Please always Cc to me when replying to me on the lists. -- 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] problem: php-document in netscape is oly downloadable
We have successfully installed php3 and php4 under AIX4.3.3 with Apache1.3.19. Now we can see the php3-documents in the browser(NS4.7). In opposition to that the php4-documents are only downloadable. Is there any setting that is not described in the manual we have to do therewith the browser can show us both types of php? Thanks for help, Markus Mattes -- 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] How to change useragent-ID sent by PHP4.0.5RC1
Hallo I am downloading a HTML-File with PHP4.0.5RC1 and I want to change the useragent-ID from PHP, which will be sent to the webserver where the HTML-File is. I am using PHP4.0.5RC1 with NT. Do you have any ideas ? -- Markus Wagner email: [EMAIL PROTECTED] Hobby: 747 Jumbo-Jet, Pontiac -- 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: [PHP-DEV] Constructor Inheritance
Hello Tiago, this is not the PHP support forum. PHP-DEV is for developing PHP. You want to post such questions to PHP-GENERAL. On Mon, May 21, 2001 at 04:17:49PM +0100, Tiago Moitinho wrote : > How do I inherit a class that inherits the constructor behaviour from the > parent class, assuming the parent class cannot be changed? > For instance, > > class A { > // this class is already define, not changeable > function A() > // does something > } > } > > class B extends A { > function B() > // inherits A construction: how do I do this? > // does something else > } > } class B extends A { function B() { // call parents constructor A::A(); } } - Markus -- 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] select specified elements from an array
On Wed, May 23, 2001 at 12:06:42AM +0200, Gyozo Papp wrote : > function array_part($fromarray, $keys) > { > foreach($fromarray as $key => $val) > { > if (in_array($key, $keys) >$anotherarray[$key] = $val; > } > return $anotherarray; > } foreach( $keys as $key) if( isset( $fromarray[ $key])) $anotherarray[ $key] = $fromarray[ $key]; - Markus -- 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] select specified elements from an array
On Wed, May 23, 2001 at 12:27:04AM +0200, Gyozo Papp wrote : > Thanks for your fast reply. > One more question related to this topic. > Would it be valueable to extend the existing array_values() > function to support this feature? just to balance with > array_keys() and its optional value argument. I agree with Zeev & Co not to unnecessarily bloat/pollute PHP with functions when you can solve it with minimal hassle. - Markus -- 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] CGI Error when processing form
We've got the same problem. Did you find a resolution? Thanks, Mark&Mirco ""seth"" <[EMAIL PROTECTED]> wrote in message 9ej8pq$i1n$[EMAIL PROTECTED]">news:9ej8pq$i1n$[EMAIL PROTECTED]... > Hi, > I'm really new to PHP and i'm not too smart!..., I pulled some from code > out of scripts.com for processing forms just to test. > > this is on an IIS server 4.0 server > > this is the error I get after clicking on the tell us button... > > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: > > Any ideas > .. -- 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] Missing arguments for function in class? (object-oriented programming)
On Wed, Jun 27, 2001 at 07:26:53AM -0600, Thomas David Kehoe wrote : [...] > $my_records = new Display_Records; [...] > > class Display_Records { > > function display_records($row, $record_count) { The constructor of your class assumes two parameters; you're creating an instance without passing those values. $my_records = new Display_Records( $param1, $param2); is the proper syntax. - Markus -- 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] Interfacing with Excel
You can use PHP4 under win32 (CGI Binary) and use the DCOM Interface to access excel. Search with google and some appropriate keywords. - Markus On Thu, Jun 28, 2001 at 11:00:19AM +0530, Sharat Hegde wrote : > Hello, > > I have a web site on a Unix environment running PHP 3.0 and MySQL. > > I need to convert data in an Excel format to a MySQL database format > periodically based on the input feed received in Excel format. the > conversion to MySQL is not a problem at all. > > What I need help is to read data from an Excel 2000 format. How do I > retrieve data from Excel 2000? The data is basically a 2 columnar data with > currency names and conversion values. > > Thanks in advance. > > Regards, > Sharat Hegde > Phone: 6560360 Ext 4680 > > > -- > 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] > -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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] compiling apache with php4
Hi, I`ve a problem compiling the apache: ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a When I do so, following message occurs: Configuring for Apache , Version 1.3.20 + using installation path layout: Apache (config.layout) configure:Error: invalid option --activate-module=src/modules/php4/libphp4.a In the directory ../src/modules/php4/ was no libphp4.a file. Only a libmodphp4.a file. So I copied libphp4.a in this directory. After that the following message occured: Configuring for Apache , Version 1.3.20 + using installation path layout: Apache (config.layout) configure:Error: Module source already has to be below src/module/ to be activated Using SuSe Linux 7.2... Please could qanyone help me?! Markus -- 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] --with-imap-ssl
Hello, i have a big problem. I want to compile php4.0.6 ./configure --with-imap --with-imap-ssl=/usr/lib checking for IMAP support... yes checking for pam_start in -lpam... (cached) yes checking for Kerberos support in IMAP... no checking for SSL support in IMAP... yes configure: error: This c-client library does not support SSL. Recompile or remove --with-imap-ssl from configure line. i updated my imap to imap2000c i updated my c-client to the newest cp c-client.h /usr/lib/c-client.h cp c-client.a /usr/lib/c-client.a and copy rfc822.h, mail.h and linkage.h to /usr/local/include my config.log configure:22595: checking for Kerberos support in IMAP configure:22793: checking for SSL support in IMAP configure:22914: gcc -o conftest -g -O2 -DEAPI_MM -DLINUX=2 -DMOD_SSL=206105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -Wl,-rpath,/usr/local/lib -L/usr/local/ configure:22891: warning: initialization makes integer from pointer without a cast configure:22891: parse error before `void' configure: failed program was: DLIBS="-lssl -lcrypto -lc-client " #line 22889 "configure" #include "confdefs.h" whats wrong. Have anyone an idea mfg snooter -- 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: [PHP-DEV] Passing JavaScript variables to PHP
On Fri, Jul 27, 2001 at 04:31:51PM -0500, Craig Gardner wrote : > Is there any way to pass JavaScript variables to PHP? This doesn't belong in here; this list is for the development OF php and _not_ WITH. Ask at [EMAIL PROTECTED] - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- 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: [PHP-GTK] autoconf bugs
What libtool version are you using ? libtool --version - Markus On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : > Anyone know why I get this when I run buildconf for php or phpgtk on > redhat 7.1? I have autoconf 2.13 > > autoconf: Undefined macros: > ***BUG in Autoconf--please report*** AC_LANG_PUSH > ***BUG in Autoconf--please report*** AC_LANG_POP > ***BUG in Autoconf--please report*** AC_LANG_PUSH > ***BUG in Autoconf--please report*** AC_MSG_NOTICE > ***BUG in Autoconf--please report*** AC_LANG_POP > ***BUG in Autoconf--please report*** AC_LANG_PUSH > ***BUG in Autoconf--please report*** AC_LANG_POP > > - Dan > -- > > > -- > PHP GTK 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] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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: [PHP-GTK] autoconf bugs
There it is. You need 1.4 . No trailing a or b or whatsoever. - Markus On Mon, Aug 13, 2001 at 01:20:50PM -0400, Daniel Adams wrote : > 1.4b > > On Mon, 13 Aug 2001, Markus Fischer wrote: > > > What libtool version are you using ? > > > > libtool --version > > > > - Markus > > > > On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : > > > Anyone know why I get this when I run buildconf for php or phpgtk on > > > redhat 7.1? I have autoconf 2.13 > > > > > > autoconf: Undefined macros: > > > ***BUG in Autoconf--please report*** AC_LANG_PUSH > > > ***BUG in Autoconf--please report*** AC_LANG_POP > > > ***BUG in Autoconf--please report*** AC_LANG_PUSH > > > ***BUG in Autoconf--please report*** AC_MSG_NOTICE > > > ***BUG in Autoconf--please report*** AC_LANG_POP > > > ***BUG in Autoconf--please report*** AC_LANG_PUSH > > > ***BUG in Autoconf--please report*** AC_LANG_POP > > > > > > - Dan > > > -- > > > > > > > > > -- > > > PHP GTK 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] > > > > > > -- -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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] Need help to create HTML table with 2 columns.
ho, John Bass wrote: > printf ("%s%s %s%s\n", $row->image_link, ^^ You forgot to close the td tag, maybe your browser didnt display the table because of that. Markus Bertheau -- 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: Really weird problem: cross-server databasing *g*
Forgot to mention ... the only way to access the database on B is to connect to "localhost" there. -- 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] Really weird problem: cross-server databasing *g*
Hi folks! Let's say you have two servers, on the first one ("A") you have your website containig all those nice php scripts and co but only a crazy small database (2 megs), on the second one ("B") you have a really big database available but the problem, that the provider won't allow you to access the database from any other place than from your account on B. That wouldn't be the problem, but B opens pop ups each time, you open a website there - and that couldn't be the solution. Has anyone an idea how to access the database on B without opening a webpage there (and with this, without opening a popup) from server A? ANY help much appreciated! Markus Mayer -- 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: [PEAR] problem with a global variable as class reference
My answer may be not well thought but ... from my knowledge, problems with php-gtk you can't assign references to global vars because this particaular declared global variable is a local reference to the global var. - Markus On Sat, Sep 15, 2001 at 03:38:54PM +0200, Wolfram Kriesing wrote : > i am using a global variable (curClass), > which is a reference to some class, > inside another class i want to change > the value of this global variable, to > "point" or refer to another class. > but that doesnt work. > am i doing something wrong??? > > here my code > > -- > class temp > { > function temp() > { > global $curClass; > $curClass = &${$classNameY}; > } > } > - > > $curClass = &${classNameX}; > $tempi = new temp(); > # at this point $curClass still points > # to the class with the name "classNameX" > # not to "classNameY" as i would suppose > # if i used: $curClass = $classNameY; > # inside the class temp > # $curClass would have the expected value > # but with the "&${}" around it doenst work > > thanks 4 your help > > Wolfram Kriesing > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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: [PEAR] Re: [PHP] Re: [PEAR] problem with a global variable as class reference
On Sat, Sep 15, 2001 at 04:11:47PM +0200, Wolfram Kriesing wrote : > > My answer may be not well thought but ... from my knowledge, > > problems with php-gtk you can't assign references to global vars > > because this particaular declared global variable is a local > > reference to the global var. > > as you say, i guess the "local reference to the global var" > is the problem > > at least i also forgot to define the "${$classNameY}" as global > if i do so then the following happens (see comments in code) > > class temp > { > function temp() > { > global $curClass,${"y"}; > > $curClass = &${"y"}; # this doenst work > $curClass = ${"y"}; # this works, but it's not a reference :-( > } > } > - Good .. or bad. It's a Zend1 limitation. I'm sure Zend2 will remove this problem. > $curClass = &${"x"}; > $tempi = new temp(); Have you tried with creating a reference from the object upon instancing it? $foo = &new Object; ? - Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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] Error compiling PHP
On Thu, 2001-09-27 at 10:56, Alberto wrote: > /usr/bin/ld: cannot find -lpq this is the PostgreSQL client library. It is needed when you configure with "--with-pgsql". If you don't need PostgreSQL Support remove it, otherwise you have to install a package named sth like postgres-client and postgres-client-devel Markus Bertheau -- 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: [PHP-DEV] Bug #13545: oci8 compile problem
Please ask on [EMAIL PROTECTED] or php-install@ Is this patch against the glibc 2.2x problem? - Markus On Thu, Oct 04, 2001 at 06:26:10PM -, [EMAIL PROTECTED] wrote : > From: [EMAIL PROTECTED] > Operating system: LINUX RH 7.1 > PHP version: 4.0.6 > PHP Bug Type: Oracle related > Bug description: oci8 compile problem > > - oracle 8.1.7 install ok > - oracle patch from technet ok, > - php compiles fine (4.0.6) > > but on the oracle compile (./configure > --activate-module=src/modules/php4/libphp4.a ) > I get : > > usr/lib/gcc-lib/i386.libresolv.so: undefined reference to > `[EMAIL PROTECTED]' > ... > > even if I put -lpthread in the "src/Configure" file > (is that the good place ?) > > Thaks for help, > Jerome > > > > -- > Edit bug report at: http://bugs.php.net/?id=13545&edit=1 > > > -- > PHP Development 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] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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: [PHP-DEV] Bug #13545: oci8 compile problem
Again, is this patch against some kind of libc problem? Because standard 8.1.7 does not support glibc 2.2.x, only 2.1.(x|3) ? But there is little from php that can be done I think. For testing try to build a cgi module and see if that works. If so IMHO its not a php problem. I always took dsitributions with libc 2.1.3 for installing orackle (rh 6.2, debian potato) and they ran well. - Markus On Fri, Oct 05, 2001 at 10:09:09AM +0200, Jerome Ponsin wrote : > For me this really a bug in php compilation with > oracle 8.1.7 within apache 1.3.20 : > > The problem occurs with php 4.0.5, php4.0.6 but also > with latest snapshot... > > For Php -> > ./configure --with-apache=/root/apache_1.3.20 --with-mysql --enable-ftp --en > able-inline-optimization --disable-debug --with-zlib --with-oci8=/opt/oracle > /product/8.1.7 > make > make install > > For php within apache : > cd > /root/apache_1.3.20;./configure --activate-module=src/modules/php4/libphp4.a > > I get at that command the message : > usr/lib/gcc-lib/i386.libresolv.so: undefined reference to > >>> > `[EMAIL PROTECTED]' > > Any idea ? > Thanks for help, > Jerome > > > >>> -Message d'origine- > >>> De : Markus Fischer [mailto:[EMAIL PROTECTED]] > >>> Envoyé : jeudi 4 octobre 2001 20:45 > >>> À : [EMAIL PROTECTED] > >>> Cc : [EMAIL PROTECTED] > >>> Objet : Re: [PHP-DEV] Bug #13545: oci8 compile problem > >>> > >>> > >>> Please ask on [EMAIL PROTECTED] or php-install@ > >>> > >>> Is this patch against the glibc 2.2x problem? > >>> > >>> - Markus > >>> > >>> On Thu, Oct 04, 2001 at 06:26:10PM -, > >>> [EMAIL PROTECTED] wrote : > >>> > From: [EMAIL PROTECTED] > >>> > Operating system: LINUX RH 7.1 > >>> > PHP version: 4.0.6 > >>> > PHP Bug Type: Oracle related > >>> > Bug description: oci8 compile problem > >>> > > >>> > - oracle 8.1.7 install ok > >>> > - oracle patch from technet ok, > >>> > - php compiles fine (4.0.6) > >>> > > >>> > but on the oracle compile (./configure > >>> > --activate-module=src/modules/php4/libphp4.a ) > >>> > I get : > >>> > > >>> > usr/lib/gcc-lib/i386.libresolv.so: undefined reference to > >>> > `[EMAIL PROTECTED]' > >>> > ... > >>> > > >>> > even if I put -lpthread in the "src/Configure" file > >>> > (is that the good place ?) > >>> > > >>> > Thaks for help, > >>> > Jerome > >>> > > >>> > > >>> > > >>> > -- > >>> > Edit bug report at: http://bugs.php.net/?id=13545&edit=1 > >>> > > >>> > > >>> > -- > >>> > PHP Development 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] > >>> > >>> -- > >>> Markus Fischer, http://guru.josefine.at/~mfischer/ > >>> EMail: [EMAIL PROTECTED] > >>> PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc > >>> PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 > >>> -All your scripts are belong to Zend- > >>> -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- 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: [PHP-DEV] Bug #13545: oci8 compile problem
On Fri, Oct 05, 2001 at 01:10:17PM +0200, Jerome Ponsin wrote : > Yes it is a patch for glibc greater 2.1.3 (for me > it's 2.2). > > The problem doesn't appear with the cgi compilation... > Does that mean I can't install php module with Redhat 7.1 > for example, or is there something to do ? No it doesn't. It just means this is not a PHP bug so I'm off the thread. - Markus -- 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] mail() on *nix using ssmtp or an external smtp server?
Hello all! I have a frustrating problem with PHP and am hoping someone on the list might know a solution. I need to set up an apache server with php on Linux and AIX machines, and it all has to be in a chrooted environment. Most things work very well except for the mail() function. It appears that PHP on *nix systems is hard coded so that it is incapable of using an external smtp server instead needing a locally installed sendmail, however if php is built on a windows machine, it is hardcoded so it can only use an external smtp server. There seems to be no way around this. In terms of the design of PHP, I think this is a serrious error. As a result of the above problem, I have been looking for alternatives to sendmail, postfix, exim, and qmail because I need to not have any kind of full featured MTA in the chrooted environment. I found ssmtp[1] and esmtp[2], both of which would be satisfatory alternatives to sendmail and crew. Despite having both of these working from the command line in the chrooted environment, neither works with PHP when setting them with the "sendmail_path" option in php.ini. So my questions: - Does anyone know of a way to make PHP on *nix use an external smtp server without having to hack around in the source code of PHP? - Has anyone got either ssmtp or esmtp working with PHP? I would greatly appreciate if someone could offer a solution to me. best reagrds Markus [1]. http://packages.debian.org/stable/mail/ssmtp.html [2]. http://esmtp.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() on *nix using ssmtp or an external smtp server?
Hi Stephan, On Monday 16 August 2004 15:16, Stephan Fiedler wrote: > do I get you right, you can't invoke mail() because php can't find the > sendmail executable? Indeed you get me right. As I said in my post, alternatives such as qmail, exim, postfix and similar full featured MTA's in the chrooted environment are considered not acceptable because of the extra security risk in the case of a system compromise. I have to minimise as much as possible the scope for damage in case there is some kind of compromise. Your script is nice, but seems to rely on a full MTA inside the chrooted environment which I can't have. I tried something similar where I opened sockets on the external smtp server and wrote the mail into the socket, and this worked. The main problem with this is every script that uses a mail() function call has to be changed, and given that there are a lot of people who have and are supposed to be allowed to write such scripts on the servers, it's far from an ideal solution, and difficult to make those people use such a script. Second problem is I have to be able to handle failures in delivery, meaning implementing at least part of the smtp standard in a php script. It's all rather messy. > If this does not help you at all have a look at the sources and hack 'em > 'till they fit your needs # I've been worried about this kind of answer. Best, and I think quite a sensible step, would be if the PHP team changed the design of PHP and allowed *nix systems to use an external smtp server. best regards Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [OFF] - Fraudulent web orders - any ideas?
Hi Brian, One possibility is to use a MySQL database which records all failures with the credit card verifications, the IP address of the failure, and when the failure was. Write a script which looks at the failures and if it detects three or more failures from any IP in a set time frame (24 hours?), that address is blocked by the script for 24 hours from making any order. Your MySQL database should include at least the card number, time of failure, IP of failure. Then query the database based on the just attempted order, and if the count of failures from that IP address is greater than three (especially with different card numbers), refuse the order, and continue the block of that IP for 24 hours after the last failure. In particular, you could also check if the credit card numbers are different, and if they are, you know your dealing with a bad person and can take some steps to deal with them. While its maybe not an ideal solution, I can't think of anything better off hand. best regards Markus On Monday 16 August 2004 16:26, Brian Dunning wrote: > I have a simple PHP store, and it appears that someone is using it to > test credit card numbers. I'm getting a very high number of small [snip...] > I wonder if anyone has any experience with this, and if so, can you > suggest a way to deal with it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [OFF] - Fraudulent web orders - any ideas?
Hi Brian, One possibility is to use a MySQL database which records all failures with the credit card verifications, the IP address of the failure, and when the failure was. Write a script which looks at the failures and if it detects three or more failures from any IP in a set time frame (24 hours?), that address is blocked by the script for 24 hours from making any order. Your MySQL database should include at least the card number, time of failure, IP of failure. Then query the database based on the just attempted order, and if the count of failures from that IP address is greater than three (especially with different card numbers), refuse the order, and continue the block of that IP for 24 hours after the last failure. In particular, you could also check if the credit card numbers are different, and if they are, you know your dealing with a bad person and can take some steps to deal with them. While its maybe not an ideal solution, I can't think of anything better off hand. best regards Markus On Monday 16 August 2004 16:26, Brian Dunning wrote: > I have a simple PHP store, and it appears that someone is using it to > test credit card numbers. I'm getting a very high number of small [snip...] > I wonder if anyone has any experience with this, and if so, can you > suggest a way to deal with it? - This is a second try, my previous mail seems to have not come through... Sorry if people get this twice - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [OFF] - Fraudulent web orders - any ideas?
On Monday 16 August 2004 17:03, Brian Dunning wrote: > I think I may have solved it by an even simpler method: I emailed the > perpetrator to "thank him for all of his orders" to see what he'd say. :-) Great idea! (me shows the thumbs up) > Anyone know who the "proper authorities" are, to whom I could give my It doesn't matter where the fraud comes from, its worth following up because my guess is you could be dealing with a small part of some organised credit card fraud group. My best suggestion is to give the FBI a quick call or look at their web site. Although the orders may be foreign (what location comes back when you put the IP address into http://www.geobytes.com/IpLocator.htm), as far as I know, this is something the FBI can handle, and if they don't, I would expect they know who does. Hope this helps. best regards Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() on *nix using ssmtp or an external smtp server?
I've been trying further to get ssmtp working with apache/php in a chrooted envrionment and have had some success on Linux, so I'm sharing it with everyone else. I've also come to understand quite well how the mail() function is implemented in php too, and actually it's quite simple. All directories that I speak of below are relative to the new root directory in the chrooted environment. First thing is ssmtp expects to find its config files in /etc/ssmtp/, so that needs to be created inside the chrooted environment. The real killer for this whole thing however, and seemingly where everything was falling over, is that I had to put ssmtp in the /usr/sbin/ directory. For reasons that totally illude me, if ssmtp is in the /bin directory or anywhere else, mail() fails!?!?! The php.ini file needs to be in the usual /usr/local/lib/ location, and the sendmail parameter in the php.ini file needs to be set to "/usr/sbin/ssmtp -t". Do not try any other flags, otherwise mail() fails. The attempts I've made today have brought results and are reproducible. This also works in a normal (that is not chrooted) environment. The demanded location of the ssmtp binary is by far the most bizarre thing I have had in this whole exercise, and I would appreciate it if someone else might be able to take the time to confirm my findings. What I also don't understand is that if I have ssmtp in the /bin directory (or anywhere else for that matter) and invoke it from the command line in a chrooted environment, it works happily. It also worked happily when I wrote my own short C program that emulated what is done in the PHP mail delivery procedures. For what ever reason, it just refused to work through PHP if it was anywhere other than /usr/sbin/ssmtp. So ssmtp in a chrooted environment, provided it's in /usr/sbin/, works well on a Linux box, but on AIX machines, it still fails completely and I don't yet know why. As I have done this time, if I have any success, I will post to the list so other people can know. If anyone else has some success with this on AIX, I would greatly appreciate knowing about it. best regards Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() on *nix using ssmtp or an external smtp server?
Just an addennum to my previous post 10 minutes ago: For ssmtp to work with apache/php in a chrooted environment, some kind of shell needs to be present in the /bin directory. This seems to be a limitation of PHP rather than some kind of deficiency with ssmtp. This in itself is a kind of security risk since one of the main reasons of putting things in a chrooted jail is to minimise as much as possible the scope for an attacker to do anything if they do make it into the machine. best regards Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [OFF] - Fraudulent web orders - any ideas?
It may well be that they're using anonymous proxies. I know of a couple that spread the visiting IP addresses over a wide range of IP addresses, although everything does make it back eventually. Also possible is that they are using infected Windows machines and proxies. In the case of anonymous proxies, it should be possible to get the full range of IP addresses from somewhere and block all access through anonymous proxies - serious customers won't wast time going through such proxies, only people who really have something to hide go through such proxies. In the case of infected windows machines, you have a different problem because there are millions of such machines which act as spam relays, virus distributors, ... Keeping in mind that you want to make sales on your site as easy as possible, the best I can think of is to create a session cookie for the visitor which contains their IP address and check that IP address against one that you have stored locally for that session. If the IP address differs, blow the whistle on that visitor. To conceal that you are checking their IP address, call the cookie something like 'SaleID' or 'ItemID' and run the IP address through md5sum to get an md5 checksum and use that instead of the IP address itself. It wont get all of them, but it will make a difference, and make them have to work harder to get around the security on your site. In a case like this, you would also have to keep a database entry of what credit card number came from what IP address. If that card tries and fails more than twice and comes from different iP addresses every time, block that card number. Does Amex keep an online database of stolen/disabled credit cards? Maybe being able to query something like that in real time would be of advantage (actually I think some idea like this was presented very early in the thread). At the moment I don't have any other ideas. Hopefully what I've suggested here helps. best regards Markus On Monday 23 August 2004 23:33, Brian Dunning wrote: > The plot thickens. I added AVS *and* CVM to the site - and the Amex > orders are still going through. Amex ignores CVM, and the address was > correct, so the thieves must have gotten ahold of printed statements > that show the billing address. Any idea how to combat THAT? They are > using fake IP addresses now so I can't keep up by blocking IP's. > > Your clever ideas appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Where clause
The answer to this is quite simple if you look in a manual. mysql_query returns a resource id from which you extract the results using things like mysql_result() or mysql_fetch_object() or mysql_fetch_row(). Look up the manual on those commands. On Tuesday 24 August 2004 13:24, Phpu wrote: > Hi, > I have a table with 2 fields: id_from and id_to. > I want to interogate the database and to display the results if the id_to > is equal to some current id OR id_from id_from is equla to saame current > id. > > I use this but doesn't work > > $sql = "SELECT id_from, id_to FROM ids WHERE id_from ='$current_id' OR > id_to='$current_id' "; $result = mysql_query($sql); > > How can i do? > > Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] making sure sendmail function is on and running
This one is rather annoying as I have found out in the last couple of weeks. Depending on if your apache/php is on Windows or Unix, one or the other of the configurations you mentioned is relevant. If you have Windows, PHP can only use an extrenal smtp server, so you have to open that server up to connections from your web server to your mail server. That could be on the same physical machine as your web server, in which case the mail server will have to be configured to accept connections from localhost. In this case, you use the SMTP and smtp_port paramaters, and the sendmail parameter is ignored. If you are on Unix, PHP can only use a locally installed and callable MTA (Mail Transport Agent). That defaults to Sendmail, but Postfix, Exim, Qmail, and a few other MTA's that simulate Sendmails' functionality are acceptable. In this case, you use the sendmail parameter, which should be executable and configured, and the two parameters for Windows (which would actually be quite useful on Unix systems too) are ignored. You shouldn't need to do any port forwarding as long as both your Web and Mail servers are freely accessible to each other, say behind the firewall. Hope this sheds some light for you. regards markus. On Tuesday 24 August 2004 15:47, [EMAIL PROTECTED] wrote: > Background: > Server-Apache 1.3.31 > OS-Windows XP > PHP-5 > Problem-I'm trying to run eFiction, a story/fanfiction archive script. On > this, people self register, and they are supposed to get an e-mail with > their password. However, I and one other attempted signing up, and neither > of us got our password-email. After doing research, I heard I needed to > make sure that my sendmail function was activated. > > How do I make sure that my sendmail function is on and running? I read the > documentation and checked my php.ini, but I have some doubts. > > 1. My php.ini doesn't seem to include everything that should be either. In > the documentation, it shows your mail section having four parts: SMTP, SMTP > Port, sendmail_from, sendmail_path. However, php.ini looks like this > (windows section): > > [mail function] > ; For Win32 only. > SMTP = localhost > smtp_port = 25 > > ; For Win32 only. > ;sendmail_from = [EMAIL PROTECTED] > > There is a sendmail_path down below, but it is under the For Linux > Only section. What's with that? > Also, I have a router. Do I need to port-forward port 25 to get > sendmail to work? > Thanks in advance. > > -Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php