[PHP] Install question
I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program ?php phpinfo(); ? Nothing displays. Where do I look to see whats wrong? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and SOAP/XML-RPC
Sean McCormack wrote: Does PHP currently support SOAP? If so, where is the documentation on it (couldn't find it on the site)? If not, when will it be supported? Thanks! Sean McCormack Lead Web Developer, Liaison voice: 512.345.0020 x 189 email: [EMAIL PROTECTED] Do a search on freshmeat.net for Soap. I think you'll find someone who've made an parser for soap. BTW, Soap is just XML, so find more info about Soap and use the XML functions of PHP to generate and parse the messages sent. -- Paul K Egell-Johnsen Developer/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Common security problems in PHP
A short article (http://www.zez.org/article/articleview/69/) describing a couple of the most common security issues in PHP scripts are available at http://zez.org. The article also offers short and helpful tips on avoiding the problems. -- Paul K Egell-Johnsen zez.org: about code http://zez.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] max array size question..
Jeff wrote: I'm trying to read in a text file that has 42620 lines. Each line has zip code information separated by commas. I have no problem reading the file into an array. But when I try and read each element in the array and put it into another array I get a "500 server error". The second to last line is what's causing the problem. After doing some debugging I found out that at around iteration 18000 is when the server error occurs. Any ideas? I know I should use a database, but i'm intrigued by this problem. Check out if the memory usage is overrun; check if timeout occurs. (Your probgram isn't much help without the data) -- Paul K Egell-Johnsen Developer/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Do you know what Inter process communication (IPC) is?
If you don't Luis Argerich has written an article about this at zez.org: about code (http://zez.org/). The article is a couple of pages long and contain everything you need to get started with shared memory and semaphores in your PHP projects. Read the full story: http://zez.org/article/articleview/46/ -- Paul K Egell-Johnsen Developer/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Templates
andrew wrote: Sure, My understanding of templating engines 1.array or item is assigned to a variable 2.php placeholders in a html page match in name to above variable. 3.a parser separate from php subsitutes the variable values set in (1) into (2) I've seen plenty of examples where there is a file containing lists of variable to item assignment, and thase files are passed to a one of a few template pages for layout. There must be a way to pass the result set of an SQL query into the set of placeholders - the end result would be that you could call whole sites via simple queries. All you have to pass in would be the SQL parameter. i.e. Table named 'Pvalues' Pvalues Sample Row -- page_id contactus.html page_name Contact Us page_title Contact US header_text Please send an email body_text [EMAIL PROTECTED] footer_text thanks! Check out http://www.scripps.edu/~jesusmc/cachedtpl/CachedTemplate.html by Jesus M Castagnetto. His class solves the problem with caching templates for all the template classes he has found. One of those he found was a class called XTemplates, that class have some very good functions, you could write this in your templae page: {Pvalues.page_id} and in the php page you could assign the result set directly to Pvalues, and all items called Pvalues.something would be filled out with the column of the same name. The only drawback of XTemplates is that it adds some extra spaces to the output, which on large pages might amount to quite a bit, but since you're complentating working something like this out, you might instead rewrite this class to remove that bit of a problem. (I haven't had the time to track the bug down myself.) Some timings I've made have shown that XTemplates on a large result set seems to be only 10% slower than the templates which comes with PHPLib, which is pretty good. Finally it is much easier to use and initalize than any template engine I've tried. -- Paul K Egell-Johnsen Developer/PR Manager zez.org: about code http://zez.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] Shopping Cart Schema - Sessions
JB wrote: I also forgot to mention. I am leaning towards using GET to send the session ids. Many people have told me that customer penatration decreases, some Which people? What facts do they have to support their claims? Is this a bigger problem than distrust in credit card security? Is it a bigger problem than poorly designed shops where people never finalizes their deals? times significantly, when requiring cookies to use the cart. How would this have an effect on my script? i will have to call the sessid in all of my links, correct? That is done automatically by PHP 4.x when using the correct settings, but I can't remember them. There might even be a method for asserting if a user digs cookies or not, and thus based on that set the correct run time status. What I really wanted to pounce on was the customer penetration mentioned. Does anyone have numbers/research on the following: How many don't like to use credit cards on line? How many turn off cookies? How many fear cookies? I feel that for the majority of people cookies are not an issue, probably due to lack of knowledge, or an attitude that it serves a purpose. If your shop is aimed towards fringe groups (like geeks) that sceptic group might be large. If your shop aims at the general population I'm pretty sure that most leave their cookies on because it makes their webmail easier to use, their accounts at amazon easier to use, etc. When in doubt, follow the stream... Check out this, Amazon uses cookies, Amazon does a lot of business. Do you really feel that Amazon misses out on a lot of customers? Do you know of any large websites doing shopping carts which doesn't rely on cookies? Finally the biggest obstacle might be credit card usage (lots of negative hype) or product cost, who wants to use cc for really cheap stuff? Even more finally, sorry that I can't shore up my thoughts with any good facts either, I just felt like questioning the statement since I feel that it isn't neccessary the full truth. -- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Good and working documentation generator
Alain Fontaine wrote: Hi, Is there such a thing yet ? I have had a look at the currently "being developed" documentation generators, but they just don't quite cut it yet, or did I miss one that actually works well ? We are working on Windows platforms, so a tool that does not rely on Unix/Linux only tools, would be perfect. Thanks a lot for your ideas and opinions. At http://developer.ez.no you'll find eZPhpDoc which is based on perl. You'll find examples of its output at http://doc.ez.no it is released under GPL, of course. -- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping Cart Schema - Sessions
JB wrote: I also forgot to mention. I am leaning towards using GET to send the session ids. Many people have told me that customer penatration decreases, some times significantly, when requiring cookies to use the cart. How would this have an effect on my script? i will have to call the sessid in all of my links, correct? Here is the info you asked for originally:) http://www.php.net/manual/ref.session.php You'll need to have the sessid in all links, php does this for you (PHP4) automatically. It also discusses the problem you mention, that browsers aren't obliged to accept cookies and that get is needed. -- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Netscape does not show all the variables
Sam wrote: Hi all, when I use IE, and do a phpinfo() The variable HTTP_ACCEPT_LANGUAGE displays en-gb (for english GB) But Netscape only displays en... The problem is, is that I want to know where visitors to my site are coming from i.e. UK, US, Australia, so that I can do a bit of php so that the relevant information is produced. IE is installed on Windows. In all Windows installations you set your language and country, and I bet that IE knows its way around the registry to compose a correct language string and send it to you. Finally IE is only used on Windows. Though you can set the same info in Unix it is probably so that Netscapes encodes only the language you use in the interface, or the one used while downloading the program, or something similar. Obviously it doesn't go to the same lengths as IE to extract the needed information. Is there anyway to do this, using php? Probably, but not using the info here. You can look up which block an IP address belongs to and then find out which country this is in. (Try www.ripe.org and siblings for more info on this). That's probably the only consistent (and costly in network time/parsing) method, and I wouldn't rely on it either... -- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] include path confusion
Randy wrote: Thanks for the info Brian. But what about the path you have in the include statement? IE: include "../path1/file.php" Does it ignore the path? Try the path? Or just append that path to the end of each path in the include_path? Best regards, Randy My experience is that "../path1/file.php" is appended to all paths in the include path, as well as your current path. Current path, btw, if you are using a lot of included files are always the path of the inital script called. -- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]