[PHP] Scree Resolution
Hi, Are there any way to know what screen resolution use a user in your monitor? Thank you in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Resoltuion
Hi, Are there any way to know what screen resolution use a user in your monitor? Thank you in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] read a text file
I was looking for in the news, but i did not encounter any thing. Where can I get an example or the way to read a text file into a variable and how identify the carriage return and special characters. Thank you Edgar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Application Server
I have been programming in various languages for some time now. Out of all of the languages which I have used, I enjoy coding in PHP more so than in any other language. I have programmed in PHP, Java/JSP/Servlets, ColdFusion, Perl/CGI, ASP, to name a few. Still, I believe PHP outshines them all. I am interested in heading an opensource PHP project. Basically it is the development of a PHP application server. Currently, there is nothing out there like this for PHP which I believe is widely supported or known about. I would like to kickstart the development of this product which will take PHP to a different level. My reasons for wanting to do this are many, one of which is the fact that many other programming/scripting languages have an application server which they run on. Apache can be set up to communicate with them. PHP does not currently have this. Right now, there is only a mod_php and basic cgi integration versions. I have spoken with many people and I feel like this can take off. As a matter of fact, I have documented many of my ideas and would like to share them with all of you. Thanks in Advance ecastanedo Edgar Castanedo [EMAIL PROTECTED] http://www.geocities.com/ecastanedo/ - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
[PHP] PHP Application Server
Thanks for your reply. I know that this is going to be a huge task, but I am hoping that together with the nature of the Open Source community, we can build an app server which is comparable, if not better than one of the commercial app servers on the commercial markets. I'd really like to hear anyone else's feedback. Thanks for yours Manuel. BTW... a standalone daemon is exactly what I have in mind. I am in the process of creating the website for the project. I will have all of the info there. I'll post the link when it is up. Edgar Castanedo [EMAIL PROTECTED] http://www.geocities.com/ecastanedo/ - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
[PHP] PHP Application Server
I like the way php works now, but I feel that there are times when it might benefit to have an application server dedicated to php. One example is extensibility. Adding extensions to PHP can get harry, especially if you are working with multiple servers and you want to stay up to date with the latest and greatest. Many times this means reconfigurations and compilations. I think that some people might actually like being able to make this painless. I don't know about you, but I rather code than reconfigure something. We could easily leave this up to the sys admin's, but many times, we are the sys admin's or the sys admin's don't want to do it. I can go on, but I really believe that there is a benefit. Java Servlets/JSP allow you to add a jar file into a directory called "lib". This allows you to extend your application/server with Java code packaged up nicely into zip-like files. You just package em up and dump them into that directory. That's what I am talking about. Being able to extend the server easily and painlessly (Although there will always be problems). If we could have something similar in PHP, I think alot of people would think that that would be cool. Dumping an extensions into a directory and modifying a configuration file to load it on startup (or something similar) could benefit some of us. I know how to configure/make/make install, but sometimes, there is a need for something more so you can focus on the higher level stuff. Check out JRuns or ColdFusionMX's web gui's for example. They let you configure all sorts of stuff through it. I don't mean dump the way we do things now, just extend it so that it might serve a different purpose for enterprise applications. I know that this can be debated, but I think it would be cool to have an extra option like this out there. Jimmy Brake <[EMAIL PROTECTED]> wrote: one of the cool things about php is that you do not need a dedicated application server or servers you just need php+apache and it will outperform most application servers we presently have 7 to 8 php+apache servers that pull data from up to 7 different DB's(oracle and mysql) simultaneously serving up everything from CRM apps to content management to job boards -- we have one server in front that round robins all the connections -- all our apps are built to NEVER write anything to the file system and to write all data to the DB's -- so that eliminates the problem of temp files being on one host and not the next host jimmy asp provider On Wed, 2003-02-05 at 15:44, Edgar Castanedo wrote: > Thanks for your reply. I know that this is going to be a huge task, but I am hoping >that together with the nature of the Open Source community, we can build an app >server which is comparable, if not better than one of the commercial app servers on >the commercial markets. I'd really like to hear anyone else's feedback. Thanks for >yours Manuel. > > BTW... a standalone daemon is exactly what I have in mind. I am in the process of >creating the website for the project. I will have all of the info there. I'll post >the link when it is up. > > > > Edgar Castanedo [EMAIL PROTECTED] > http://www.geocities.com/ecastanedo/ > > > > - > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now Edgar Castanedo [EMAIL PROTECTED] http://www.geocities.com/ecastanedo/ - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: [PHP] PHP Application Server
Thanks for your feedback. I've never worked on an open soure project until now, so I still have a lot of research to do. I guess I should save all of this for general discussions. I'll post something later, when I actually have something going. Thanks Again Manuel Lemos <[EMAIL PROTECTED]> wrote:Hello, On 02/05/2003 09:44 PM, Edgar Castanedo wrote: > Thanks for your reply. I know that this is going to be a huge task, > but I am hoping that together with the nature of the Open Source > community, we can build an app server which is comparable, if not > better than one of the commercial app servers on the commercial > markets. I'd really like to hear anyone else's feedback. Thanks for > yours Manuel. > > BTW... a standalone daemon is exactly what I have in mind. I am in > the process of creating the website for the project. I will have all > of the info there. I'll post the link when it is up. Here are a few tips for a successful Open Source project: - Do not do it just to earn recognition in the Open Source community or else you may be seriously disappointed. Do it because you really need it. Once it is useful to you, chances are that it will be already useful to others. So, focus on making it useful for you. - Do not announce anything until you have it running doing something useful. Forget about wasting time on putting a Web site up now. You will just open expectations on something that you may end up realizing that it is not feasible or you do not have the time and motivation to go ahead. - Do no expect the world to embrace your project just because it is Open Source. Most people do not really care if the source is open. What they care is that the project is free as in free beer and is useful to them. As for contributors, they will not appear any time soon and certainly not in quantity. It is natural that in the beginning you will get an average of 1 real contributor out of 1000 non-contributing users. - Make it modular, not just because it is a good way to define the project architecture, but also because it make its viable and easier for other developers to extend your project without many dependencies on the core of the project. Finally, as in every software project, nothing happens until somebody writes code, so do not get back here until you have something to show . :-) -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Edgar Castanedo [EMAIL PROTECTED] http://www.geocities.com/ecastanedo/ - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
[PHP] Is this possible
I am trying to run a class inside a class, it says that the object is there but when I go to get the info, it is not there. I have attached the code below. Any help would be greatly appreciated. class myfirstClass { function Track($tracknum) { include("insideclass.inc"); $obj = new InsideClass($data,"bob"); if (is_object($obj)) { print("Yes"); // It will print this } else { print("No"); } / below we will see the status of the result for($i=0;$iWhatever[0] . "\n"; } echo($nine); // Does not echo anything. } // end func } // end class -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Is this possible
I am trying to run a class inside a class, it says that the object is there but when I go to get the info, it is not there. I have attached the code below and attache the xml.inc file. Any help would be greatly appreciated. class myClass { function myFunc($var) { include("xml.inc"); $obj = new xml($data,"xml"); if (is_object($obj)) { print("Yes"); // It will print this } else { print("No"); } / below we will see the status of the result for($i=0;$iWhatever[0] . "\n"; } echo($varvalue); // Does not echo anything. } // end func } // end class -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ayuda para hace funcionar PHP
Hola amigos necesito ayuda para hacer funcionar PHP en mi maquina Utilizo Windows 98SE y PWS y no me reconoce las paginas PHP cuando le doy que ejecute el browser me sale el siguiente error Error 403 de HTTP 403.1 Prohibido: prohibido el acceso de ejecución Este error puede producirse si intenta ejecutar un programa CGI, ISAPI u otro programa ejecutable desde un directorio que no permite ejecutar programas. Póngase en contacto con el administrador del servidor Web si el problema persiste. Baje de Internet la versión 4 de PHP de la dirección www.php.net/downloads baje los siguientes archivos php406-installer.exe php-4.0.6-Win32.zip Instale el uno y el otro lo descomprimí dentro de la carpeta c:\PHP Esta parte no entiendo en la sección de pedir ayuda dice los siguiente si está ejecutando el PHP como CGI o como módulo de servidor, etc. --- Edgar Baldiviezo V. Est. Ing. Sistemas --- Visita Mi sitio: http://www.ebaldiviezo.cjb.net --- Ponte en contacto conmigo por el MSN: mailto:[EMAIL PROTECTED] --- Para mensajes sin datos adjuntos: mailto:[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] Need to download files in IE
I am trying to set my script up so that when a person clicks on the link, that the page will prompt for a download w/ the filename in the File Name field in the Save As prompt. I can get this to work in Netscapse but when I try to do it with Internet Explorer I encounter problems. It either says there is no application to read the file (I have acrobat reader on the computer.) or it displays the prompt with either [variable's name passed to script].htm or download.php. And the file I am trying to download is a PDF file. If anyone can help me with this I would greatly appreciate this, and thanks in advance. Regards, Edgar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Need to download files in IE
Hello, This is the URL of the link that I use. http://www.sitename.com/pizzeria.php3?pizzeria=aldentes Here is the code from the script. $file_path = "menus"; $file = $pizzeria . ".pdf"; $full_file = $file_path."/".$file; $filesize=filesize($full_file); header("Content-disposition: attachment; filename=\"$file\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($full_file,"r"); fpassthru($fn); fclose($fn); exit; I tried it and it did not work. When I click on the link it shows "pizzeria.htm" in the File Name field. Any other suggestions. Regards, Edgar -Original Message- From: Pierre-Yves Lemaire [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Need to download files in IE Hello, I do that with this piece of code. ( This will close the window, so open a new one and put this code inside) header("Content-disposition: attachment; filename=\"$fileName\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($FileName,"r"); fpassthru($fn); fclose($fn); exit; py - Original Message - From: James R. Edgar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 7:57 PM Subject: [PHP] Need to download files in IE > I am trying to set my script up so that when a person clicks on the link, that > the page will prompt for a download w/ the filename in the File Name field in > the Save As prompt. > I can get this to work in Netscapse but when I try to do it with Internet > Explorer I encounter problems. It either says there is no application to read > the file (I have acrobat reader on the computer.) or it displays the prompt with > either [variable's name passed to script].htm or download.php. And the file I am > trying to download is a PDF file. If anyone can help me with this I would > greatly appreciate this, and thanks in advance. > > Regards, > Edgar > > > -- > 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] Good Free PHP Editor?
Hello, I use editplus. It has a feature that lets you add in auto completion files, syntax files. It does have an eval version, and it is not that expensive. http://www.editplus.com Regards, Edgar -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:48 PM To: 'Simon Garner'; [EMAIL PROTECTED] Subject: RE: [PHP] Good Free PHP Editor? > > Has the worst memory management of any software I've ever used. > > I have to reboot at lest 10 times a day when I use it. The support > > forum on their site is filled with complaints on this issue. Their > > response to this issue was not to fix the memory leak (or whatever > > it is) but to issue a warning when resources are getting dangerously > > low to give you the opportunity to save all your work before you reboot. > > Beyond that, their stance is "Well, if you don't like it, return it and we'll > > give you a refund". > > If this wasn't the only piece of software that handled projects the way > > we needed, we'd have thrown out this piece of garbage software a *long* > > time ago. > Running under Win2K I can have HomeSite 4.5.1 open for weeks, > working on 10+ files, without any problems whatsoever. > However, I used to run it under Win98 and it would crash 1-2 times per > day... Unfortunately, I'm running Win98... :/ 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]
Re: [PHP] PHP friendly web software?
Have you tried Delphi for PHP? So, mixing HTML and PHP code is a good choice when the PHP code is only about how present the information. If you are mixing your bussines logic and presentation you need learn MVC layers. 2008/11/25 John Boy <[EMAIL PROTECTED]>: > Can anyone recommend a wysiwyg web development software which is php > friendly, i.e. you can design the page in wysiwyg and insert php code into > the html without destroying the screen image preview. I've been using > Frontpage to compose the page then dev-php to insert the php code. This has > worked well but if layout changes need to be made Frontpage displays stuff > all over the place. Just trying MS Expression but this shows blank page when > any php code is present. Any ideas? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Abraços Edgar Ferreira da Silva Engenheiro de Software Campinas - SP (19) 8110-0733 - Aprenda PHP, cole códigos, saiba das vagas de empregos: http://www.manjaphp.com.br
Re: [PHP] Cannot Install mysql extension
What OS are you using? On Thu, Jan 8, 2009 at 3:36 PM, Gary wrote: > Just installed Apache 2.2 and PHP 5.2.8, am able to test, works fine. > > I am no able to get the mysql extensions to install. I have gone in to > reinstall, the dialog box says that 0bytes to be installed. > > Have searched, several forums have suggested to remove the ; from in front > of the extension=mysql.so, but no such line exists in the php.ini > > Manually entered it, still no mysql extension show up in the info page. > > Any suggestions? > > Gary > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Abraços Edgar Ferreira da Silva Engenheiro de Software Campinas - SP (19) 8110-0733 http://edgarfs.com.br - Aprenda PHP, cole códigos, saiba das vagas de empregos: http://www.manjaphp.com.br
Re: [PHP] ArrayObject - Posibillity to add key => value pair per default?
Did you try: $a = new ArrayObject; $a['sometest'] = 'somevalue'; ? On Wed, Jan 14, 2009 at 10:42 AM, Edmund Hertle wrote: > Hey, > I've just discovered the ArrayObject class, but it seems to not be well > documented, so here is my problem: > > You can use ArrayObject::append() to add a new value to the array, but is > there also a method to add a new key and value? > > And I know that I could extend the class and write my own method but isn't > this quite a base method for arrays in php? So maybe I just missed a obvious > point? > > Quick example: > > Without ArrayObject: > 1. $array[] = $value > 2. $array[$key] = $value > > With ArrayObject: > 1. $arrayObject->append($value) > 2. ??? > > -eddy > -- Abraços Edgar Ferreira da Silva Engenheiro de Software Campinas - SP (19) 8110-0733 http://edgarfs.com.br - Aprenda PHP, cole códigos, saiba das vagas de empregos: http://www.manjaphp.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend (or other) Framework...where to start?
The question is interesting. I do another question: Will PHP5 support PHP4 backward compatibility forever? Ok I'm rediculous, forever not, but, until 5.3 or 6? I really don't know how CI thinks about evolution, but I'm very curious why don't use the new features that provide good evolution? "It's Works" don't seem to me one good reason to not do evolution. Mainly when some concepts are deprecated. I'm don't talking that CI is not good or enough, just, I offer IMHO some interesting questions. On Thu, Jan 15, 2009 at 7:21 AM, Robert Cummings wrote: > On Thu, 2009-01-15 at 09:57 +0300, Usamah M. Ali wrote: >> On Thu, Jan 15, 2009 at 1:59 AM, Paul M Foster >> wrote: >> >> > If you're going to go with a prebuilt framework, I'd recommend >> > CodeIgniter for your first time out. If the docs look good to you (and >> > they are pretty good), you'll probably do fine with it. It's about the >> > lightest weight platform out there. It doesn't get in your way too much, >> > but gives you the benefits of using a framework. >> > >> >> I downloaded CI because of recommendations from this list as well, but >> was totally shocked when I discovered that its codebase is written in >> PHP4! I looked up for an alpha version that is written in PHP5 to no >> avail. I just can't understand why would they still be in PHP4 while >> Symfony, a framework born after CI, requires PHP5 since version one >> and takes full advantage of PHP5's advanced OO features! > > Does it work within a PHP5 environment? If so... why rewrite it? > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Abraços Edgar Ferreira da Silva Engenheiro de Software Campinas - SP (19) 8110-0733 http://edgarfs.com.br - Aprenda PHP, cole códigos, saiba das vagas de empregos: http://www.manjaphp.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend (or other) Framework...where to start?
On Thu, Jan 15, 2009 at 9:48 AM, Robert Cummings wrote: > On Thu, 2009-01-15 at 09:03 -0200, Edgar da Silva (Fly2k) wrote: >> The question is interesting. >> >> I do another question: Will PHP5 support PHP4 backward compatibility >> forever? Ok I'm rediculous, forever not, but, until 5.3 or 6? > > I think once PHP6 comes out we'll find that some PHP4 idiosyncracies > currently tolerated by PHP5 will become fatal errors. At which point > projects like CodeIgniter will probably cease PHP4 support and instead > span their support across PHP5 and 6. > >> I really don't know how CI thinks about evolution, but I'm very >> curious why don't use the new features that provide good evolution? > > I think that's partly a question of what one considers a good feature. > Just because a feature exists doesn't mean it should necessarily be > used. I agree in parts. Things "doesn't mean its should necessarlly" is very very relative. If we think in this way, like PHP is a simple language (but very powerfull) we doesn't have to use OOP to build one application, for example. We need to think carefully about the life time of the application. Mainly when we are talking about frameworks. Watch the evolution walking aside is very important. Another point, talking about frameworks, extending some feature in some times is necessary. Doing in PHP4 using OOP to do this is extend a real class that works like astract class, but there is no interface class, its would be hard to provide reliability. What can do in PHP5. Altough, I agree with you we don't need to implement all new features, but, we need to be carefull with what features evolved. Again, "It's works" isn't a good reason. Mainly in this case. >> "It's Works" don't seem to me one good reason to not do evolution. >> Mainly when some concepts are deprecated. >> >> I'm don't talking that CI is not good or enough, just, I offer IMHO >> some interesting questions. > > I don't know how CI works, just that I also maintain backward > compatibility for my framework to PHP4. However, I'm finding now that > there's not much point since almost all of my client applications are > now running on PHP5. > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP > > -- Abraços Edgar Ferreira da Silva Engenheiro de Software Campinas - SP (19) 8110-0733 http://edgarfs.com.br - Aprenda PHP, cole códigos, saiba das vagas de empregos: http://www.manjaphp.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: problems with loaded extensions
Did you check the apache error log? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird Syntax Error
Try: $insert = "INSERT INTO release_file_upload (upl_file_name, upl_file_type, upl_file_size, upl_date, upl_by, upl_path, release_id) VALUES ('$filename', '{$_SESSION['upload']['type']}', '{$_SESSION['upload']['size']}', now(), '$username', '$path', '$release_id')"; 2008/11/13 Kyle Terry <[EMAIL PROTECTED]>: > I keep getting this syntax error on the following string... > > syntax error unexpected T_ENCAPSED_AND_WHITESPACE expecting T_STRING or > T_VARIABLE or T_NUM_STRING > > $insert = "INSERT INTO release_file_upload (upl_file_name, upl_file_type, > upl_file_size, upl_date, upl_by, upl_path, release_id) VALUES ('$filename', > '$_SESSION['upload']['type']', '$_SESSION['upload']['size']', now(), > '$username', '$path', '$release_id')"; > > -- > Kyle Terry | www.kyleterry.com > -- Abraços Edgar Ferreira da Silva Engenheiro de Software Campinas - SP (19) 8110-0733 - Aprenda PHP, cole códigos, saiba das vagas de empregos: http://www.manjaphp.com.br