RE: [PHP] VAR and variables
At 10:50 AM + 1/29/01, Tim Ward wrote: -Original Message- From: Steve Edberg [mailto:[EMAIL PROTECTED]] Sent: 25 January 2001 22:02 To: Matt; [EMAIL PROTECTED] Subject: Re: [PHP] VAR and variables At 3:00 PM -0600 1/25/01, Matt wrote: I have a question that may seem kind of silly, but I'm curious... When using PHP why would one use "var" to define a variable as opposed to just regularly creating it? Because that's the way it is ;). The var is part of the syntax of a class definition; it isn't used anywhere else. I don't know the actual deep reason for having it, as far as the parser is concerned, but it does make it clear - at least to me - what the class variables are. class definitions are the fundamental building blocks of object orientated programming. They define an object type which your object is an example of. The defined variables should be regarded as properties of the class rather than variables in the usual sense. If you're going to be strict about it you should not even refer to them directly outside the class definition but use methods to access and change them. Yes --- I was referring to the use of the keyword 'var' here (as opposed to nothing, or some _other_ construct), which I think was the original question. You can also initialize the variable here, too: var $a = 5; not any more you can't ... use the constructor According to the docs, you can still use a _constant_ initializer in PHP4 (I use them in 4.0.4), just not a variable one. From http://www.php.net/manual/en/language.oop.php: Note: In PHP 4, only constant initializers for var variables are allowed. Use constructors for non-constant initializers. Of course, this might not be the official OOP usage, but this is PHP's way (I'd call it Pseudo-OOP, but the acronym for that isn't all that pleasant ;) - steve -- +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-- FBI Special Agent Dale Cooper ---+ -- 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 Triad
"PHPTriad for Windows installs a PHP server environment on Windows platforms. The basic installer installs PHP, MySQL, Apache and PHPMyAdmin. The most recent version of PHPTriad is 1.4 and was released at the end of December, 2000." http://www.phpgeek.com/phptriad.php -Original Message- From: [ rswfire ] [SMTP:[EMAIL PROTECTED]] Sent: 27 January 2001 19:57 To: [EMAIL PROTECTED] Subject: [PHP] PHP Triad What is PHP Triad? How can I learn more about it?? *** This email and any files transmitted with it are confidential and are solely for the use of the individual or organisation to whom they are addressed. If you have received this mail in error please notify the system administrator at +353 1 6399700 or by email to [EMAIL PROTECTED] This email message has been swept for computer viruses. Managed Solutions Corporation, Enterprise Customer Relationship Management, Workflow and Contract Administration. Tel: 353 1 639 9700 Fax: 353 1 639 9701 Don't forget to visit our website at http://www.managed-solutions.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 Digest 29 Jan 2001 21:29:50 -0000 Issue 481
php-general Digest 29 Jan 2001 21:29:50 - Issue 481 Topics (messages 37091 through 37102): confused about getenv arguements 37091 by: Noel Akins 37094 by: Rasmus Lerdorf Thankz... 37092 by: [ rswfire ] IIS and PHP authorization 37093 by: Shane McBride 37095 by: Rasmus Lerdorf 37096 by: Shane McBride 37097 by: Rasmus Lerdorf Re: Using PHP to do centralized site authentication 37098 by: Kristofer Widholm PHP and Oracle resources 37099 by: Kristofer Widholm Re: VAR and variables 37100 by: Steve Edberg mail( ) question 37101 by: Fang Li Re: PHP Triad 37102 by: Paul Grant Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- Hello, I found this script at zend. Please note the getenv("HTTP_REFFERER"). ? /* Anti-leech bandwidth protecter by Corey Milner, http://www.odey.com. Turn the refererring URL into a variable */ $from = getenv("HTTP_REFERER"); /* Check to see if the URL in the variable is a valid referrer. Add the page URL which you would like people to arrive from here. */ if ($from != "http://www.yoursite.com/validpage.htm") /* If the URL is valid, page loads now */ /* If URL is invalid the following error message and proper link appears, enter your custom error message and a hyperlink to the valid URL you entered above here*/ {print(" Sorry you have tried to link to a page which does not accept visitors directly. br a href=http://www.yoursite.com/validpage.htmCLICK HERE/a to enter"); /* Prevent the rest of the page from loading */ exit;} ? I went to check getenv in the php manual, and it said "You can see a list of all the environmental variables by using phpinfo(). You can find out what many of them mean by taking a look at the CGI specification, specifically the page on environmental variables. I made a php script phpinfo(INFO_ALL) to return everything for my host and did not see HTTP_REFFERER, not did I see any of the other args that were in the comments on the getenv page. I looked at the linked cgi pages and didn't find anything there either. If by not seeing these HTTP_like variables in my phpinfo, does that mean they are unavailable to me to use? Do they have to be setup during the install of php/apache? Where can I get more info on these getenv args/vars? Thanks Just put ?phpinfo()? in a file and read through it. Note that HTTP_REFERER (1 R) is only set if you click on a link to get to the page. Also note that relying on HTTP_REFERER for anything important is not safe. Anybody can spoof this variable. -Rasmus On Sat, 27 Jan 2001, Noel Akins wrote: Hello, I found this script at zend. Please note the getenv("HTTP_REFFERER"). ? /* Anti-leech bandwidth protecter by Corey Milner, http://www.odey.com. Turn the refererring URL into a variable */ $from = getenv("HTTP_REFERER"); /* Check to see if the URL in the variable is a valid referrer. Add the page URL which you would like people to arrive from here. */ if ($from != "http://www.yoursite.com/validpage.htm") /* If the URL is valid, page loads now */ /* If URL is invalid the following error message and proper link appears, enter your custom error message and a hyperlink to the valid URL you entered above here*/ {print(" Sorry you have tried to link to a page which does not accept visitors directly. br a href=http://www.yoursite.com/validpage.htmCLICK HERE/a to enter"); /* Prevent the rest of the page from loading */ exit;} ? I went to check getenv in the php manual, and it said "You can see a list of all the environmental variables by using phpinfo(). You can find out what many of them mean by taking a look at the CGI specification, specifically the page on environmental variables. I made a php script phpinfo(INFO_ALL) to return everything for my host and did not see HTTP_REFFERER, not did I see any of the other args that were in the comments on the getenv page. I looked at the linked cgi pages and didn't find anything there either. If by not seeing these HTTP_like variables in my phpinfo, does that mean they are unavailable to me to use? Do they have to be setup during the install of php/apache? Where can I get more info on these getenv args/vars? 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] It took some work, but everything is working exactly as it should be across the entire network ... both with IIS and Apache. Thank you, everyone, for your help tonight! It was very much appreciated... _ Get your FREE
[PHP] form validation :ereg ()
Hi again! I still did not fix my prob : I want to check, in a form, that the name input may include an alphabetical letter a- z, A-Z, or a space, or -, or à, or ä or ü etc how can i do that ? i used ereg("([a-z,A-Z][ë,à]?)",$name) then (!ereg("([a-z,A-Z,é,ê,è,ë,-,\t,à,ä,ï,ü,ö,û,â,ç])", $name)) i get the following warnin :REG_ERANGE:,invalid character range by the way how to add space " " and "-" ? Please help! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] unable to load dynamic librabry c:\php/php_oracle.dll!
hi! i got the following error whe i try to connect to an oracle dbs : unable to load dynamic librabry "c:\php/php_oracle.dll" this module is not found ! please help! _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Javascript doesn't work with PHP????
Hi! I am facing a very big Proble,m with this javascript below: I have gotten a form validation script. Please copy the script save as .php and try it out..It doesn't server the purpose...Can anybody point me to right direction: *** html headtitleDubaiteenz.comEcards?php echo"$category"; ?/title /head SCRIPT language="JavaScript" function verifyall() { missinginfo = ""; if(document.contact.toname.value =="") { missinginfo += "\n - Recepeint's Name"; } if(document.contact.fromname.value =="") { missinginfo += "\n - Sender's Name"; } if ((document.contact.toemail =="") || (document.contact.toemail.value.indexOf('@') == -1)|| (document.contact.toemail.value.indexOf('.') == -1)) { missinginfo += "\n - Recepient's Email Address"; } if ((document.contact.fromemail =="") || (document.contact.fromemail.value.indexOf('@') == -1)|| (document.contact.fromemail.value.indexOf('.') == -1)) { missinginfo += "\n - Sender's Email Address"; } if(document.contact.message.value =="") { missinginfo += "\n - Message"; } if (missinginfo != "") { missinginfo ="===\n" + " www.DubaiTeenz.com \n" + "===\n" + " \n" + "You failed to correctly fill in your :-\n" + missinginfo + "\n" + "\nPlease re-enter and submit again!"; alert(missinginfo); return false; } else return true; } /SCRIPT body ?php $img .= "b.jpg"; ? h3 align="center"font face="'Comic Sans MS',Arial" size="2" color="Black"Personalise this card font color="red"Now!!!/font/font/h3 hr table width="70%" border="0" cellspacing="0" cellpadding="0" align="center" tr td align="center"font face="'Comic Sans MS',Arial" size="4" color="Black"iTo Recepient/i/font/td /tr tr td align="center"img src="./images/? echo"$img"; ?"/td /tr tr td align="center"font face="'Comic Sans MS',Arial" size="2" color="Black"bMessage comes here.../b/font/td /tr tr tdnbsp;/td /tr tr td align="center"font face="'Comic Sans MS',Arial" size="2" color="red"i- Sender/i/font/td /tr /table brbr form name="contact" action="preview.php" method="post" input type="hidden" name="img" value="? echo "$img"; ?" input type="hidden" name="category" value="? echo "$category"; ?" !-- Outline Table-- table width="70%" align="center" cellpadding="1" border="0" cellspacing="0" bgcolor="Black" tr td valign="top" table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" tr td colspan="3" align="center" bgcolor="#00"font face="Arial,Verdana" color="White"Fill out the form below, then click the Continue button to Preview:/font /td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"font face="Arial,Verdana" size="2" Recepient's name/font/td td bgcolor="#FF"font face="Arial,Verdana" size="2"Recepients Email/font/td /tr tr td align="right" bgcolor="#FF"font face="Arial,Verdana" To:/font/td td bgcolor="#FF"input type="text" name="toname" size="30"/td td bgcolor="#FF"input type="text" name="toemail" size="30"/td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr /tr tr td colspan="3" bgcolor="#F"img src="../miss_you_malefriend/images/spacer.gif" width="134" height="1" alt="" border="0"/td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"font face="Arial,Verdana" size="2"Your name/font/td td bgcolor="#FF"font face="Arial,Verdana" size="2"Your Email/font/td /tr tr td align="right" bgcolor="#FF"font face="Arial,Verdana" From:/font/td td bgcolor="#FF"input type="text" name="fromname" size="30"/td td bgcolor="#FF"input type="text" name="fromemail" size="30"/td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr tr td colspan="3" align="center" bgcolor="#FF"font face="Arial,Verdana"You may enter a personal message below:/font/td /tr tr td colspan="3" align="center" bgcolor="#FF"textarea name="message" cols="40" rows="5"/textarea/td tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr tr td colspan="3" align="center" bgcolor="#FF"input type="submit" value="Click here to CONTINUE"/td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr /table /td /tr /table /form /body /html
[PHP] Apache/PHP Configuration Problem on NT5
My apologies if you receive this message twice, I'm not sure if it went through the first time. I've set up an ErrorDocument 404 in httpd.conf to point to a local PHP file. When I attempt to access a page that doesn't exist, rather than seeing this page, I get an Internal Error 500. If I go into the error.log, I find the following: [Sun Jan 28 15:18:35 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/php/php.exe This was working for a while, then it suddenly stopped working -- resulting in the problem mentioned above. Any ideas on what's happening and how to fix the problem? _ Get your FREE download of MSN Explorer at http://explorer.msn.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] Win32 - Mail SMTP ???
a listmember claiming to be Jon Shoberg wrote: I have PHP-4.0.1 running on my Win200 Pro devel box though the IIS DLL and SMTP services running. I have SMTP enabled on this machine and have outlook express configured to send mail though the local SMTP service. I simply told O.Express the outgoing mail server was my machine (just told it the machine name). Now to the PHP stuff I can't seem to get the mail function to work. A server error gets returned. I am trying to run a simple script though the PHP.EXE executable. I've tried editing the php.ini with the SMTP being localhost, my machine's name, and IP address ... I keep getting the same error. both PHP.EXE and PHP.INI reside in c:\winnt\system32 so there should not be a path problem And outlook works? What did you fill in in php3.ini at SMTP= sendmail_from = ? Is the server error more specific? Chris -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -- 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] Hey Rasmus!
There's something wrong with the PHP list... I was wondering if you could help me with a problem I'm having... I set up an ErrorDocument 404 in my httpd.conf file to point to a local file. For awhile, this was working fine, but now I'm receiving a 500 Internal Error message and the following is in the error.log file:[Sun Jan 28 15:53:28 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/php/php.exe Do you know what is causing this to happen? Also, I only get the error-handling page if it's a file in the root and includes an extension of .php, .phtml, or .html. It won't work if it's just a directory (that doesn't exist) or a file in a sub-directory, even if it has the extension. What's happening?? Any help you could offer would be greatly appreciated!! Robert _ Get your FREE download of MSN Explorer at http://explorer.msn.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] PHP + send mail using remote smtp server ?
Hello everybody ! Is it possible to send mail using PHP and a mail server that is different from the Web Server ? I would appreciate any help. Thank you. Sam -- 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] ibm-db2 support
Greetings: I'm using RH6.2, DB2 V7.1, PHP-4.0.4pl1, Apache 1.3.14, and Pgsql 7.0.3. I've been able to ./configure successfully support for apache, pgsql, db2 but come time to compile, make ends with the following error: In file included from internal_functions.c:38: /usr/local/php-4.0.4pl1/ext/odbc/php_odbc.h:60:sqlcli.h: no such file or directory . . . make ends. Anyone have an idea what's going on and how to fix it?? TIA. bill sneed, prospect, maine. -- 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] outlook php
hi! do someone knows how to trigger a php file from outlook? i have an html file where user adds his email address, if the email does not exist, a mail undelevery will be recieved in a certain email address, so what i like to do, is that, once an email is received, the email address will be sent as argument to a program that will deleted it rom my database! thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] sessions or db for shopping cart
I am about to build my own shopping cart but would like some feedback on the following: 1. Using arrays stored in a PHP4 session vs. a database for storing cart details. 2. What is the best method of passing session data if cookies disabled. I hope you can help... Matthew -- 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] ereg()
Hi is the following right? ereg("[a-zA-Zéêèë\sbàäïüöûâç-]", $firstname) cause even when i type a number it accepts it ! however i want only letters - and space ! thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Server VS Client script validation
Hi! What's best ? using client script while validating form inputs(javasript or vbscript) or using php for validating! with the first way, i can trigger alert ! however with the second one, i have to show up a whole page for just saying that there are errors, go back to the form ! any ideas ? thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] ereg_replace all items in a array
G'day PHP'ers I am trying highlight the results from a search, so far I have this working but only if the string is an exact match ie: case sensitive, for example: ?php $keywords = "foo"; $data = "This is a lower foo. This is an upper FOO. This is a ucase Foo"; $lower = strtolower($keywords); $upper = strtoupper($keywords); $ucase = ucwords($keywords); $words = array($lower, $upper, $ucase); while ( list($key, $val) = each($words) ) { $hilite = "font color=\"#ff\"" . $val . "/font"; $replaced = ereg_replace($val, $hilite, $data); } echo $replaced; ? Now as metioned this seems to work only for "foo" does anyone have any idea why? Also I need to be able to support mutiple keywords ie: foo Foo FOO, so basically I know I could split(" ", $keywords) then some how traverse the array making a new array of all possible case combinations then in my while loop replace each occurance found in $data with the highlighted replacment, sounds easy hmm If anyone has any ideas or can see what I am doing wrong so far, it would be mutch appreciated. Regards, Joseph -- 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] Apache/PHP Configuration Problem on NT5
I have set up an ErrorDocument 404 in httpd.conf to point to a PHP file in the root of my documents. It was working, now suddenly it has stopped working. Here's the scenario: When I attempt to view a page that is not there, I receive a 500 Internal Error Message, as follows: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.14 Server at swifte.dev Port 8080 If I look at the error log, I find the following line: [Sun Jan 28 15:18:35 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/php/php.exe Any ideas on how to fix this problem? _ Get your FREE download of MSN Explorer at http://explorer.msn.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] PHP compile with ODBC support (iODBC x Openlinkx unixODBC...) and MyODBC
Hi, We are currently configuring PHP4.0.4 with MySQL and Apache. We *need* to access MySQL via ODBC as well. Which is the best thing to do? There are many options of different ODBC drivers that can be configured, like 'iodbc' or 'openlink' from Openlink or unixODBC. Which driver is best? Which has better administration tools? Which has GUI's? Any comments about pros and cons about each one, functionalities available, ease of installation ? When building PHP, I know I should choose among options like (I quote here from memory): --with-iodbc --with-openlink --with-unixODBC --with-customODBC I tried building it with iODBC support, but make failed because of some source header files needed that were missing. About MyODBC: it is just an API and not the proper driver I suppose. We are going to access the Linux server both locally as well as remotely from Windows98 workstations. So I believe we should install MyODBC only on our Windows clients machines and not on the server, right? What about MySQLGUI? Should I install it only at my windows machines or also on the server. Is it somewhat similar to what I have seen about a unixODBC grphical manager for KDE? Any tips would be greatly appreciated, TIA, Paulo
[PHP] where to get php_oracle.dll for win32?
Hi! i still have'nt found the php_oracle.dll file ! i've checked in php4win.de but in vain! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Importing MS Access into MySQL?
Hey all, I heard somewhere (I think) that it's possible to import a Microsoft Access file (when saved as a delimited text file) into a MySQL table Just wondering whether or not this is true, and if it is, where I might find a tutorial / some literature on how I might go about doing it. Thanks, as always, in advance :) James. -- 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] Resize the pop-up window
Hello, I know this question is out of PHP, but I'll very appreciate if some guru here could help me out. I have a link, which will pop up a new window, but the problem is: I don't know how to resize the new popped-up window. My code is like this: A HREF="www.intc.com" target="_blank" intel connection /A Thank you very much in advance. David _ Get your FREE download of MSN Explorer at http://explorer.msn.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] PHP oop in C
Hello, Does anyone know how to take a PHP class and move it directly into PHP's C code, OR (even better) to move it into C code that compiles in a separate binary object (e.g. myobj.o), and is then linked to the php executable (or httpd executable)? For example, how can I move this code into C? ? class myObject { function myObject { $this-data = "hello!"; } function hello () { echo $this-data; } } ? Thanks! -Matt -- 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] XML to MySQL
Does anyone know of a script that will take data from XML/RDF news feeds and automatically INSERT into a MySQL database? I have a news script that I can make changes to, but I would also like to be able to automatically insert data into the database that my news script is running on.
[PHP] Problem!
1. $date = "20010101"; How could I output 01 01 2001 (or make it 3 variables, like day, month, year)? 2. What is the best way to encrypt (using PHP and MySQL)? Could you please answer me directly by mailadr. ([EMAIL PROTECTED]), because I'm currently not a member of this list at home! - Fredrik A. Takle [EMAIL PROTECTED]
[PHP] Announcement: Smarty template engine 1.2.1 released
Changes: - added ability to specify template and compile directory locations independently. - misc documentation updates additions http://www.phpinsider.com/php/code/Smarty/ -- 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] can .inc run php script?
hi all, can .inc file run scripts... example... //config.inc function watever() { //do something $var = something; return $var; } 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]
RE: [PHP] Problem with a regex!
Thanks a lot. I knew that, but last night I was just really tired :). I wasn't actually copy-pasting the code I had, so what I had at the time was correct as for case. As for assigning the ereg_replace to a variable, I figured that out about 20 minutes after i sent out my last mail last night (then I went into deep depression realizing how stupid of a mistake it was). Thanks for all your help {everyone who helped} --- Dustin Butler [EMAIL PROTECTED] wrote: Zack, Your not going to find {title} when $var = "TITLE". Everything PHP is case sensitive. Also $string is not changed if there are matches, ereg_replace returns the modified string. HTH Dustin I tried ereg_replace("\{" . $var . "\}",$value,$string) and it didnt return an error... but it didnt replace anything. Other ideas ? Either {'s are impossible to escape or php just doesnt like me... --- CC Zona [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Zack Ham) wrote: What I'm trying to do is run through it and replace {title} with an appropriate value. I have tried running ereg_replace("{$var}",$value,$string) and ereg_replace("\{$var\}",$value,$string). Neither work. They either do nothing or produce the error "Warning: invalid content of \{\}". Is $var=="title" (same case, no leading/trailing whitespace, etc.)? If so, then perhaps try: ereg_replace("\{" . $title . "\}",$value,$string) If not, then perhaps one of these: eregi_replace("\{" . $title . "\}",$value,$string) eregi_replace("\{title\}",$value,$string) _ Free email provided by --- http://sect0r.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] Sending Download Header
When doing this does the $file_name have to be in the current directory or can it be a URL? - Original Message - From: Bojan Gajic [EMAIL PROTECTED] To: Natasha [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 2:13 PM Subject: Re: [PHP] Sending Download Header header("Content-Disposition: attachment; filename=$file_name"); header("Content-Type: application/octet-stream"); file://or any other MIME type echo "Content"; HTH, Bojan Gajic Natasha wrote: Hi, I'm making a small thing, that sends download response to the header, so that I can build a file from some data in the mysql, and send the data. It can be both text and binary data, could some one help out how to go about this ? I know about Content-Disposition, but I don't know to build it. thanks. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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] -- 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] Outputting a 2 digit number 10
I normally solve this problem by doing a " 10" test, on the assumption it is quicker. Something like for ($i=00;$i$daysinmonth;$i++) { $str_i= (string) $i; if ( $i 10 ) { $str_i = "0$str_i"; } if ($i == $day) { echo("option SELECTED value=\"$str_i\"$str_i/option\n"); } else { echo("option value=\"$str_i\"$str_i/option\n"); } } ? echo"select name=\"form_date_day\""; $day = (date ("d")); $daysinmonth = (date("t")); for ($i=00;$i$daysinmonth;$i++){ if ($i == $day) { echo("option SELECTED value=\"$i\"$i/option\n"); } else { echo("option value=\"$i\"$i/option\n"); } } echo"/select" ? At 01:07 26/01/2001 +0800, you wrote: I need to enable a user to insert an 'NEWS' item into a mySQL table one of the definable limits for the user is to be the date that the news is to be displayed. Currently the collum is in a 'date' format and should be stored in a MMDD - being Australian we are used to the exact reverse of that so I though it best to produce a series of three select options in html and then joing the values before inserting them $form_date = $form_date_Year . $form_date_month . $form_date_day; CRUX: the looping format I'm using to make the options needs to output a 2 digit number as a single digit like 1 as compared to 01 will invalidate the date Sample of a loop I use to output an option ? echo"select name=\"form_date_day\""; $day = (date ("d")); $daysinmonth = (date("t")); for ($i=00;$i$daysinmonth;$i++){ if ($i == $day) { echo("option SELECTED value=\"$i\"$i/option\n"); } else { echo("option value=\"$i\"$i/option\n"); } } echo"/select" ? Any help will be apreciated Jamie - Brian White Step Two Designs Pty Ltd - SGML, XML HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [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]
[PHP] Non Expiring Cookie
Is this a never expiring cookie, or a "per" session cookie? I want to create a never expiring cooky. SetCookie ("MyNeverExpiringCookie", "This cookie should never expire"); Thanks! Karl -- 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] Not receiving [PHP] mail - is PHP Mailing List Down?
I haven't received mail from the PHP list since the 27th. Is it down? Please respond to: [EMAIL PROTECTED] Thank you. Karl -- 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] Apache
On Sunday 28 January 2001 03:57, [ rswfire ] wrote: 1. Why does $PHP_SELF include /php/php.exe in the variable? How can I stop it from doing that? You're using PHP as CGI. Try using the shared module. 2. Same thing with $SCRIPT_NAME as $PHP_SELF except it does not include the filename. It does, except it does not?? 3. How can I turn on directory browsing? I am receiving a Forbidden error whenever there isn't a default document in a directory. search for "Options " in your apache configs and add an "Inexes" to it -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match. - /. posting discussing the likelihood that an AC post that claimed to be posted by John Carmack during his honeymoon (and having the login info at home) was actually from him. -- 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] mail( ) question
This isn't going to work the way it's set up now. Javascript is processed by the visitor's browser, while PHP is processed by the server before the page is ever sent. So in essence, PHP doesn't care one bit what anything outside of the ?php ? tags does. Therefore, you're instructing PHP to do this: mail( That doesn't mean anymore to PHP than it does to me. It's definately not a function without the arguments and closing paren. If you're not following me, I suggest you go read up in the PHP manual and any sites you can find on the links page; you might even check the archives of this list, I know we've been over it several times. It's a matter of client-side scripting vs. server-side scripting. --toby Fang Li wrote: Hi All: Would anyone tell me how to correct the code in mail( ) function? Thanks a lot. html head scrip language="JavaScrip" function askEmailAddress( ){ var inputedData = prompt("The email address you want send to:"," "); if(confirm("The email address you want send to is" + inputedData + "?")){ alert("OK, the article will send to " + inputedData + "!"); } } /script /head body ... ?php mail(? script language="JavaScript" document.write(inputed_data)/script ?php , "My Subject", "Line 1\nLine 2\nLine 3"); ? /body /html Fang Li -- 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]
[PHP] Passing HTTP_COOKIE_VARS to functions
Can anyone tell me why this piece of code is not working - I'm finding that if I pass values rather then the HTTP_COOKIE_VARS["cookiename"] to the function it seems to work but I want to have this value a variable cookie (for obvious reasons). I cannot seem to find any more information on this function other then it is better to use this method rather then just using the $cookiename variable as it stops the variable being passed through the URL - though using these variables works fine. //a function to load Registered Users pref's overiteing Guest pref's function PrefResults($user, $password) { global $DB_Server, $HTTP_Host, $DB_Login, $DB_Password, $DB_Name, $DocRoot, $language_pref, $currency_pref, $notifyme_pref, $page_pref; $db = mysql_connect("$DB_Server", "$DB_Login","$DB_Password"); mysql_select_db("$DB_Name",$db); $result = mysql_query("SELECT language_pref, currency_pref, page_pref, notifyme_pref FROM users WHERE user_id=$user AND password=$password",$db); $pref_settings = mysql_fetch_array($result); $language_pref = $pref_settings["language_pref"]; $currency_pref = $pref_settings["currency_pref"]; $notifyme_pref = $pref_settings["notifyme_pref"]; $page_pref = $pref_settings["page_pref"]; } PrefResults($HTTP_COOKIE_VARS["cookie_user"],$HTTP_COOKIE_VARS["cookie_passw ord"]);
[PHP] LOOKING FOR CODE LOCATION IN PHP SOURCE....
Hey all, I've come to the realization that if I intend to be able to write a file to disk AS it's being uploaded via http, I will need to modify the PHP source directly. Just wondering, anyone know in what source file I should be looking for the HTTP UPLOAD handling code, I've looked through quite a few files in the /ext/standard source directory, to no avail yet. Thank you in advance to any and all for your help Tim Meader [EMAIL PROTECTED] ACS Government Solutions Group -- 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] Persistent connections and transactions
Frank Joerdens wrote: On Fri, Jan 26, 2001 at 11:01:14AM +, Nuno Silva wrote: [ . . . ] i ran across this transaction problem vs. persistent conn in pgsql some time ago. I found two workaround methods: - don't use persistent conn's :-) or; - start every conn with the usual pg_pconnect and then query a rollback to the server: $query="ROLLBACK work;" (this will kill any supposed transaction in ABORT STATE that some child had left). postgres don't support nested transactions (yet), but when it does maybe you should add multiple "ROLLBACK WORK;" queries :-) Ah. Very cool. What I _still_ don't quite understand, though, is _how_ exactly this situation could come about. And what the worst case would be. What if you don't kill the transaction in ABORT STATE? Ta, Frank Hi, this happens because pg_pconnect don't know about transactions. If some transaction reach ABORT and for some reason the script never makes it to COMMIT or ABORT queries the postgresql backend will be _always_ in ABORT STATE. The problem is present in several combinations... for instance: in mysql you could make the connection with one user to database X. While logged in you could change to database Y This database backend will be in database Y after that! Even if you persistent_connect with the original parameters! This is because the backend is never terminated and retains the last state, being it a ABORT STATE or another DB... :) queriing "ROLLBACK WORK;" right after the conect is my best shot at this one. Regards, Nuno Silva -- 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] Cookie with Netscape
I set up a cookie using the following command and it works fine under IE but not in Netscape. Am I doing something wrong? setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Please help me. Thanks much in advance. -- 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] Anyone out there that can help before my brain gets to hot?
Anyone out there that can help before my brain gets to hot? http://www.sakshaug.net/phps/loop.phps I have tried many different ways, but i'm for sure that you have to use recursive function for make this one... for ($iamgoingtomakeit=1; ;;) { echo "I'm going to make it!!!br"; } *take care* Best Regards, Christian Sakshaug -- Email: [EMAIL PROTECTED] Web: www.sakshaug.net Tel: +47 913 95 618 -- 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 Download Header
$file_name is just a name that scripts offers to the users in 'save as' dialog. If you want to let them download a 'real' file, you have to use fopen()/fpassthru() (or anything else you can think of, in order to open a file and print it's content) and fopen can take URL as an argument. HTH, Bojan Gajic WreckRman2 wrote: When doing this does the $file_name have to be in the current directory or can it be a URL? - Original Message - From: Bojan Gajic [EMAIL PROTECTED] To: Natasha [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 2:13 PM Subject: Re: [PHP] Sending Download Header header("Content-Disposition: attachment; filename=$file_name"); header("Content-Type: application/octet-stream"); file://or any other MIME type echo "Content"; HTH, Bojan Gajic -- 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] testing
I haven't received any emails from this list in over 24 hours... is it down or it it me just not receiving them Joseph E. Sheble [EMAIL PROTECTED] Wizaerd's Realm http://www.wizaerd.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] RE: confused about eval()
I don't know if anybody is curious or not, but I found my own problem... I changed the following code: $cVar = addslashes( $qrNews[$cContentField . "Text"] ); eval( "? " . $cVar . " ?" ); to: $cVar = $qrNews[$cContentField . "Text"]; eval( $cVar ); SO basically I removed the addslashes() (which I thought were necessary since the code snippet had quotes in them) and the ? and ? from the eval funciton call, and it works as expected Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = -Original Message- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 12:44 PM To: General PHP List Subject: confused about eval() I have searched the archives, php.net and zend.com, and cannot seem to come up with an answer as to why this isn't woking... I have the following code snippet stored in a database, and I'm trying to eval it with this line of code: $cVar = addslashes( $qrNews[$cContentField . "Text"] ); eval( "? " . $cVar . " ?" ); I've tried: eval( $cVar . " ?" ); eval( "? " . $cVar ); and I cannot get the code snippet to actually evaluate... here's the output I actually do get: TCE's Canvas Chat (Java Applet) if( !( $myFile = en( \"http://wizaerd.com/cgi-sys/mchat.cgi?channel=wizaerd.com\", \"r\" ))) { print( \"Cannot be opened\" ); exit; } while( !feof( $myFile )) { $myLine = fgets( $myFile, 255 ); print( $myLine . \" \" ); } fclose( $myFile ); Parse error: parse error in Unknown on line 0 the code in the database is correct cuz I can drop it into a PHP page and it runs as expected... Could somebody give me a hand with this? Thanx --- code as is in database --- if( !( $myFile = fopen( "http://wizaerd.com/cgi-sys/mchat.cgi?channel=wizaerd.com", "r" ))) { print( "Cannot be opened" ); exit; } while( !feof( $myFile )) { $myLine = fgets( $myFile, 255 ); print( $myLine . "BR" ); } fclose( $myFile ); Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.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] whois
There's a very cool service out there, you can go to for instance ba.whois-servers.net to find server for .ba. So you can basically go to ${TLD}.whois-servers.net to find server for $TLD. The trouble is that it's not really current. [jason@phpdev jason]$ nslookup es.whois-servers.net Name:whois.ripe.net Address: 193.0.0.129 Aliases: es.whois-servers.net ... no, thats not the right server. Some ccTLD's just don't *have* public whois servers. (ES is one of them, I contacted them and asked for their whois server address and they said to use their web interface, since giving me the IP would constitute a security risk(!)) Remember a good chunk of ccTLD registries are still being run from a single machine tucked under a desk in an office somewhere, too. A few months ago I spent a few days tracking down whois web interfaces and servers, and made the information into a nice little MySQL database, along with some PHP3 scripts that'll query it using either the server (if found) or pointing people to the web interfaces with the appropriate variables filled in to their form submission. You can see it running on www.inww.es in the WhoIs and the Availability Check areas (try doing an nslookup of that at es.whois-servers.net :)). Anyone interested in the data structure and underlying scripts, let me know and I'll see what I can do about packaging it up. Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- 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 .inc run php script?
You have to set up the webserver to accept .inc files as php scripts. The example you gave isn't actually running the function it's just defining it. If you include the .inc file in a .php file, it'll run whatever's in it as if it were part of the php file. If you directly call the .inc file from the browser without setting up the webserver properly, it'll output the source of the inc file. If you set up the webserver to use the php parser on inc files, it'll work fine. If you include the .inc file in a .php file, it'll work fine. John LYC wrote: hi all, can .inc file run scripts... example... //config.inc function watever() { //do something $var = something; return $var; } 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] -- Shawn Blaylock, ClipperNet Software Engineer [EMAIL PROTECTED] http://www.clipper.net/ Eugene OR 541-431-3360 x406 Toll Free 866-673-6260 x406 -- 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 List down ?
Does anyone know why the list keeps going down ? The last PHP List email I received was at 6 o clock my time Sunday morning, until a few minutes ago. Its not the first time it has happened. Has the list gone down for anyone else ? Adrian -- 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] Problems with majodomo
I was wondering if anyone has set it up from a website. the problem i am having is it does send the comfirmation back i have mail("$majordomo", "", "$action $list $email","From: $email"); where $action is subscribe or unsubscribe and $list is oe they pick Thanks ALan /'^'\ ( o o ) ---oOOO--(_)--OOOo Alan Todd Infoave.net Web Development ICQ : 159944 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] E Bay is going up again..
John, There are various reasons why what you suggested will not happen, if you really want to see why look in the archives there are plenty of posts. You have a delete key so use it. Rasmus already has Spam filters for the list but they only block certain email address' these are added, blocking *@yahoo.com isn't really an option either, so use you delete key, stop complaining and don't worry about it, yes it is annoying but every piece of Spam on the lists is reported to the correct people by me, im sure others do the same too, all of the last three Spam posts from yahoo accounts have been reported and yahoo have been very efficient at shutting them down and apologising. James -Original Message- From: Jonathan Sharp [mailto:[EMAIL PROTECTED]] Sent: 28 January 2001 03:59 To: tabathia; [EMAIL PROTECTED] Subject: RE: [PHP] E Bay is going up again.. Do I have to repeat myself about this topic? Sheesh! -Codeboy -- 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] [NEWBIE] PHP.INI
I want to put the php.ini in /etc/php Which argument do I have to attach to ./configure --?=/etc/php to accomplish this ? THX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-CVS] cvs: php4 /ext/com COM.c php_COM.h
Damn, cvs.php.net is down so I can't commit changes. Best to change the #if WIN32|WINNT to #ifdef PHP_WIN32 Also you should use BEGIN_EXTERN_C() and END_EXTERN_C() I know it's picky, but it's good for consistency. Andi At 03:41 AM 1/28/2001 +, Harald Radi wrote: phanto Sat Jan 27 19:41:43 2001 EDT Removed files: /php4/ext/com COM.c Modified files: /php4/ext/com php_COM.h Log: fixed unicodeconversion and parameter passing bugs in com and dotnet modules Index: php4/ext/com/php_COM.h diff -u php4/ext/com/php_COM.h:1.2 php4/ext/com/php_COM.h:1.3 --- php4/ext/com/php_COM.h:1.2 Sun Jul 2 16:46:38 2000 +++ php4/ext/com/php_COM.h Sat Jan 27 19:41:43 2001 @@ -3,6 +3,10 @@ #if WIN32|WINNT +#ifdef __cplusplus +extern "C" { +#endif + extern PHP_MINIT_FUNCTION(COM); extern PHP_MSHUTDOWN_FUNCTION(COM); PHP_FUNCTION(COM_load); @@ -11,6 +15,11 @@ PHP_FUNCTION(com_propget); PHP_FUNCTION(com_propput); extern zend_module_entry COM_module_entry; + +#ifdef __cplusplus +} +#endif + #define COM_module_ptr COM_module_entry #else -- 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 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] Maximum execution time exceeded!
hi all, when i am trying to calculate the number of rows with a '0' in a particular column using the following code, it is giving the 'Maximum execution time exceeded' message, eventhough after i gave set_time_limit(60), it didn't worked, infact now it is even worse the browser is getting siezed. $result=mysql_query("select * from mytable"); while ($avgrow=mysql_fetch_array($result)) { $prescene2 = $avgrow["scene2"]; $prescene4 = $avgrow["scene4"]; $prescene5 = $avgrow["scene5"]; $prescene7 = $avgrow["scene7"]; $prescene8 = $avgrow["scene8"]; $prescene9 = $avgrow["scene9"]; $i = 1; while ($prescene2 == 0) { $i=$i+1; } } printf ("Number of zeros=%d",$i); Can any one please help me with this. TIA kalyan __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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] PHP Lists keep going down ?
Does anyone know why the list keeps going down ? It hasn't happened for a while until now - I wouldn't worry myself too much over it :) -- 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] Cookie with Netscape
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: I set up a cookie using the following command and it works fine under IE but not in Netscape. Am I doing something wrong? setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Should be: setcookie("mycookie[1]", $domain, 0, "/", "mydomain.com"); the expire time is an integer, not a string. - -- Aaron Turner [EMAIL PROTECTED]|synfin.net|linuxkb.org URI:www.synfin.net They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6 All emails by me are PGP signed; a lack of a signature indicates a forgery. I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp17rkACgkQhweYF/hu2ubpNgCdH1/7RrnWldqfUfjJntSSe3D9 lhEAnjquZx1k+m+LgPzZV0xSr/k15iNJ =iVu3 -END PGP SIGNATURE- -- 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-CVS] cvs: php4 /ext/com COM.cpp conversion.c conversion.h php_COM.h php_typedef_VARIANT.h typedef_VARIANT.c
phanto Mon Jan 29 13:54:10 2001 EDT Modified files: /php4/ext/com typedef_VARIANT.c php_typedef_VARIANT.h php_COM.h conversion.h conversion.c COM.cpp Log: use *_EXTERN_C() and PHP_WIN32 Index: php4/ext/com/typedef_VARIANT.c diff -u php4/ext/com/typedef_VARIANT.c:1.1 php4/ext/com/typedef_VARIANT.c:1.2 --- php4/ext/com/typedef_VARIANT.c:1.1 Sat Jan 27 19:24:50 2001 +++ php4/ext/com/typedef_VARIANT.c Mon Jan 29 13:54:09 2001 @@ -410,4 +410,4 @@ zend_register_internal_class(VARIANT_class_entry); } -#endif +#endif /* PHP_WIN32 */ Index: php4/ext/com/php_typedef_VARIANT.h diff -u php4/ext/com/php_typedef_VARIANT.h:1.1 php4/ext/com/php_typedef_VARIANT.h:1.2 --- php4/ext/com/php_typedef_VARIANT.h:1.1 Sat Jan 27 19:24:50 2001 +++ php4/ext/com/php_typedef_VARIANT.h Mon Jan 29 13:54:09 2001 @@ -1,19 +1,20 @@ #ifndef PHP_TYPEDEF_VARIANT_H #define PHP_TYPEDEF_VARIANT_H -#if WIN32|WINNT +#if PHP_WIN32 extern PHP_MINIT_FUNCTION(VARIANT); extern PHP_MSHUTDOWN_FUNCTION(VARIANT); extern zend_module_entry VARIANT_module_entry; + #define VARIANT_module_ptr VARIANT_module_entry #else #define VARIANT_module_ptr NULL -#endif /* Win32|WINNT */ +#endif /* PHP_WIN32 */ #define phpext_VARIANT_ptr VARIANT_module_ptr Index: php4/ext/com/php_COM.h diff -u php4/ext/com/php_COM.h:1.3 php4/ext/com/php_COM.h:1.4 --- php4/ext/com/php_COM.h:1.3 Sat Jan 27 19:41:43 2001 +++ php4/ext/com/php_COM.h Mon Jan 29 13:54:09 2001 @@ -1,23 +1,27 @@ #ifndef PHP_COM_H #define PHP_COM_H -#if WIN32|WINNT +#if PHP_WIN32 -#ifdef __cplusplus -extern "C" { -#endif +BEGIN_EXTERN_C() extern PHP_MINIT_FUNCTION(COM); extern PHP_MSHUTDOWN_FUNCTION(COM); -PHP_FUNCTION(COM_load); -PHP_FUNCTION(COM_invoke); -PHP_FUNCTION(com_propget); -PHP_FUNCTION(com_propput); +extern int php_COM_get_le_idispatch(); + extern zend_module_entry COM_module_entry; +extern zend_class_entry com_class_entry; + +END_EXTERN_C() #ifdef __cplusplus -} + +extern pval php_COM_get_property_handler(zend_property_reference *property_reference); +extern int php_COM_set_property_handler(zend_property_reference *property_reference, +pval *value); +extern char *php_COM_error_message(HRESULT hr); +extern void php_COM_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, +zend_property_reference *property_reference); + #endif #define COM_module_ptr COM_module_entry @@ -25,9 +29,7 @@ #else #define COM_module_ptr NULL - -#endif /* Win32|WINNT */ -#define phpext_COM_ptr COM_module_ptr +#endif /* PHP_WIN32 */ #endif /* PHP_COM_H */ Index: php4/ext/com/conversion.h diff -u php4/ext/com/conversion.h:1.1 php4/ext/com/conversion.h:1.2 --- php4/ext/com/conversion.h:1.1 Sat Jan 27 19:24:50 2001 +++ php4/ext/com/conversion.h Mon Jan 29 13:54:09 2001 @@ -1,18 +1,14 @@ #ifndef CONVERSION_H #define CONVERSION_H -#ifdef __cplusplus -extern "C" { -#endif +BEGIN_EXTERN_C() -void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg); -void php_pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, pval *pval_type); -void php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent); -OLECHAR *php_char_to_OLECHAR(char *C_str, uint strlen); -char *php_OLECHAR_to_char(OLECHAR *unicode_str, uint *out_length, int persistent); +extern void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg); +extern void php_pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, pval *pval_type); +extern void php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent); +extern OLECHAR *php_char_to_OLECHAR(char *C_str, uint strlen); +extern char *php_OLECHAR_to_char(OLECHAR *unicode_str, uint *out_length, int +persistent); -#ifdef __cplusplus -} -#endif +END_EXTERN_C() #endif Index: php4/ext/com/conversion.c diff -u php4/ext/com/conversion.c:1.1 php4/ext/com/conversion.c:1.2 --- php4/ext/com/conversion.c:1.1 Sat Jan 27 19:24:50 2001 +++ php4/ext/com/conversion.c Mon Jan 29 13:54:09 2001 @@ -1,4 +1,7 @@ +#ifdef PHP_WIN32 + #include "php.h" +#include "php_COM.h" #ifdef CP_THREAD_ACP #define PHP_UNICODE_CODEPAGE CP_THREAD_ACP @@ -6,16 +9,17 @@ #define PHP_UNICODE_CODEPAGE CP_ACP #endif +// prototypes -__declspec(dllexport) void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg); -__declspec(dllexport) void php_pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, pval *pval_type); -__declspec(dllexport) void php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent); -__declspec(dllexport) OLECHAR *php_char_to_OLECHAR(char *C_str, uint strlen); -__declspec(dllexport) char *php_OLECHAR_to_char(OLECHAR *unicode_str, uint *out_length, int persistent); +PHPAPI void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg); +PHPAPI void php_pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, pval *pval_type); +PHPAPI void php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent); +PHPAPI OLECHAR
RE: [PHP] can .inc run php script?
Well if your using .inc then your probably including this into a php file via include "config.inc"; in which case it will become part of a php file so yes it will be parsed. If your trying to run it as a standalone then that will depend on your web server config and which files you've told it to parse as php files. -Brian * -Original Message- From: John LYC [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 6:31 AM To: PHP List Subject: [PHP] can .inc run php script? hi all, can .inc file run scripts... example... //config.inc function watever() { //do something $var = something; return $var; } 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 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] Cookie with Netscape
Thank you for your feedback! I tried it but it didn't make a difference. I printed the var right after the set and it returns null. setcookie("cbcookie1",$domain,0,"/","mydomain.com"); $domain = $HTTP_COOKIE_VARS["cbcookie1"]; echo "domain($domain)br"; -Original Message- From: Aaron D. Turner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 2:29 PM To: Eugene Yi (InfoSpace Inc) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Cookie with Netscape -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: I set up a cookie using the following command and it works fine under IE but not in Netscape. Am I doing something wrong? setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Should be: setcookie("mycookie[1]", $domain, 0, "/", "mydomain.com"); the expire time is an integer, not a string. - -- Aaron Turner [EMAIL PROTECTED]|synfin.net|linuxkb.org URI:www.synfin.net They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6 All emails by me are PGP signed; a lack of a signature indicates a forgery. I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp17rkACgkQhweYF/hu2ubpNgCdH1/7RrnWldqfUfjJntSSe3D9 lhEAnjquZx1k+m+LgPzZV0xSr/k15iNJ =iVu3 -END PGP SIGNATURE- -- 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!
$today = getdate(); $month = $today[month]; $mday = $today[mday]; $year = $today[year]; print "$month $mday, $year"; -Brian ** -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem! 1. $date = "20010101"; How could I output 01 01 2001 (or make it 3 variables, like day, month, year)? 2. What is the best way to encrypt (using PHP and MySQL)? Could you please answer me directly by mailadr. ([EMAIL PROTECTED]), because I'm currently not a member of this list at home! - Fredrik A. Takle [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] Cookie with Netscape
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That's becuase the cookie variable is not available to PHP until the next page load. It's a limitation of cookies/HTTP not PHP. On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: Thank you for your feedback! I tried it but it didn't make a difference. I printed the var right after the set and it returns null. setcookie("cbcookie1",$domain,0,"/","mydomain.com"); $domain = $HTTP_COOKIE_VARS["cbcookie1"]; echo "domain($domain)br"; -Original Message- From: Aaron D. Turner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 2:29 PM To: Eugene Yi (InfoSpace Inc) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Cookie with Netscape -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: I set up a cookie using the following command and it works fine under IE but not in Netscape. Am I doing something wrong? setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Should be: setcookie("mycookie[1]", $domain, 0, "/", "mydomain.com"); the expire time is an integer, not a string. - -- Aaron Turner [EMAIL PROTECTED]|synfin.net|linuxkb.org URI:www.synfin.net They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6 All emails by me are PGP signed; a lack of a signature indicates a forgery. I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp17rkACgkQhweYF/hu2ubpNgCdH1/7RrnWldqfUfjJntSSe3D9 lhEAnjquZx1k+m+LgPzZV0xSr/k15iNJ =iVu3 -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp18dUACgkQhweYF/hu2uZ+LwCfZfjsoyS7ZLXCyZs+9BwYEhCR 4KkAnj39fqbYrykBB1TovSGx4kMBQ9gN =rwDT -END PGP SIGNATURE- -- 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] Maximum execution time exceeded!
Of course, you have this code: while ($prescene2 == 0) { $i=$i+1; } Where $prescnene2 is not modified, hence you get an endless loop. When you increase the timeout, that loop just gets longer to run. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Chakravarthy K Sannedhi" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 29, 2001 2:37 PM Subject: [PHP] Maximum execution time exceeded! hi all, when i am trying to calculate the number of rows with a '0' in a particular column using the following code, it is giving the 'Maximum execution time exceeded' message, eventhough after i gave set_time_limit(60), it didn't worked, infact now it is even worse the browser is getting siezed. $result=mysql_query("select * from mytable"); while ($avgrow=mysql_fetch_array($result)) { $prescene2 = $avgrow["scene2"]; $prescene4 = $avgrow["scene4"]; $prescene5 = $avgrow["scene5"]; $prescene7 = $avgrow["scene7"]; $prescene8 = $avgrow["scene8"]; $prescene9 = $avgrow["scene9"]; $i = 1; while ($prescene2 == 0) { $i=$i+1; } } printf ("Number of zeros=%d",$i); Can any one please help me with this. TIA kalyan __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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] IIS and PHP authorization
At 06:48 28.01.2001, Rasmus Lerdorf said: [snip] There is an ISAPI module. [snip] yes, which is more than unstable as I found... Using a good machine (2xXeon 550, 512 MB, NT4/SP6a/IIS4) it constantly crashed being a filter, and crashed being used as MIME plugin latest at the 6th page access. ...ebird O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- 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] MySQL Backup Daemon
Howdy, The company I work for has developed a backup daemon for MySQL (Windows and x86 Linux) that uses a php web interface. We will be destributing it commercially, but would like to offer it for beta testing to a limited number of users. If anyone here has interest in testing the software, please contact us at [EMAIL PROTECTED] Please, do NOT reply to the list!! I'm sending the offer to the list because I feel that users of this list, many of whom use MySQL on a daily basis, could greatly benefit from such a tool and are likely to represent the needs of our customers. Its suppose to work for regularly scheduled backup of multiple servers as well as restore the databases should all hell break loose. If you are interested, please send an e-mail to [EMAIL PROTECTED] including what platform (Wndows, Linux, both) you would like to run it on, and we'll send you more information. We plan to make it available for linux on PowerPC and Sparc64 as well, but not now. Thank you for your time. -=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael A. Peters Abriasoft Senior Developer http://www.abriasoft.com/ (510) 623-9726x357 Fax: (510) 249-9125 -- 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] Cookie with Netscape
Yeah, that's what I read from the documentation but it works in IE. I mean I place the print right after the setcookie command, and it prints the cookie value when successfully set. Of course, the next page will fail because of the print before header. -Original Message- From: Aaron D. Turner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 2:42 PM To: Eugene Yi (InfoSpace Inc) Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Cookie with Netscape -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That's becuase the cookie variable is not available to PHP until the next page load. It's a limitation of cookies/HTTP not PHP. On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: Thank you for your feedback! I tried it but it didn't make a difference. I printed the var right after the set and it returns null. setcookie("cbcookie1",$domain,0,"/","mydomain.com"); $domain = $HTTP_COOKIE_VARS["cbcookie1"]; echo "domain($domain)br"; -Original Message- From: Aaron D. Turner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 2:29 PM To: Eugene Yi (InfoSpace Inc) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Cookie with Netscape -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 29 Jan 2001, Eugene Yi (InfoSpace Inc) wrote: I set up a cookie using the following command and it works fine under IE but not in Netscape. Am I doing something wrong? setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Should be: setcookie("mycookie[1]", $domain, 0, "/", "mydomain.com"); the expire time is an integer, not a string. - -- Aaron Turner [EMAIL PROTECTED]|synfin.net|linuxkb.org URI:www.synfin.net They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6 All emails by me are PGP signed; a lack of a signature indicates a forgery. I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp17rkACgkQhweYF/hu2ubpNgCdH1/7RrnWldqfUfjJntSSe3D9 lhEAnjquZx1k+m+LgPzZV0xSr/k15iNJ =iVu3 -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp18dUACgkQhweYF/hu2uZ+LwCfZfjsoyS7ZLXCyZs+9BwYEhCR 4KkAnj39fqbYrykBB1TovSGx4kMBQ9gN =rwDT -END PGP SIGNATURE- -- 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 Classes
I know this has been discussed several times before, but the only actual class I've found information on - tap internet - had a problem and cancelled their class. I am willing to travel within the US to take a comprehensive PHP and/or mySQL/PHP class, but I can't find one to take. Could you please share any/all information you have on PHP classes that are now available? -=- christopher calicott P L U S H, L T D. 7979 Westheimer #1601 Houston, Texas 77063 Main: (713) 789-0690 Cell: (832) 689-6009 ICQ: 2520536 www.pureplush.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] Importing MS Access into MySQL?
There are a few ways to do this... 1) Save your data to a comma separated list and use the import features of mysql. This is the easiest option for one time use. 2) Use MyODBC, create a link table, and paste the rows into it. This is one of the easier options if you plan on doing it repeatedly. Jon Snell -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 3:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Importing MS Access into MySQL? Hey all, I heard somewhere (I think) that it's possible to import a Microsoft Access file (when saved as a delimited text file) into a MySQL table Just wondering whether or not this is true, and if it is, where I might find a tutorial / some literature on how I might go about doing it. Thanks, as always, in advance :) James. -- 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] Maximum execution time exceeded!
That loop will never end. Generally, the loop body should manipulate some part of the loop ending condition. initialize $i before the loop replace the second loop with "if($prescene2==0){$i++;}" Chakravarthy K Sannedhi wrote: hi all, when i am trying to calculate the number of rows with a '0' in a particular column using the following code, it is giving the 'Maximum execution time exceeded' message, eventhough after i gave set_time_limit(60), it didn't worked, infact now it is even worse the browser is getting siezed. $result=mysql_query("select * from mytable"); while ($avgrow=mysql_fetch_array($result)) { $prescene2 = $avgrow["scene2"]; $prescene4 = $avgrow["scene4"]; $prescene5 = $avgrow["scene5"]; $prescene7 = $avgrow["scene7"]; $prescene8 = $avgrow["scene8"]; $prescene9 = $avgrow["scene9"]; $i = 1; while ($prescene2 == 0) { $i=$i+1; } } printf ("Number of zeros=%d",$i); Can any one please help me with this. TIA kalyan __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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] Resize the pop-up window
Joe, Got it! Thank you very much. Now the codes are like this: script language=javascript function openWindow (url) { window.open( url, "target_win",config='directories=yes,location=yes,menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=yes,toolbar=yes,width=600,height=500'); } A HREF="http://www.intc.com" target="target_win", onclick="openWindow('http://www.intc.com')" Intel /A Thanks again, David From: Joseph Koenig [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: david klein [EMAIL PROTECTED] Subject: Re: [PHP] Resize the pop-up window Date: Mon, 29 Jan 2001 16:40:53 -0600 You'll have to do that with Javascript. Check this page: http://htmlgoodies.earthweb.com/beyond/openwin.html Good Luck, Joe _ Get your FREE download of MSN Explorer at http://explorer.msn.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] AUTH_PW External Authentication
I don't think it is easy to steal the password by using PHP_AUTH_PW. PHP_AUTH_PW is cached in the browser, if you exit the browser, nobody can steal it. If the other people is using a different browser, there is no way for him to steal it even if he is accessing the same URL. Just my understanding. David From: Chen Shiyuan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] AUTH_PW External Authentication Date: Fri, 26 Jan 2001 23:50:17 +0800 (SGT) Hello everyone! I am currently using Apache-1.3.14 with php-4.0.4pl1 compiled statically into it and running on RedHat Linux 6.2 . Apache is configured to do authentication for certain URLs via a auth_ldap module which is dynamically loaded when Apache starts. I noticed that when I access the protected URL, PHP_AUTH_PW will give me the password for the user who is currently logged to the protected site. If I recall correctly, earlier versions of PHP4 and PHP3 didn't have this "feature" . This "feature" creates a problem when the protected URL is shared by many parties with each party providing it's own services under the protected URL as any party would be able to "steal" the username/password without the end user knowing. The username/password is used to control who has access to the protected URL and the parties are not required to make use of the password. Is there anyway to disable this "feature" or is the disclosure of the password a bug? Many thanks for any advice! -- 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] _ Get your FREE download of MSN Explorer at http://explorer.msn.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] LOOKING FOR CODE LOCATION IN PHP SOURCE....
I don't believe this is a PHP function, but rather a function of the browser if using the INPUT TYPE="file" Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = -Original Message- From: Tim Meader [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 8:36 AM To: [EMAIL PROTECTED] Subject: [PHP] LOOKING FOR CODE LOCATION IN PHP SOURCE Hey all, I've come to the realization that if I intend to be able to write a file to disk AS it's being uploaded via http, I will need to modify the PHP source directly. Just wondering, anyone know in what source file I should be looking for the HTTP UPLOAD handling code, I've looked through quite a few files in the /ext/standard source directory, to no avail yet. Thank you in advance to any and all for your help Tim Meader [EMAIL PROTECTED] ACS Government Solutions Group -- 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]
[PHP-CVS] cvs: php4 /ext/dotnet dotnet.cpp
phanto Mon Jan 29 13:54:53 2001 EDT Modified files: /php4/ext/dotnetdotnet.cpp Log: use *_EXTERN_C() and PHP_WIN32 Index: php4/ext/dotnet/dotnet.cpp diff -u php4/ext/dotnet/dotnet.cpp:1.2 php4/ext/dotnet/dotnet.cpp:1.3 --- php4/ext/dotnet/dotnet.cpp:1.2 Sat Jan 27 19:41:22 2001 +++ php4/ext/dotnet/dotnet.cpp Mon Jan 29 13:54:45 2001 @@ -34,20 +34,15 @@ #include math.h #include comdef.h -extern "C" { +extern "C" { /* this should be included in the includes itself !! */ + #include "php.h" #include "php_ini.h" -OLECHAR *php_char_to_OLECHAR(char *C_str, uint strlen); } -pval php_COM_get_property_handler(zend_property_reference *property_reference); -int php_COM_set_property_handler(zend_property_reference *property_reference, pval *value); -char *php_COM_error_message(HRESULT hr); -void php_COM_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference); -int php_COM_get_le_idispatch(); - #include "../com/conversion.h" +#include "../com/php_COM.h" #include "Mscoree.h" #include "mscorlib.h" @@ -220,8 +215,8 @@ "dotnet", DOTNET_functions, PHP_MINIT(DOTNET), PHP_MSHUTDOWN(DOTNET), NULL, NULL, PHP_MINFO(DOTNET), STANDARD_MODULE_PROPERTIES }; -extern "C" { - ZEND_GET_MODULE(dotnet) -} +BEGIN_EXTERN_C() +ZEND_GET_MODULE(dotnet) +END_EXTERN_C() #endif -- 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]
Re: [PHP-CVS] cvs: php4 /ext/com COM.c php_COM.h
Are you including php.h or zend.h? Those macro's should be defined and they are used in lots of places. Look at zend.h Let me know of your progress. Thanks, Andi At 03:41 AM 1/28/2001 +, Harald Radi wrote: phanto Sat Jan 27 19:41:43 2001 EDT Removed files: /php4/ext/com COM.c Modified files: /php4/ext/com php_COM.h Log: fixed unicodeconversion and parameter passing bugs in com and dotnet modules Index: php4/ext/com/php_COM.h diff -u php4/ext/com/php_COM.h:1.2 php4/ext/com/php_COM.h:1.3 --- php4/ext/com/php_COM.h:1.2 Sun Jul 2 16:46:38 2000 +++ php4/ext/com/php_COM.h Sat Jan 27 19:41:43 2001 @@ -3,6 +3,10 @@ #if WIN32|WINNT +#ifdef __cplusplus +extern "C" { +#endif + extern PHP_MINIT_FUNCTION(COM); extern PHP_MSHUTDOWN_FUNCTION(COM); PHP_FUNCTION(COM_load); @@ -11,6 +15,11 @@ PHP_FUNCTION(com_propget); PHP_FUNCTION(com_propput); extern zend_module_entry COM_module_entry; + +#ifdef __cplusplus +} +#endif + #define COM_module_ptr COM_module_entry #else -- 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 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]
RE: [PHP] Problems with majodomo
I missed the beginning of this thread, I've got a subscribe routine set up on a website for Majordomo, what are you trying to do? Bring me up to speed -Brian -Original Message- From: Alan Todd [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 10:33 AM To: Phpg Subject: [PHP] Problems with majodomo I was wondering if anyone has set it up from a website. the problem i am having is it does send the comfirmation back i have mail("$majordomo", "", "$action $list $email","From: $email"); where $action is subscribe or unsubscribe and $list is oe they pick Thanks ALan /'^'\ ( o o ) ---oOOO--(_)--OOOo Alan Todd Infoave.net Web Development ICQ : 159944 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] -- 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] MS SQL 7.0 - Functions
Hi, Which are the functions of php to controler a data base Microsoft SQL 7? From which version is possible PHP - MSSQL? I have that to install some module? Tanks, Santhyago -- 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] Thumbnails and PHP
What is the best way to display thumbnail photos and their titles with HTML/PHP? Table? If I do table width="100%" and td width="750" all works fine - the img's "word wrap". But, when I do table width="100%" and td width="100%", I get a horizontal scroll bar and the img's go off to the left. Todd -- Todd Cary Ariste Software [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]
[PHP-CVS] cvs: php4 /ext/zziplib .cvsignore
sniper Mon Jan 29 14:13:38 2001 EDT Modified files: /php4/ext/zziplib .cvsignore Log: a little cleanup.. Index: php4/ext/zziplib/.cvsignore diff -u php4/ext/zziplib/.cvsignore:1.1 php4/ext/zziplib/.cvsignore:1.2 --- php4/ext/zziplib/.cvsignore:1.1 Tue Nov 21 17:28:51 2000 +++ php4/ext/zziplib/.cvsignore Mon Jan 29 14:13:37 2001 @@ -1,4 +1,6 @@ -*.exp -*.out -*.php -phpt.* +Makefile +*.lo +*.la +.libs +.deps +libs.mk -- 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]
Re: [PHP] Problem with a regex!
Your not going to find {title} when $var = "TITLE". Everything PHP is case sensitive. If it absolutely *has* to be case insensitive, you can use eregi instead of ereg. -- 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] $DOCUMENT_ROOT
Whenever I include files in Apache I always do it like this: include($DOCUMENT_ROOT."/folder/file.php"); However, now I am doing a site in IIS and I do not have $DOCUMENT_ROOT at my disposal. What do most of you usually do to workaround this? Aside from installing Apache and Linux and bypassing the whole Windows thing :) Thanks, Toby
[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4
andrei Mon Jan 29 14:26:12 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for php-gtk. Index: CVSROOT/avail diff -u CVSROOT/avail:1.61 CVSROOT/avail:1.62 --- CVSROOT/avail:1.61 Sat Jan 27 19:36:22 2001 +++ CVSROOT/avail Mon Jan 29 14:26:11 2001 @@ -7,6 +7,7 @@ avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom|phpdoc +avail|php-gtk|andrei avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath avail|NOBODY|php4/ext/calendar Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.61 CVSROOT/gen_acl_file.m4:1.62 --- CVSROOT/gen_acl_file.m4:1.61Sat Jan 27 19:36:22 2001 +++ CVSROOT/gen_acl_file.m4 Mon Jan 29 14:26:11 2001 @@ -21,6 +21,7 @@ avail|php_dev,hholzgra|functable avail|php_pres|pres avail|php_dev,php_ext,php_doc|phpdoc +avail|php-gtk|andrei dnl Access to individual dirs in the code tree avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath -- 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]
Re: [PHP] [NEWBIE] PHP.INI
Hi, I'm not sure but I think it's "--with-config-file-path=/path/to/dir. Good Luck Johannes ""Steve Haemelinck"" [EMAIL PROTECTED] schrieb im Newsbeitrag 003901c08a14$3f692bd0$0200a8c0@shaemeli">news:003901c08a14$3f692bd0$0200a8c0@shaemeli... I want to put the php.ini in /etc/php Which argument do I have to attach to ./configure --?=/etc/php to accomplish this ? THX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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] Server VS Client script validation
Make the form page post to itself and use default values of ?php echo $HTTP_POST_VARS['field_name'] ?. The initial form will be blank, but subsequent failing attempts will have the values the visitor already entered. You can also add red text to the form to show what exactly was wrong, etc. Then, to handle posts that are successful, you'll need to use something like this: if (successful post) { // post is acceptable - process the info include("file/to/handle/post.php"); } else { // post failed ? !-- put HTML form page here -- ?php } // end if ? I know some people might say this is bad style, but it works. It can be cleaned up some, but this is good enough IMO. --toby kaab kaoutar wrote: Hi! What's best ? using client script while validating form inputs(javasript or vbscript) or using php for validating! with the first way, i can trigger alert ! however with the second one, i have to show up a whole page for just saying that there are errors, go back to the form ! any ideas ? thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]
[PHP] PHP/MySQL question
Is it possible to move through an array that is returned as a recordset and then move back to the beginning of the array. Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for.] [ Admining Linux ] [ To thine own self be true. ] [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ] -- 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] regex with non-ascii characters
hi, just a quick question... i can't seem to have ereg() work with non-ascii characters such as the character ''. is this something that i can work around? remco chang www.bountyquest.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] Interactive external program execution
I'm running php4 as a CGI binary. During the course of a cronjob scheduled script, I need to execute an external program which connects to another server using an implementation of eftp (sort of ftp for ISDN). The eftp program returns no success/error codes, is moderately unstable, and the remote server/network is often unavailable - thus blind automation is out of the question. On a good day, however, it all works and data/info is sent to STDOUT. My problem is this: how to make my script interact with the eftp program? I need to start it, check for a successful connection, move files around locally, upload/download files, send emails, log data, etc, etc, depending on which commands were successful and which were not. The only thing I'm getting back is the STDOUT stream? How can I capture this in real time (as opposed to in a big lump once the program has finished), pause the eftp program, parse the output then send suitable commands back to the eftp program? I've checked out most of the likely functions (popen() was looking good for a while, exec() and system() seem to offer little scope for interactivity) but there always seems to be a 'gotcha' at some point. If anyone has some insight into this problem, their help, or a pointer in the right direction, would be appreciated. All the best, -- Paul Replace "spamtrap" with "paul" to reply by e-mail -- 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/MySQL question
reset($array), if this is what you need. this resets (who would have thought it?) the internal pointer back to the first position. ""Julia A . Case"" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is it possible to move through an array that is returned as a recordset and then move back to the beginning of the array. Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for.] [ Admining Linux ] [ To thine own self be true. ] [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ] -- 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] [NEWBIE] PHP.INI
On Mon, 29 Jan 2001, Steve Haemelinck wrote: I want to put the php.ini in /etc/php Which argument do I have to attach to ./configure --?=/etc/php to accomplish this ? Try running ./configure --help sometimes.. :) Anyway, the right argument is --with-config-file-path --Jani -- 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] Server VS Client script validation
At 11:27 AM + 1/29/01, kaab kaoutar wrote: Hi! What's best ? using client script while validating form inputs(javasript or vbscript) or using php for validating! with the first way, i can trigger alert ! however with the second one, i have to show up a whole page for just saying that there are errors, go back to the form ! any ideas ? thanks Best way is to do it both ways: JavaScript to make a more user-friendly page, and server-side validation in case JavaScript is disabled AND to catch programs that simulate posts by writing directly to a socket. It's really easy to do that - via telnet to port 80, for example, or via PHP (see the posttohost function at one of the code libraries - see px.sklar.com, or phpbuilder.com, or on of the other resources). - steve -- +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-- FBI Special Agent Dale Cooper ---+ -- 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-CVS] cvs: CVSROOT / avail gen_acl_file.m4
andrei Mon Jan 29 14:28:18 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: D'oh. Index: CVSROOT/avail diff -u CVSROOT/avail:1.62 CVSROOT/avail:1.63 --- CVSROOT/avail:1.62 Mon Jan 29 14:26:11 2001 +++ CVSROOT/avail Mon Jan 29 14:28:18 2001 @@ -7,7 +7,7 @@ avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom|phpdoc -avail|php-gtk|andrei +avail|andrei|php-gtk avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath avail|NOBODY|php4/ext/calendar Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.62 CVSROOT/gen_acl_file.m4:1.63 --- CVSROOT/gen_acl_file.m4:1.62Mon Jan 29 14:26:11 2001 +++ CVSROOT/gen_acl_file.m4 Mon Jan 29 14:28:18 2001 @@ -21,7 +21,7 @@ avail|php_dev,hholzgra|functable avail|php_pres|pres avail|php_dev,php_ext,php_doc|phpdoc -avail|php-gtk|andrei +avail|andrei|php-gtk dnl Access to individual dirs in the code tree avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath -- 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] Automate the apache authentication process
I am using apache authentication. The problem is: I want the user to be able to get registered throught the web GUI, and all the users' password and userID will be kept in the database. In my mind, I can use php later to get all these userID/password, and run the apache htpasswd to register these users. However, Apache htpasswd is an interactive program and we need manually input the password, is there a way to automate and batch process this using php scripts? Thanks, David _ Get your FREE download of MSN Explorer at http://explorer.msn.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-CVS] cvs: php-gtk /test gtk.php
andrei Mon Jan 29 14:28:34 2001 EDT Modified files: /php-gtk/test gtk.php Log: Test. Index: php-gtk/test/gtk.php diff -u php-gtk/test/gtk.php:1.1.1.1 php-gtk/test/gtk.php:1.2 --- php-gtk/test/gtk.php:1.1.1.1Mon Jan 29 14:15:58 2001 +++ php-gtk/test/gtk.phpMon Jan 29 14:28:34 2001 @@ -1,5 +1,5 @@ ?php -/* $Id: gtk.php,v 1.1.1.1 2001/01/29 22:15:58 andrei Exp $ */ +/* $Id: gtk.php,v 1.2 2001/01/29 22:28:34 andrei Exp $ */ if ($OS == 'Windows_NT') dl('php_gtk.dll'); @@ -51,7 +51,6 @@ $window-set_uposition(100,200); $window-set_usize(600,150); $window-add($box); -//$window-add($button); $window-show_all(); Gtk::main(); -- 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-CVS] cvs: php4 /ext/domxml config.m4
sniper Mon Jan 29 15:15:12 2001 EDT Modified files: /php4/ext/domxmlconfig.m4 Log: Fixed bug #8946. In some systems the libxml.* is actually libxml2.* Index: php4/ext/domxml/config.m4 diff -u php4/ext/domxml/config.m4:1.19 php4/ext/domxml/config.m4:1.20 --- php4/ext/domxml/config.m4:1.19 Fri Dec 8 05:09:32 2000 +++ php4/ext/domxml/config.m4 Mon Jan 29 15:15:11 2001 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.19 2000/12/08 13:09:32 sniper Exp $ +dnl $Id: config.m4,v 1.20 2001/01/29 23:15:11 sniper Exp $ dnl config.m4 for extension domxml AC_DEFUN(PHP_DOM_CHECK_VERSION,[ @@ -46,8 +46,14 @@ AC_ADD_INCLUDE($DOMXML_DIR/include) + if test -f $DOMXML_DIR/lib/libxml2.a -o -f $DOMXML_DIR/lib/libxml2.s? ; then +DOM_LIBNAME="xml2" + else +DOM_LIBNAME="xml" + fi + PHP_SUBST(DOMXML_SHARED_LIBADD) - AC_ADD_LIBRARY_WITH_PATH(xml, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD) + AC_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD) if test $HAVE_ZLIB; then old_withval=$withval -- 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] IIS and $PHP_AUTH_USER
I am getting a whole lot closer to getting IIS to work with PHP loading as ISAPI. Now, when I try to get authorized, it never works. It's probably a varialbe in the .ini file I have not set. I keep getting the user prompt box, and the realm changes after the first login failure NT5 PHP 4.0.4pl1 Here's the code: ? // Check to see if $PHP_AUTH_USER already contains info if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box to appear header('WWW-Authenticate: Basic realm="TBCC"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required!'; exit; } else if (isset($PHP_AUTH_USER)) { if (($PHP_AUTH_USER !="admin") || ($PHP_AUTH_PW !="admin")) { header('WWW-Authenticate: Basic realm="TBCC"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required!'; exit; } } ? html h1It worked!/h1 /html
RE: [PHP] Automate the apache authentication process
However, Apache htpasswd is an interactive program and we need manually input the password, is there a way to automate and batch process this using php scripts? [jason@phpdev htdocs]$ /usr/local/apache/bin/htpasswd --help Usage: htpasswd [-cmdps] passwordfile username htpasswd -b[cmdps] passwordfile username password -c Create a new file. -m Force MD5 encryption of the password. -d Force CRYPT encryption of the password (default). -p Do not encrypt the password (plaintext). -s Force SHA encryption of the password. -b Use the password from the command line rather than prompting for it. Looks like you should be able to run htpasswd as a fire-and-forget operation, just play with the flags. Jason -- 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] VIRUS ON LIST?
I don't want to be an alarmist, but wanted to give everyone a heads-up. Our firewall at corporate scrubbed a virus from a mail sent to the php-db list from "Angel2 Gabriel Lena Valega". The virus was in an attachment named "Emanuel.exe" and the message subject was "i need help with odbc!" John Coonrod wrote: Right. That's what I saw here also: a virus attachment from Angel2 Gabriel Lena Valega in Peru = Original Message from Chuck Mayo [EMAIL PROTECTED] at 1/29/01 6:17 pm Virus in this mail? Angel2 Gabriel Lena Valega wrote: -- Virus Warning Message (on the network) Found virus TROJ_NAVIDAD.E in file Emanuel.exe The file is deleted. - -- Virus Warning Message (on the network) Emanuel.exe is removed from here because it contains a virus. - -- PHP Database 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] Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org -- 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] Apache
On Sat, Jan 27, 2001 at 09:57:35PM -0500, [ rswfire ] wrote : 3. How can I turn on directory browsing? I am receiving a Forbidden error whenever there isn't a default document in a directory. htpd.conf: Directory foobar Options Indexes /Directory or in .htaccess Options Indexes You'll find all documentation at apaches website [1]. m. [1] http://httpd.apache.org/docs/mod/directives.html -- 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 and Oracle resources
On Sun, Jan 28, 2001 at 12:46:37AM -0500, Kristofer Widholm wrote : Well, I've been given the joyous task of implementing the DaveTV project at CBS via PHP, using Oracle as a database. I've never used Oracle before. Looking at the PHP functions for Oracle, and having heard about it in the past, it seems like quite a different approach than any SQL database I've ever used. I still don't get the whole point of cursor objects, etc. :-) It's ain't that hard. Just use OCILogon to connect, then OCIParse to parse the sql statement and finally OCIExecute it. Loop through your result data with OCIFetchInto. The Shitload of possible errors should be abstracted into a class. 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]
[PHP] Re: filename length ...
There's no filename length, but the url string (even for POST I belive) must total 4096 characters. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "George Edmonds" [EMAIL PROTECTED] To: "ActiveServerPages" [EMAIL PROTECTED] Sent: Tuesday, January 30, 2001 10:47 AM Subject: RE: filename length ... On a GET URL, yes there is a limit of i think its the 256, but on a POST if memory serves you can go as high as you want, or well lets put it this way, posting i havent hit a limit yet George R. Edmonds Director of Technology Strategy Source Pager: (888) 914-6551 Office: (202) 296-4200 Fax:(202) 296-4295 "Make everything as simple as possible, but no simpler." - Albert Einstein -Original Message- From: David L. Penton [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 5:49 PM To: ActiveServerPages Subject: RE: filename length ... Since a filename can be no longer than 256 characters, have you tried it? Have you tried different lengths? The length will depend on the browser (IE, Netscape, Mosaic, etc) and serving software (IIS, Apache, O'Reilly, etc) David L. Penton, MCP Consultant "Mathematics is music for the mind, and Music is Mathematics for the Soul. - J.S. Bach" [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 11:04 AM Is there any limit on the filename length on URL line? TIA. --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] - Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] - Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ -- 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] Invoke PHP script from onLoad handler?
Here's what you wrote, 01-01-27: OK, I've gone back through the archives and now understand the situation with client- and server-side. I just wasn't thinking it through. Spawning a window to let PHP query the db and somehow passing returned values back to the parent window is something I could do, I suppose, but it seems that what I and the other zillion people who keep asking the same question need is a way to get to our databases using a client-side technology like Javascript. If it's not an enormous amount of data the user will be working with, and they're just reading it and not inputting new values (a set number of options, etc.), you could just load all the data into JavaScript arrays at the initial load. Whenever a part of any form or window is changed, the displayed data would be changed as well via JavaScript, without the need for any database query. Kristofer -- __ Kristofer Widholm Web Pharmacy [EMAIL PROTECTED] 191 Grand Street, Brooklyn NY 11211 718.599.4893 __ -- 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] ENOTTY error
I get this error, even when trying to start apache with the -X option: (tail end of strace on httdp -X) 6421 open("/etc/httpd/php3.ini", O_RDONLY) = 5 6421 ioctl(5, TCGETS, 0xbfffc8e8) = -1 ENOTTY (Inappropriate ioctl for device) 6421 read(5, "[PHP_3]\n\n;;;\n; A"..., 8192) = 8192 6421 read(5, "eadlen for an explanation of uod"..., 8192) = 4370 6421 read(5, "", 3822) = 0 6421 read(5, "", 8192) = 0 6421 ioctl(5, TCGETS, 0xbfffc8d4) = -1 ENOTTY (Inappropriate ioctl for device) 6421 --- SIGSEGV (Segmentation fault) --- 6421 +++ killed by SIGSEGV +++ Ive seen a few message on the web but no answers. Any help would be greatly appreciated. Thanks, Jimmy --- Q: Backstreet Boys or N'Sync? A: Both of them. In a house, on fire, surrounded by trick fire extinguishers filled with gasoline. --- -- 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] Resize the pop-up window
I have a link, which will pop up a new window, but the problem is: I don't know how to resize the new popped-up window. My code is like this: A HREF="www.intc.com" target="_blank" intel connection /A * for 3.0+ browsers open a window with javascript (see www.irt.org window FAQ's) and set size in window features * for 4.0+ browsers maybe there are some DHTML ways to set browser size but i'm sure it will be a headache to make it work for IE as well as NS as well as Mozilla. good luck, Chris -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -- 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] Using PHP as generic security wrapper for content
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While this isn't a really a PHP problem, I figured I can't be the first person to ever have tried to solve this problem. Basically I have a web site with many kinds of content (static html, PHP, cgi's of various flavors, etc) and I'm looking to create a way to do user authentication and authorization against a DB for all this content. While there are various existing solutions to do this (like mod_auth_db), none of them seemed to fit my requirements: 1) Support *my* MySQL database schema 2) Light memory usage (ie, no modperl) 3) Support any kind of content (cgi, php, static html, etc) 4) Not require changes to existing content (ie, I don't want to do a require "security.php"; in all the php pages I want to secure). The closest I've come so far is using mod_layout to allow my custom PHP script to generate HTTP headers so that I can do the user authentication myself. This is actually working very well for most pages and is completely content agnostic since it's sourced via the Apache server, not the content. The problem with this is that mod_layout's LayoutHTTPHeader option seems to be eating any POST's that CGI's or PHP scripts use. The mod_layout list has been completely useless in trying to find the answer to this issue. So, does anyone have another viable solution to this problem? Are there any builtin PHP options to source a php script during the http header generation process for any content (not just other PHP scripts)? Are there any other modules other than mod_layout that can do this? I know I can do this with mod_perl, but it's a lot more memory intensive than PHP so I'd like to avoid it if possible. Thanks. - -- Aaron Turner [EMAIL PROTECTED]|synfin.net|linuxkb.org URI:www.synfin.net They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6 All emails by me are PGP signed; a lack of a signature indicates a forgery. I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iEYEARECAAYFAjp2CJUACgkQhweYF/hu2ubc2gCfWeJTNlVgKrv/CrOyHoqRzbaI XLkAn2LuiTg0lkYIyAdutAqXRyPnT8i4 =ytFC -END PGP SIGNATURE- -- 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/MySQL question
// loops through the entire recordset while( $qrResults = mysql_fetch_array( $rQuery )) { print( $qrResults["SomeField"] } // reset the recordpointer to the first record mysql_data_seek( $rQuery, 0 ); Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = -Original Message- From: Julia A . Case [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP/MySQL question Is it possible to move through an array that is returned as a recordset and then move back to the beginning of the array. Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for.] [ Admining Linux ] [ To thine own self be true. ] [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ] -- 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]
[PHP] APC version 1.0.7 released
Changes in this version: 1.0.7: + partially fixed for Solaris [gws 01.29.2001] + fixed mtime support for relative includes [gws 01.29.2001] + code cleanup [yg,ta,gws 01.29.2001] + support for mtime in mmap [yg,gws 01.27.2001] + fixed indexed-array initialization bug [djc,gws 01.27.2001] This should be the first version which fully supports phplib. apc is available at http://apc.communityconnect.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] FTP rawcommands - FXP
I need a function to exec raw commands on a server, like "LIST" and esp. "LIST -al". I going to use it for programming a public php-fxp client. mfg