[PHP] private functions
Hello, Sorry, i posted this to my local newsfeed a while ago but i don't think it is propogating properly, however i apologise if this appears twice. --- i've been using private functions like the code below a little, and just discovered that if you call the outside function more than once you get an error. Apparently it doesn't like redeclaring the inside function the second time you call the outside function... this seems strange to me. Any help would be appreciated. Lukas -- 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: Terms used in search engine.
Kunal, Looking at the referer header will tell you the page they came from, looking at the querystring typically of this address will normally give you an indication of the keywords or categories which they were using. ie, http://www.google.com/search?hl=en&q=using+xsl+in+jsp+pages http://google.yahoo.com/bin/query?p=using+xsl+in+jsp+pages&hc=0&hs=0 This would be the referrer page, you could then parse out the 'q' parameter for google, or the 'p' one for Yahoo! for keywords. Easiest way would be to do a split() or something i guess. Lukas "Kunal Jhunjhunwala" <[EMAIL PROTECTED]> wrote in message 050301c13c8d$92255520$0301a8c0@CONFUSED">news:050301c13c8d$92255520$0301a8c0@CONFUSED... > Hey, > I am trying to track the terms the user typed in the search engine to find > and come to my site. How can one do this? I tried some of the Header calls, > but had no success. > Regards, > Kunal Jhunjhunwala > > Two brothers torn apart by Chaos, while the fortress > endures, the great leader will succumb , The third > big war will begin when the big city is burning" - > - Nostradamus 1654 > > -- 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: Email checking
Max, Unfortunately even going part way thru sending mail to someone to verify their email address doesn't guarantee that it is a valid email, the accepting SMTP server may or may not verify the recipient user in realtime, it may que it and then return invalid mail a little later. Lukas "Max Mouse" <[EMAIL PROTECTED]> wrote in message 0c5501c13c81$e6cc7010$1f92968e@oranges">news:0c5501c13c81$e6cc7010$1f92968e@oranges... > I've been looking to check the validity of an email address when it's > entered by a person on a from. So far, I have found many different versions > of code to do this, but I have yet to find one that actually works. I would > like to be able to check to see that: the email is in the correct format and > the domain actually exists. Can anyone lend a hand? > > Max > -- 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 website
Hello, hey is it just me or is the manual on the PHP website all mixed up at the moment ? When you click on the "Documentation" / "English" links it just takes you to a search page ! Similiarly for functions and so on. Lukas Sofnology Ltd -- 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: Running Programs.....
Anthony, "Anthony" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Im trying to use PHP to execute a program, called J-Express, and its run > through the command shell through ./J-Express. > What do I use in PHP so that this program will be automatically opened > through my website. > I have tried a whole variety of things, but cant seem to find anything that > actually opens a program that the user can use. > I'm not sure if this is what you mean, but if you mean that you're trying to open an application on the users computer then you're out of luck. PHP is only able to work on the server. I am not aware of anything that will allow you to execute applications on the client besides some sort of custom plugin or something. > Thanks > > Anthony -- 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: Dated/Timed actions
Stephane, One possibilety is to have a script which does the sending - checking against a db to see what to send out, having it called periodically from a cron job. I have built a (very) simple little daemon for doing jobs like this, it works similarly to cron except it is easier to programmaticly add and remove jobs. It also works on a linear time idea, rather than periodic like cron, so you can ask it to schedule a job a specific time offset from now, or at an absolute time (like cron). This is part of a package i've been working on for a while for defining & managing processes like you describe below. Lukas "Stephane Besnard" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Does anybody know how to generate 'dated/timed actions' with PHP? > > By this I mean, for instance, automatically sending an email to a group of > people when a specific date and time is reached: sending a happy birthday > message to a users. > > Thanks, > Stephane. > > _ > Téléchargez MSN Explorer gratuitement à l'adresse > http://explorer.msn.fr/intl.asp > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator
> -Original Message- > From: Björn Schotte [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 6:42 PM > To: Manuel Lemos > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; pear- > [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API > generator > > * Manuel Lemos wrote: > > Here is the release announcement that may also be found on the site: > > Where's the PEAR context within the marketing text? Well this stuff does work with PEAR::MDB! And we are talking about a model where rapid development and easy of migration to other platforms stands at the core. So its not that big of a deal that its running through a wrapper. However I fail to see why all the other addressants of your reply should care about a PEAR context (you did include all the other non PEAR related mailinglists in your reply as well). Dont get overly jumpy here .. there is no reason to. This can be a big deal for a lot of people (especially the enterprise folks which you also frequently cite as a target for PHP). So it works with php, it works in combination with a PEAR package ... I see a context. Regards, Lukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] connecting to oracle 9i as user SYS
Hi, The topic says it all: How do you connect to oracle 9i as the user SYS? In the user comments about OCILogon() someone mentions that this is a little problematic with 9i, but doesn't really spell out the solution. Regards, Lukas Smith [EMAIL PROTECTED] ___ BackendMedia www.backendmedia.com [EMAIL PROTECTED] Linn Zwoch Smith GbR Reuchlinstr. 10-11 Raum 4.1.6 D-10553 Berlin (Tiergarten) Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDF
Hy! I have an existing pdf formular, which I have to fill up with data from a mysql database. Now, I know, that there are these pdf funktions which could do all the work. But to use these functions I needed the PDFlib. Only the 'lite PDFlib' is an open source product, and the full version espezially PDFlib+PDI or PDFlib Personalization Server (PPS) costs an amazing mount of money. So my questions, is it possible, to fill in data using the 'lite PDFlib' in an existing pdf form? And if not, are there any other possibillities than to buy 'PDFlib+PDI' or 'PDFlib Personalization Server (PPS)' to do so? I'm thankful for every post! greetings to all of you! lukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PEAR-DEV] [debugger] ??
#1 Don't cross post like this ... asking about a free Editor that integrates with DBG would fit php-general but definitely not php-dev or pdphoc #2 Don't come to any of this lists for "hacks" for software #3 DBG is freeware and there are several Editors that integrate DBG SE IDE was bundeled with DBG version 2.10, but was dropped afterwards (dunno if the old version is still up on the site) PHPEdit is Opensource www.phpedit.com Maguma Light is freeware www.maguma.com Best regards, Lukas Smith [EMAIL PROTECTED] ___ DybNet Internet Solutions GbR Reuchlinstr. 10-11 Gebäude 4 1.OG Raum 6 (4.1.6) 10553 Berlin Germany Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de [EMAIL PROTECTED] > -Original Message- > From: Dan Bolser [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 4:20 PM > Cc: [EMAIL PROTECTED]; PHP Mailing List; [EMAIL PROTECTED] > Subject: [PEAR-DEV] [debugger] ?? > > > I want to use this package, > > > with DBG v2.10pl1, (C) 2000,2001, by Dmitri Dmitrienko, [EMAIL PROTECTED], > http://dd.cron.ru > > but I dont want to spend any money. > > Any one know of a nusphere hack? > > What is the story behind that? > > Cheers, Dan. > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PEAR-DEV] New Metabase Aniversary release
Hi, so for all who care: I will begin pearifying Metabase starting next week. Obviously this will take a fair amount of time. Also I am fairly busy with work so any help is greatly appreciated. This is also my first stab at reworking such a huge amount of code that was originally written by someone else. I am quite optimistic that it will work out though (with the megabytes of code my companies framework fills sometimes that code feels alien too :-) ) and I am allready quite aqainted with the Metabase code. I am not very experienced with PEAR DB code though so it is very important for people to tell me what features are missing from Metabase that are included in PEAR now. I also would like to hear where people think the issues will be (and possibly how to solve them). Aside from the fact that the Metabase class is not derived from the PEAR core class there are a couple of things, like being able to retrieve and associative array from a result set, missing from Metabase. The goal is to have a DB abstraction layer based on Metabase with a PEAR DB API. The outcome will be compatible with both Metabase and PEAR DB where necessary through a wrapper class. I also would like to hear if anyone uses Metabase with using the API in metabase_interface.php .. if there are not many people using it then all then I can safely modify the method names and parameters orders in the new DB class and make the same changes to metabase_interface.php. I guess after getting a good idea where the problem zones are and not what features are missing I will first attempt to get a pearified version of Metabase along with the MySQL driver working. I will first focus on the functional aspects, then step by step making the necessary changes to make that final code compliant to the PEAR coding standard. FYI: there has been a lot of discussion about this project in the last couple months (especially december irrc) on the pear-dev mailinglist. So some questions might allready be answered there. Best regards, Lukas Smith [EMAIL PROTECTED] ___ DybNet Internet Solutions GbR Alt Moabit 89 10559 Berlin Germany Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de [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 : how to access functions in seperate files???
> > What do people do with required files? I have a file called config.php > > which contains all my functions. It is 329526 bytes. Should I split this > > up into other files? I don't think so, but what do others think? > > I too am curious about a recommended or best practice. what you want todo is split them up by purpose so you can include as needed also check the differences on include (include_once) versus require (require_once) greets, Lukas Smith [EMAIL PROTECTED] DybNet Internet Solutions GbR Alt Moabit 89 10559 Berlin Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de [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] Re: [PEAR] RE: [PHP] Re: PEAR DB 1.6.0 has been released
electroteque wrote: unfortunately i tried mdb and it was totally unusable and badly documented, and to port pear db over to mdb was impossible, i find pear db ok, even adodb is cool, i had to build my own class specifically just for mysql with pretty good performance as no others could. Actually it had just as much documentation as PEAR DB since a while (I will update the MDB docs with DB updates soon .. just as I will port over the improvements made to DB). Its just that MDB can do way more than DB and yes all of those advanced features havent been documented. I am not sure what you mean with "unuseable". Care to enlighten me? Anyways yes I guess in alot of ways I have been somewhat foolish in this entire process. Since I did MDB few people helped me even though alot of people wanted all the nice Metabase features. At the same time I keep helping out in DB, posting patches etc. So essentially its a one way direction. I feed DB, but DB doesnt feed MDB (so I have to watch thr CVS commits to figure out if I should apply the same thing to MDB). So in the end it seems to me that I was a bit blind sided as to what people really wanted in PEAR. Appearently they prefer to stay with DB, adding things here and there to try to add the missing features. While at the same time ignoring the fact that this will make DB even slower as it is today (yes MDB is faster than DB, MDB2 even more so .. but that is another myth I was unable to combat). Well either way MDB has worked nicely for me and a few people (and will get continued support) and MDB2 works even better for me. So the effort was worth it. Just kinda annoyign getting FUD like this spread across multiple MLs. regards, Lukas Smith [EMAIL PROTECTED] ___ BackendMedia www.backendmedia.com [EMAIL PROTECTED] Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PEAR] Re: PEAR DB 1.6.0 has been released
Justin Patrin wrote: I think you're confusing the issue. PEAR DB does support many databases, but it only loads the code for the ones that you are currently using. So if you're using one database it is effectively a one database API. Jakes wrote: What is performance like using this class? I've gone through the class and it just seams to be over kill, for a DB API (13 databases). Are there any time stats showing the different time in using a single DB API class to the PEAR class. Yes things are really not that bad. However expect to give up somewhere a fairly significant amount of performance. If you are using an abstraction layer you have to do it with a good reason (you need to support multiple databases mainly :-) ). Here is a benchmark John Lim came up with: http://phplens.com/lens/adodb/ It only tests MySQL though and it implements a very unrealistic scenario. The reason that ADODB scores so high can be read here: http://marc.theaimsgroup.com/?l=pear-dev&m=100793507904834&w=2 regards, Lukas Smith [EMAIL PROTECTED] ___ BackendMedia www.backendmedia.com [EMAIL PROTECTED] Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PEAR-DEV] Re: [PHP] RE: [PEAR] WARNING! Virus
lets have this thread die now .. especially as it crosses way too many lists. regards, Lukas Smith [EMAIL PROTECTED] ___ BackendMedia www.backendmedia.com [EMAIL PROTECTED] Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.3.0alpha3
Hello! Johannes has packaged PHP 5.3.0alpha3, which you can find here: http://downloads.php.net/johannes/ Windows binaries thanks to Pierre, which are available 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 reproducable test case. It seems unlikely that we will be able to release a beta this year. However we currently do not plan another alpha release unless we find larger issues in the namespace changes. Please also note that the documentation for namespaces has been updated already: http://php.net/namespace regards, Johannes and Lukas
Re: [PHP] optional type hinting enhancements
On 19.01.2009, at 00:00, Nathan Rixham wrote: Jochem Maas wrote: Nathan Rixham schreef: Hi All, preface: Having discussed at great length previously and probably completely misnaming and thus misleading the conversation here goes again. question: Would anybody else like to see, or feel the need for, *optional* type hinting of variables and class properties in PHP? examples (all optional, and syntax may differ): class Example { private TypeHint $var; } Example $var = new Example(); in addition the ability to type hint primatives/scalars/[type object] in the existing implementation: function(bool $flag) { } function(object $flag) { } This would all be under the assumption and proviso that an implementation would not break bc, have any markable perfomance hit, or in any other way effect existing applications or new applications that did not use the functionality (in the same way the existing type hinting implementation doesn't) Any +1's? can I give a +1 for you making a request to start a RFC on the matter ... I'm sure LKS will give you perms to set up one on wiki.php.net/rfc. lukas, thoughts? [ini proposals coming in a minute, just diff'ing] i do not determine what things are worthy of an RFC. i just handle granting the karma to anyone who wants to write one. so just register .. btw: http://wiki.php.net/rfc/typehint regards, Lukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.3.0RC1
Hello! Johannes has packaged PHP 5.3.0RC1, which you can find here: http://downloads.php.net/johannes/ Windows binaries are available here: http://windows.php.net/qa/ This release candidate makes us feature complete and we hope to only require minimal changes ahead of the next release. Many, but not all, of the new features are already integrated in the official documentation on php.net. Please not that we are aware of minor issues with integer handling that we still want to fix (though most of them have also affected PHP 5.2) and a crash bug in NSAPI. Expect an RC2 in 2-3 weeks time, though for most users there will not be a noticeable change meaning that now is the time to start doing the final testing of PHP 5.3.0 before it gets released with any unnecessary incompatibilities with your project. Some additional links to get started: http://cvs.php.net/viewvc.cgi/php-src/NEWS?view=markup&pathrev=PHP_5_3 http://wiki.php.net/doc/scratchpad/upgrade/53 Best Regards, Johannes and Lukas PHP 5.3 Release Managers
[PHP] [PHP-DEV] PHP 5.3.0RC4
Hello! we have packaged PHP 5.3.0RC4, which you can find here: http://downloads.php.net/johannes/ Windows binaries are available here: http://windows.php.net/qa/ This this release candidate focused on bug fixes and stability improvements and we hope to only require minimal changes ahead of the next release. Many, but not all, of the new features are already integrated in the official documentation on php.net. We aim to release PHP 5.3.0 next week. In case of critical issues we will continue producing weekly RCs. For most users there will not be a noticeable change meaning that now is the time to really do the final testing of PHP 5.3.0 before it gets released with any unnecessary incompatibilities with your project. Some additional links to get started: http://cvs.php.net/viewvc.cgi/php-src/NEWS?view=markup&pathrev=PHP_5_3 http://cvs.php.net/viewvc.cgi/php-src/UPGRADING?revision=PHP_5_3 Best Regards, Lukas and Johannes PHP 5.3 Release Managers -- PHP Internals - PHP Runtime Development Mailing List 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] PHP 5.3.0 Released!
Hello! The PHP Development Team would like to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes. Release Announcement: http://www.php.net/release/5_3_0.php Downloads:http://php.net/downloads.php#v5.3.0 Changelog:http://www.php.net/ChangeLog-5.php#5.3.0 regards, Johannes and Lukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.3.0alpha1
Hello! Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find here: http://downloads.php.net/johannes/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. The final release is expected sometime between mid September and mid October. You can read more information about this release here: http://www.php.net/archive/2008.php#id2008-08-01-1 regards, Johannes and Lukas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.3.0alpha2
Hello! Johannes has packed PHP 5.3.0alpha2 yesterday, which you can find here: http://downloads.php.net/johannes/ Windows binaries (optimized for various versions of Windows) are available from the new website dedicated to PHP's windows binaries: http://windows.php.net/downloads.php Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere at the end of next week. regards, Lukas and Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 5.3.0alpha2
On 03.09.2008, at 00:27, Lukas Kahwe Smith wrote: Hello! Johannes has packed PHP 5.3.0alpha2 yesterday, which you can find here: http://downloads.php.net/johannes/ Windows binaries (optimized for various versions of Windows) are available from the new website dedicated to PHP's windows binaries: http://windows.php.net/downloads.php Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere at the end of next week. Sorry, that last line should not have been in there. A final release of PHP 5.3.0 will not happen before October or maybe even not until November. regards, Lukas Kahwe Smith [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php