[PHP] PHP 5.4.20 released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.20. About 30 bugs were fixed. All users of PHP 5.4 are encouraged to upgrade to this release. For source downloads of PHP 5.4.20 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on windows.php.net/download/ The list of changes are recorded in the ChangeLog: http://www.php.net/ChangeLog-5.php#5.4.20 Stanislav Malyshev PHP 5.4 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.19 and PHP 5.5.3 Released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.19 and PHP 5.5.3. These releases fix a bug in the patch for CVE-2013-4248 in OpenSSL module and compile failure with ZTS enabled in PHP 5.4, which were introduced in previously released 5.4.18 and 5.5.2. All PHP users are encouraged to upgrade to either PHP 5.5.3 or PHP 5.4.19. For source downloads of PHP 5.4.19 and PHP 5.5.3 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on: http://windows.php.net/download/ The list of changes is recorded in the ChangeLog at: http://www.php.net/ChangeLog-5.php Regards, Stanislav Malyshev PHP 5.4 Release Manager -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.17 released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.17. About 20 bugs were fixed. All users of PHP are encouraged to upgrade to this release. For source downloads of PHP 5.4.17 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on windows.php.net/download/ The list of changes are recorded in the ChangeLog: http://www.php.net/ChangeLog-5.php#5.4.17 Stanislav Malyshev PHP 5.4 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.16 and PHP 5.3.26 released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.16 and PHP 5.3.26. These releases fix about 15 bugs, including CVE-2013-2110. All users of PHP are encouraged to upgrade to PHP 5.4.16. PHP 5.3.26 is recommended for those wishing to remain on the 5.3 series. For source downloads of PHP 5.4.16 and PHP 5.3.26 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be found on windows.php.net/download/ The list of changes are recorded in the ChangeLog: http://www.php.net/ChangeLog-5.php#5.4.16 Stanislav Malyshev Johannes Schlüter PHP 5.4 Release Master PHP 5.3 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 5.4.15 and PHP 5.3.25 released!
Hello! The PHP development team announces the immediate availability of PHP 5.4.15 and PHP 5.3.25. These releases fix about 10 bugs. All users of PHP are encouraged to upgrade to PHP 5.4. PHP 5.3.25 is recommended for those wishing to remain on the 5.3 series. The full list of changes are recorded in the ChangeLog on http://www.php.net/ChangeLog-5.php For source downloads of PHP 5.4.15 and PHP 5.3.25 please visit our downloads page at http://www.php.net/downloads.php Windows binaries can be found on http://windows.php.net/download/ Stanislav Malyshev Johannes Schlüter PHP 5.4 Release Master PHP 5.3 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.13 and PHP 5.3.23 released!
The PHP development team announces the immediate availability of PHP 5.4.13 and PHP 5.3.23. These releases fix about 15 bugs, including fixes for CVE-2013-1643 and CVE-2013-1635. All users of PHP are encouraged to upgrade to PHP 5.4.13. PHP 5.3.23 is recommended for those wishing to remain on the 5.3 series. The full list of changes are recorded in the ChangeLog on http://www.php.net/ChangeLog-5.php For source downloads of PHP 5.4.13 and PHP 5.3.23 please visit our downloads page at http://www.php.net/downloads.php Windows binaries can be found on http://windows.php.net/download/ Stanislav Malyshev Johannes Schlüter PHP 5.4 Release Master PHP 5.3 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 5.3.22RC1 and 5.4.12RC1 Released for Testing!
Hi! Johannes Schlüter in php.internals (Thu, 31 Jan 2013 16:00:17 +0100): If no critical issues is found in this RC, the final version will be released in two weeks. Just curious: what is keeping 5.3.22 and 5.4.12 from being released? Are there any issues? We had 5.4.12 RC2 last week, due to recent SOAP fixes we had to pull in, and will have 5.4.12 GA this week. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.9 and PHP 5.3.19 released!
The PHP development team announces the immediate availability of PHP 5.4.9 and PHP 5.3.19. These releases fix about 15 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.9, or at least 5.3.19. The full list of changes are recorded in the ChangeLog on http://www.php.net/ChangeLog-5.php For source downloads of PHP 5.4.9 and PHP 5.3.19 please visit our downloads page at http://www.php.net/downloads.php Windows binaries can be found on http://windows.php.net/download/ David Soria Parra, Stanislav Malyshev and Johannes Schlüter PHP Release Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.6RC1 Released for Testing!
Hi! I've released PHP 5.4.6RC1 which can be found here: http://downloads.php.net/stas/ Windows binaries as always are at: http://windows.php.net/qa/ This is a regular bugfix release, the full list of issues fixed can be found in the NEWS files. Please test and report if anything is broken. If no critical issues is found in this RC, the final version will be released in two weeks. Regards, Stas Malyshev and David Soria Parra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.1 RC1 Released
Hi! We would like to announce the first RC of the 5.4.1 version. This will be mainly a bugfix version, including all bugfixes that did not make the cut for 5.4.0 and new issues since then. Please test it and notify us of any problems you may encounter. The full list of the fixes is as always in the NEWS file. You can download the packages from: http://downloads.php.net/stas The Windows team provides windows binaries for the release. As always you find them at: http://windows.php.net/qa/ This is also the first release we are making from our brand new Git setup, please tell us if you notice any glitches. You can read more about the Git migration here: http://www.php.net/archive/2012.php#id2012-03-20-1 We plan the next RC for 5.4.1 in two weeks, on April 5th. Regards, Stas David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.4.1 RC1 Released
Hi! We would like to announce the first RC of the 5.4.1 version. This is mainly a bugfix release, including all fixes that did not make the cut for 5.4.0 and new issues since then. Please test it and notify us of any problems you may encounter. The full list of the fixes is as always in the NEWS file. You can download the packages from: http://downloads.php.net/stas The Windows team provides windows binaries for the release. As always you find them at: http://windows.php.net/qa/ This is also the first release we are making from our brand new Git setup, please tell us if you notice any glitches. You can read more about the Git migration here: http://www.php.net/archive/2012.php#id2012-03-20-1 We plan the next RC for 5.4.1 in two weeks, on April 12th. Regards, Stas David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 5.4.0 beta2
Hello! I've packed PHP 5.4.0beta2 which you can find here: http://downloads.php.net/stas/ The Windows team provides windows binaries which you find here: http://windows.php.net/qa/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducible test case. The next release is planned to be RC1 and is scheduled for November 10. regards, Stas and David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP XML
The benefit would be in dividing business logic from presentation layer. Stas. - Original Message - From: Simon Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 7:35 AM Subject: RE: [PHP] Re: PHP XML To me this is a lot of work and processing for limited benefits, a simple db abstraction layer provides you with a divide between you db queries and the presentation of your site, what benefits do you see in doing this? Cheers Simon -Original Message- From: Alexandru COSTIN [mailto:[EMAIL PROTECTED]] Sent: 15 October 2002 18:50 To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP XML Hello, Most of what you are looking for is already implemented and fully working in our Krysalis Professional platform. We help you create dynamic XML files, we provide you reusable taglibs to avoid rewriting similar code multiple times, wr provide various levels of caching and many more. Please se more details at : http://www.interakt.ro/products/ Alexandru Let me preface this by saying that I know the benefits of using XML with regards to portability and extensibility. Here is the issue I face. I have all of my data stored in a MySQL database. I'm considering reworking my website so that it uses XML (after being converted from resultant records in my DB) to transmit XSLT to transform and display the data to my end user. There are a few benifits I can see in sending XML messages as part of the back end processing. However, that seems to be out- weighed by the amount of processing that's going to need to take place in actually serving the data to the user. First I have to query and pull the records from the database. Then, I need to send those records to a function (or functions) to convert it to XML. Then, I need to take that XML data and have PHP use an XSL stylesheet to transform it to HTML before it, finally, gets sent on to the browser. So that's basically 2 conversions that take place on the back end. How much experience have any of you had with doing that? Does it take significantly longer to serve the pages; is there a noticible performance hit? Do you realize more benifit for the back end processes when using XML that makes any additional time it takes to display a page to the user worth it? I'd love to hear about people's experience with this kind of thing so I can better make a decision wrt whether or not I should even go down this route. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Show indexes
First get all the table names in your db: mysql_query(show tables from [your_db_name]); Then crawl thru the table list and get index information for each of them: mysql_query(show index from [your_table_name]); HTH Stas - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 1:45 PM Subject: [PHP] Show indexes Is there a way in PHP to list all of the indexes in an SQL database? Or is it only through SQL that this can be done? (Or can it?) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Umm... Uh-oh
The easiest and safest way to get around this problem is to place all your include files outside of your webroot directory (say one level up), so they will be accessible locally via includes, but NOT accessible via http. HTH, Stas - Original Message - From: John Wards [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, October 04, 2002 10:58 AM Subject: Re: [PHP] Umm... Uh-oh erm..would that alow hackers access? Say I have a database include file would hackers be able to get access to my database like this? (include('http://mysite.com/datainc.php');) I hope bloody not!!! if so how on earth do i get round that! John On Friday 04 Oct 2002 10:52 am, Marek Kilimajer wrote: Use realpath() to check the path. I also suspect your script is vulnarable to cross-site includes (include('http://hacker.com/script.inc');) Rick Beckman wrote: Okay, I was mistaken... There is a gaping security hole in my simple li'l script... How do I modify it to only accept files from a certain path? I want the url format to be script.php?call=1 where 1 is the called file in the /includes/ directory. Just when I get optimistic I leave the entire system exposed. Yeah, that fits with my luck. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Protecting files in PHP
Hello, I have some files off of the web root which I'd like to be able to serve up to users (*.doc, *.xls). I know I can do this with header(), but how do I reference a file that's outside of the webroot? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] News Feeds....
Try www.moreover.com HTH Stas - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 1:52 PM Subject: [PHP] News Feeds Hi I'd like to get some news from any reputable news site, bbc.co.uk... yahoo.co.uk etc etc UK news would be best, if not then some hints to how to go about it would be much appreciated! TIA... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Mail()....
If you need plaintext newsletter, you can not use HTML at all, even pretending that it is a plain-text. It will be screwed badly on the plaintext-only e-mail clients anyway. Stas - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 10:27 AM Subject: [PHP] Re: Mail() It's a text-based newsletter... I have a solution i think... so it'll look the same... just need to verify that it *should* be the same... inserting the contents in html, but within a pre/pre? 2'nd, using the following headers, sends it as an attachment it seems... $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; TIA.. Brian McGarvie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a way to set the font on a plaintext email? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP_AUTH_USER
You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a session based login method if you need logout function. Why not? Sending this to the client should do the job: header('WWW-Authenticate: Basic realm=My Realm'); header('HTTP/1.0 401 Unauthorized'); HTH, Stas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP_AUTH_USER
Yes, Matt, you were right about tracking the authorized state with a session. I actually thought about same thing: keeping a variable somewhere which will help to decide whether to send those Authenticate headers or not - just didn't realize you meant the same thing. :) And a little excerpt from w3.org proving the point: HTTP Authentication has the addition problem that there is no mechanism available to the server to cause the browser to 'logout'; that is, to discard its stored credentials for the user. This presents a problem for any web application that may be used from a shared user agent. Requests for how to force 'logout' appear almost daily in the netnews html and cgi authoring groups, and are one of the most common support questions received by Agranat Systems from their customers developing embedded systems web interfaces. Cheers, Stas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Window/Page/Browser/Screen width
Hi Rick, The important thing to remember is that PHP (as any other similar language) is a server-side scripting language. It won't help you getting your client details apart of those sent in HTTP headers. You should rather consider looking into JavaScript capabilities to accomplish your task. HTH, Stas - Original Message - From: Rick Selby [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 12:02 PM Subject: [PHP] Window/Page/Browser/Screen width Hi, I've seen similar questions in archives so sorry if I'm asking the same thing again! Is it possible, using php, to get the screen, page, or window width? My aim would be to have a set of picture thumbnails, and give the html the best number of columns depending on the size of the display. I'd rather not use java, because many people have it turned off (even though I wouldn't be exploiting it!) Cheers, --Rick __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using variable ..help
Remon, Your code works correct, cause you coded it this way as it should go through the array and output every element in the array into one line. If I got your idea correctly - you probably want you rows to be of two different colors. You may do it simplier way: table ? $mycolor = array(#E8D0E8, #F8EFF8); $index = 0; while ($row=mysql_fetch_array($result)) { ? tr bgcolor=? echo $mycolor[$index1]; ? tdblablabbaba/td /tr ? $index++; } ? /table The $index1 construct will return either 0 or 1 for even and odd rows, so the proper color will be selected. HTH, Stas - Original Message - From: Remon Redika [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:46 PM Subject: [PHP] using variable ..help I wanna do with my TR bgcolor trough my array ?$mycolor = array(#E8D0E8, #F8EFF8);? table ?php while ($row=mysql_fetch_array($result)){? tr bgcolor=?for($i=0;$i=count($mycolor[$i]);++$i){ echo ($mycolor[$i]); } ? tdblablabbaba/td /tr ? } ? /table I have look my view source output my TR bgcolor , and i found this below tr bgcolor=#E8D0E8#F8EFF8 I want my tr bgcolor display with one by one like this below tr bgcolor=#E8D0E8 td/td /tr tr bgcolor=#F8EFF8 td/td /tr etc help please. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fun with Binary Numbers
Hey Dave, It is much easier to use hex numbers when working with bits. Thus, the mask for the first (left) quartet would be 0xF000, second 0x0F00, third 0x00F0 and fourth 0x000F. To apply the mask use binary AND operator, which is in case of PHP. After applying the mask you need to shift-right (another binary operator) your number to the certain number of bits you want to omit: $result = ($yourNumber 0x0F00) 8; // for the third quartet Hope this helps, Stas - Original Message - From: David Buerer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 3:11 PM Subject: [PHP] Fun with Binary Numbers Here's a question, Say I have a binary number like this 1101 0100 0110 0110 And I want to pull out of the binary number the third quartet (is that the right word) I want to know how to apply the mask to the number above so that the result would be 0100 Likewise, given the number: 1101 0100 0110 0110 and the mask the result 0110 I suppose this is the same algorithm used to separate the host from the node address given an IP address and a subnet mask. I just need to know what the algorithm is. Thanks David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem with using include files
img name=topbar_01 src=/images/topbar_01.gif width=783 height=56 This should help you. This way the browser will look for images directory in the root of your webserver. Regards, Stas - Original Message - From: Ivan Carey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 1:50 PM Subject: [PHP] problem with using include files Hello The problem I have when using include files is the path to different parts of the web site. To Explain: I have a header.inc file in an inc directory: root |___inc | |___header.inc | |___images | |___topbar_01.gif | |___faq |___faq.php In the header.inc file there is: img name=topbar_01 src=images/topbar_01.gif width=783 height=56 now when I include this into the faq.php file I do not display the topbar_01.gif as the path to topbar_01.gif is now /root/faq/images/topbar_01.gif I would like to be able to use a header.inc file so that I can update the entire site simply. Is there a way I can specify the correct path when using an include file in this way? I have tried to use some of the Environment Variables. I find that I am having this problem when I am using a structured site. I would rather not place all files into the same directory Thankyou for your reply, Ivan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compiling PHP with Sablot support
Hi, There should be a new entry like XSLT enabled under XML enabled in your PHPinfo in case of successful set-up. I'm not very familiar with the Unix build, but just to be sure can you check if you uncommented the xslt extension in your php.ini file (if any)? HTH, Stas - Original Message - From: Dan Hardiker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 27, 2002 2:52 PM Subject: [PHP] Compiling PHP with Sablot support Hi All, I have PHP-4.3.0(dev) [php cvs version] and have the following configure: ../configure --with-mysql=/usr/local/ --with-gd=/usr/local/ --with-openssl --with-curl --enable-ftp --with-dom --with-xml --enable-trans-sid --enable-sockets --enable-wddx --with-zlib --with-mcrypt=/usr/local/ --with-mhash=/usr/local/ --with-freetype --with-t1lib --with-ttf --with-freetype-dir=/usr/local/ --with-gettext --enable-track-vars --with-apxs --with-expat --with-enable-xslt --with-xslt-sablot --with-sablot Configure runs fine... Make runs beautifully... Make Install runs perfectly... Apache restarts great, but: Fatal error: Call to undefined function: xslt_create_processor() in /usr/home/dhardiker/public_html/cvs/flash_api_4.03/xslTransformer.inc.php on line 24 Ideas? PS: Im running FreeBSD 4.6-Stable and a copy of my phpinfo() output can be found at http://dipsy.dapond.net/phpinfo.html. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] check unread messages in a forum
Hi, Just store the user's last log-in date/time either in the database or in cookie. On the next log-in select * messages where creationDate $userLastLoginDate and highlight those selected. It won't work for every particular unread message, but I doubt if one needs to be that much specific. HTH, Stas - Original Message - From: Charlotte [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 1:04 PM Subject: [PHP] check unread messages in a forum I have made a forum in PHP, and the users are logged in using cookies. I want all new threads (and if there are new replies in an old thread) to be highlight or something like that. How do I check if a user has read a message or not? /Charlotte -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Simple Security Clarification
Outside would be in '/var/www/secure' in your case. Or any other place your scripts have access to, save under '/var/www/html/'. HTH, Stas - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 1:11 PM Subject: [PHP] Simple Security Clarification In another thread [How do you protect individual files], Justin French stated: In real short, you want to store the files outside your htdocs root (so they can't be served by http) . . . My PHP setup serves files from DOCUMENT_ROOT=/var/www/html. If I place files in '/var/www/html/secure' would this provide any isolation for file access? Am I correct in thinking that 'below' is not the same as 'outside' doc_root, and that i this case, no protection would be afforded? Tia, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Embeding images in HTML emails
www.phpclasses.org Stas - Original Message - From: Andrew Perevodchik [EMAIL PROTECTED] To: Michael Sims [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 3:06 PM Subject: Re: [PHP] Embeding images in HTML emails Hello, Michael Sims! MS I imagine that MS Manuel Lemos' PHP Classes site has a class that would take care of MS this for you... url, plz :) -- Andrew Perevodchik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date Stuff...
(YearsDifference*12)+FullMonthsDifference :) Regards, Stas. - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 1:50 PM Subject: [PHP] Date Stuff... Given a date how would you work out number of months elapsed between DateInPast and DateNow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] header:(location) error
Brett, I only have conditional logic above my header() call... this page is processing form input and does a redirect based on the result? Will this not work? Thank you [EMAIL PROTECTED] ("Brett") wrote in 02b401c0aea2$34676460$e1214ed8@bcnu: I am receiving the following error from my app, and I'd be gratefull if somebody would point out the usual cause of it. I am doing a redirect based on a form validation routine. Thank you. Warning: Cannot add header information - headers already sent in /usr/home/stas/html/cathedral/scripts/act_save_resume.php on line 175 Make sure you have no whitespace above your ? ? tags. If any output is sent to the browser then you can not add a header, session, cookie. Brett -- 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] Problems with mail function
I have the same problem. Mail function works fine on my NT development box, but when I transfer files over to Unix, it doesn't, as if mail goes into the void. The only setting you need on Unix is the sendmail path, no? SMTP and sendmail_from are not required and are ignored, is that correct? stas - Original Message - From: "Colin May" [EMAIL PROTECTED] To: "Kike" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 11:01 AM Subject: Re: [PHP] Problems with mail function Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -) Hi, I have a seious problem with the mail function. It does not send the emails. It returns 1 but does not send them. I think it may be a problem with sendmail permissions. Can you help me? Please. What do the sendmail mail logs say? if you havent got access to them, ask someone who has? -- 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] syntax for session_register();
Hello, What is the correct syntax for registering a variable that's a part of an array. I tried these variations (i'm doing this in a loop): session_register('$form_val[$val]'); session_register($form_val[$val]); This registers _something_, but not what I need. Thanks for any help! stas
Re: [PHP] syntax for session_register();
Sean, as I said, I'm trying to accomplish this in a loop, and the variable is in array. To use your approach I would have to get rid of the loop and type out the code manually. This purpose of this is to create persistant form values in case form validation fails. Here's my code: ?php session_start(); while (list ($key, $val) = each ($form)) { if ($val) { session_register('$form_val[$val]'); $form_val[$val] = $val; echo "$form_val[$val]br"; echo "a href=\"form.php\"test/a"; } } ? - Original Message - From: "Sean B." [EMAIL PROTECTED] You were close: session_register("varname"); The key thing to remember is that it's the variable name WITHOUT the $. so... $variable = "Hello"; session_register("variable"); Hello, What is the correct syntax for registering a variable that's a part of an array. I tried these variations (i'm doing this in a loop): session_register('$form_val[$val]'); session_register($form_val[$val]); This registers _something_, but not what I need. Thanks for any help! -- 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] HTTP_POST_VARS
Hello, Is it that correct that only non-empty variables get inserted into HTTP_POST_VARS? I am trying to do server side form validations, and this represents a bit of difficulty in terms of notifying a user about which fields are missing values.
[PHP] newbie array question
Hello, I am trying to create an associative array dynamically. Here's what I did first: $form_val_list = "firstname,lastname,address,address2,city,state,zip,phone,email,resume"; $form_arr = explode (",", $form_val_list); while (list ($key, $val) = each ($form_arr)) { echo "$key is $valbr"; } This doesn't do the trick, as it creates a regular array with values from my list, as in form_array['1'] = "firstname"; whereas I need form_array['firstname'] Is this possible without being overly complicated? Thanks. stas
Re: [PHP] newbie array question
Thanks, I know that, but I don't want to type out assignments manually, as my list of my form values will grow. However, I solved very simply like this: $form_val_list = "firstname,lastname,address,address2,city,state,zip,phone,email,resume"; $form_arr = explode (",", $form_val_list); while (list ($key, $val) = each ($form_arr)) { $new_arr[ $val] = "some test value"; } stas - Original Message - From: "Boget, Chris" [EMAIL PROTECTED] I am trying to create an associative array dynamically. Here's what I did first: $form_val_list = "firstname,lastname,address,address2,city,state,zip,phone,emai l,resume"; $form_arr = explode (",", $form_val_list); while (list ($key, $val) = each ($form_arr)) { echo "$key is $valbr"; } This doesn't do the trick, as it creates a regular array with values from my list, as in form_array['1'] = "firstname"; whereas I need form_array['firstname'] Is this possible without being overly complicated? Thanks. You need to assign a value to that element. This would work: $assocArray = array(); $assocArray[firstname] = $someVal; $assocArray[lastname] = $someVal; Alternately, you can do: $assocArray = array( "firstname" = $someVal, "lastname" = $someVal ); etc. Chris -- 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] Formatting Dates
Hello, How can I format a date stored in the database in a Date field. It's in this format: -mm-dd I understand that date() function only works for current system date/time. I am looking for something like this: dateformat($date, "mask"), sort of like the one in ColdFusion. Thanks much! stas -- 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]