[PHP] Server Client Architecture, best parctice

2005-11-17 Thread Yaswanth Narvaneni
Hi! I would like to know what does the community think of the best architecture for server client communication and why? That is, if there is a server in C++ (say a game server) and the PHP has to 'read' data 'from' the server then what is the best form of communication? a) Shared Memory :

[PHP] Re: Server Client Architecture, best parctice

2005-11-17 Thread gOLeM
my friend here forgot to add that it will be a pretty busy website with lots of requests. And i would also like to know if there are any other forms of communication other than the 4 that my friend here specified. Anything that you people think will be efficient. On 11/17/05, Yaswanth Narvaneni

Re: [PHP] Shared Memory Problem

2005-11-17 Thread Jochem Maas
Yaswanth Narvaneni wrote: Hi! I found the solution to my prob. SELinux was enabled in the server which needs disabling. After disabling SELinux it was working great. Thanks for your help guys. Another small query though, is there anyway to enable SELinux and as well use shared memory between

[PHP] plese help

2005-11-17 Thread Aftab Alam
Hello, I want to create a trigger in PostgresSQL , In trigger, Before inserting the record i want to check that data is available or not, if data is not there then the insert script execute otherwise trigget check the next insert script. Please reply. Regards, _ Aftab Alam

Re: [PHP] SOAP and PHP

2005-11-17 Thread Angelo Zanetti
Angelo Zanetti wrote: Hi guys. I've googled but found so many pages that I'm not sure what to use. I want to use PHP to make use of SOAP. I've found: -nuSoap -libxml(2) -php-soap -and others which seemed less important. Can you recommend which one to use? and which one is the most

[PHP] Re: SOAP and PHP

2005-11-17 Thread James Benson
Petr Smith wrote: Torgny Bjers wrote: Angelo Zanetti wrote: Hi guys. I've googled but found so many pages that I'm not sure what to use. I want to use PHP to make use of SOAP. I've found: -nuSoap -libxml(2) -php-soap -and others which seemed less important. Can you recommend which one

[PHP] Re: Server Client Architecture, best parctice

2005-11-17 Thread James Benson
Are both servers on the same machine? Yaswanth Narvaneni wrote: Hi! I would like to know what does the community think of the best architecture for server client communication and why? That is, if there is a server in C++ (say a game server) and the PHP has to 'read' data 'from' the server

[PHP] Re: unsubscribing

2005-11-17 Thread James Benson
Read the instructions on php.net, their are two different ways to unsuscribe, either email or use the web interface, http://php.net/mailing-lists.php wayne wrote: I tried to unsubscribe on several occasion without success. I followed the instruction at the bottom of the email. Can someone

[PHP] Wierd error

2005-11-17 Thread Chris Boget
I'm seeing the following line showing up in my logs: 08:08:30 [warning] [Unknown][0]: Unknown(): Unable to call () - function does not exist and I've narrowed it down to this line of code: settype( $dbObject, null ); When I comment out the above line, the error goes away. When I

[PHP] Re: Server Client Architecture, best parctice

2005-11-17 Thread James Benson
Each has its own benefits, if on a shared server then a database would be the most secure I think, if its a dedicated server then tmpfs or just plain old files will probably be the best, it also depends on various other factors like, server hardware and bandwith, only you can select the best

Re: [PHP] Wierd error

2005-11-17 Thread Chris Boget
I'm seeing the following line showing up in my logs: 08:08:30 [warning] [Unknown][0]: Unknown(): Unable to call () - function does not exist and I've narrowed it down to this line of code: Update, it turns out it's not the settype(). Here's a larger context of the offending area of

[PHP] Re: Server Client Architecture, best parctice

2005-11-17 Thread Mariano Guadagnini
Reading this, a question arose me: is it possible to read a shared memory area with php, supposing than both programs are in the same machine? does php support ipc? that would be greatly useful. Mariano. James Benson wrote: Each has its own benefits, if on a shared server then a database

Re: [PHP] plese help

2005-11-17 Thread Angelo Zanetti
yes Im sure everyone is going to answer seeing that this is a postgres list... oh wait its a PHP list. Sorry buddy, think you're goin to get flamed. Aftab Alam wrote: Hello, I want to create a trigger in PostgresSQL , In trigger, Before inserting the record i want to check that data is

[PHP] Re: Wierd error

2005-11-17 Thread James Benson
There is nothing weird when this function takes a variable as the argument and your using an object, read the manual http://php.net/settype You could try:- $dbObject = (null) $dbObject; Ive not tested that but think it should work! James Chris Boget wrote: I'm seeing the

[PHP] Re: plese help

2005-11-17 Thread James Benson
Aftab Alam wrote: Hello, I want to create a trigger in PostgresSQL , In trigger, Before inserting the record i want to check that data is available or not, if data is not there then the insert script execute otherwise trigget check the next insert script. Please reply. What, and

[PHP] Suppressing Notices from imap_headerinfo()?

2005-11-17 Thread Mike Walsh
I am using imap_headerinfo() to query articles from an NNTP server. I have encountered a situation where I can't suppress some notices from imap_headerinfo() and I can't figure out why. It appears that imap_headerinfo() doesn't like the e-mail address in the article (which is SPAM blocked)

[PHP] Re: How to build a XML DTD on the fly?

2005-11-17 Thread James Benson
Learn DTD and how it works first then you will know :-) A DTD is contained in an external file and not in XML, so you would create a DTD file then link it from the XML like so, !DOCTYPE document SYSTEM document.dtd Erik Franzén wrote: The code below lacks the part where the folling DTD

[PHP] OS Detection

2005-11-17 Thread Rahul S. Johari
Ave, I'm working on a Guestbook for a site and I'm trying to identify Browser Operating System of the user and eventually I'll display the Icon matching the Browser/OS in the entry. I'm able to identify and use an If Conditional statement for the Browser, but I can't seem to identify the OS.

Re: [PHP] Re: Wierd error

2005-11-17 Thread Chris Boget
There is nothing weird when this function takes a variable as the argument and your using an object, read the manual http://php.net/settype I'm not sure what you mean here. Nowhere on the doc page for settype() (at least, not that I saw) does it say you can't pass an object as the first

[PHP] Re: better way to mix html and php code?

2005-11-17 Thread James Benson
None, their all messy and terribly hard to read, I would use CSS instead of tables, that way their would be not much need to change any HTML code incase you wanted to re-design your webpage with another style or make slight alterations etc, HTML coders should be able to understand CSS so would

[PHP] Cookies

2005-11-17 Thread Ben Miller
Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the user does not allow them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies

2005-11-17 Thread Dan McCullough
Tried and true is to set a cookie and then attempt to read it, if you cant read it then cookies are not on. On 11/17/05, Ben Miller [EMAIL PROTECTED] wrote: Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the

Re: [PHP] Wierd error

2005-11-17 Thread Jochem Maas
Chris Boget wrote: I'm seeing the following line showing up in my logs: 08:08:30 [warning] [Unknown][0]: Unknown(): Unable to call () - function does not exist and I've narrowed it down to this line of code: Update, it turns out it's not the settype(). Here's a larger context of the

Re: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the user does not allow them? Set one? :) Then check if it exists or not. This of course will not

Re: [PHP] Cookies

2005-11-17 Thread Robert Cummings
On Thu, 2005-11-17 at 10:33, Richard Davey wrote: Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the user does not allow them? Set one? :)

Re: [PHP] Wierd error

2005-11-17 Thread Chris Boget
why not just do: unset($dbObject); We were using unset() for the longest time but found it doesn't seem to free up the memory. $dbObject = new IPI_OfficeDetailsInterface(); so you want to do a bitwise AND on a non-existant variable and a newly creately object?? maybe you meant to do:

Re[2]: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Robert, Thursday, November 17, 2005, 3:39:43 PM, you wrote: *lol* I do that sometimes... with Javascript too. :) it's amazing what you can break by doing that! Cheers, Rich -- Zend Certified Engineer PHP Development Services http://www.corephp.co.uk -- PHP General Mailing List

Re: [PHP] Sending arrays from page to page

2005-11-17 Thread Lowell Allen
On Nov 15, 2005, at 12:07 PM, Ben Miller wrote: I am trying to learn how to work with arrays, and have the basic concept down for working within a single page, but I am having trouble sending an array from one page to another. For example, I can send a variable from page to page using either

Re: [PHP] OS Detection

2005-11-17 Thread Rahul S. Johari
Ave, Interesting. I did get this JavaScript code for OS detection: // This script sets OSName variable as follows: // Windowsfor all versions of Windows // MacOS for all versions of Macintosh OS // Linux for all versions of Linux // UNIX for all other UNIX flavors // Unknown

Re: [PHP] Wierd error

2005-11-17 Thread Jochem Maas
Chris Boget wrote: why not just do: unset($dbObject); We were using unset() for the longest time but found it doesn't seem to free up the memory. interesting - you are suggesting that settype does free the memory directly? I have seen a number of posts to internals regarding to being able

Re: [PHP] Cookies

2005-11-17 Thread Dan McCullough
You can check on every page load, but I'm sure thats over kill for most public facing sites to catch some Yahoos who have too much time on their hands. On 11/17/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: Is there a way to test if a

RE: [PHP] Wierd error

2005-11-17 Thread Ford, Mike
On 17 November 2005 14:31, Chris Boget wrote: I'm seeing the following line showing up in my logs: 08:08:30 [warning] [Unknown][0]: Unknown(): Unable to call () - function does not exist The line to concentrate on is this one: $dbObject = new IPI_OfficeDetailsInterface();

Re[2]: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Dan, Thursday, November 17, 2005, 3:56:43 PM, you wrote: You can check on every page load, but I'm sure thats over kill for most public facing sites to catch some Yahoos who have too much time on their hands. Is that a new technical term for 'hacker' ? :) Cheers, Rich -- Zend Certified

Re: Re[2]: [PHP] Cookies

2005-11-17 Thread Dan McCullough
:) why of course On 11/17/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Dan, Thursday, November 17, 2005, 3:56:43 PM, you wrote: You can check on every page load, but I'm sure thats over kill for most public facing sites to catch some Yahoos who have too much time on their hands. Is

RE: [PHP] Cookies

2005-11-17 Thread Ben Miller
Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the user does not allow them? Set one? :) Then check if it exists or not. This of course will not

Re: [PHP] Wierd error

2005-11-17 Thread Chris Boget
We were using unset() for the longest time but found it doesn't seem to free up the memory. interesting - you are suggesting that settype does free the memory directly? Yes. Moreso than unset(), at least according to my observations and tests. I have seen a number of posts to internals

Re: [PHP] Re: Wierd error

2005-11-17 Thread Chris Boget
There is nothing weird when this function takes a variable as the argument and your using an object, read the manual Are you suggesting that settype() can't be used for objects? The documentation doesn't seem to indicate that... You could try:- $dbObject = (null) $dbObject; Ive not tested

Re[2]: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Ben, Thursday, November 17, 2005, 4:24:11 PM, you wrote: In order to set one and then check if it exists or not, I have to set it on one page, and then test it on the next page load - In this case, I don't figure out how I need to send information from page to page until they have already

Re: [PHP] OS Detection

2005-11-17 Thread Lowell Allen
On Nov 17, 2005, at 10:09 AM, Rahul S. Johari wrote: I'm working on a Guestbook for a site and I'm trying to identify Browser Operating System of the user and eventually I'll display the Icon matching the Browser/OS in the entry. I'm able to identify and use an If Conditional statement for

[PHP] Re: Formatting of a number

2005-11-17 Thread Dan Baker
Scott Parks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi- I have a number that I am trying to format. It is data coming from a main frame and has 8 characters assigned to it (6 and two decimal places). I have zerofill set up in MySQL on this field and am working on the

[PHP] checkng if string is a number

2005-11-17 Thread blackwater dev
How can I check to see if a string var holds a number? Is regex the only way to do this? For example I have code where the var could hold 10 or ten. If the string is a number, do one thing, if it isn't do something else. is_int doesn't work, intval converts ten to a number so that doesn't

[PHP] Re: better way to mix html and php code?

2005-11-17 Thread Dan Baker
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all, always wondered what's better way to mix html and php code. Here are three ways of the same code. Which one you prefer? (And why, of caurse :)) (snip) I think third solution would be the best solution? IF you are doing a

[PHP] Re: checkng if string is a number

2005-11-17 Thread Ben
blackwater dev said the following on 11/17/2005 11:37 AM: How can I check to see if a string var holds a number? Is regex the only way to do this? For example I have code where the var could hold 10 or ten. If the string is a number, do one thing, if it isn't do something else. is_int doesn't

Re: [PHP] checkng if string is a number

2005-11-17 Thread Curt Zirzow
On Thu, Nov 17, 2005 at 02:37:49PM -0500, blackwater dev wrote: How can I check to see if a string var holds a number? Is regex the only way to do this? For example I have code where the var could hold 10 or ten. If the string is a number, do one thing, if it isn't do something else. is_int

Re: [PHP] checkng if string is a number

2005-11-17 Thread Max Belushkin
Which version of PHP are you using? On php 4.4.0 (SuSE 10.0 default RPM, not custom build, so perhaps I'm missing some extras you're using?) the following script works fine: ?php if (10==intval(ten)) echo boo\n; else echo no boo\n; ? I get no boo. intval doesn't convert my ten to a

Re: [PHP] Re: better way to mix html and php code?

2005-11-17 Thread Robert Cummings
On Thu, 2005-11-17 at 14:34, Dan Baker wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all, always wondered what's better way to mix html and php code. Here are three ways of the same code. Which one you prefer? (And why, of caurse :)) (snip) I think third

Re: [PHP] checkng if string is a number

2005-11-17 Thread Max Belushkin
If I misunderstood the intval part of your post, than the [proposed already] is_numeric solutions are the way to go. is_numeric will, however, unlike the conversion functions, return false if there's anything but a number in the string, so, i.e., is_numeric (10a1) will return false, but

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-17 Thread Max Belushkin
Hi list, Does anyone have any information/updates on this issue perhaps? The thread on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027056.html hasn't had anything new (since Nov 6), and on http://bugs.php.net/bug.php?id=35059 it's been stated as fixed ever since (Nov

[PHP] Re: Re: better way to mix html and php code?

2005-11-17 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 2005-11-17 at 14:34, Dan Baker wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all, always wondered what's better way to mix html and php code. Here are three ways of the same code.

[PHP] php related segmentation fault with Apache 2.0.55

2005-11-17 Thread kristina clair
Hello, I am seeing Apache segmentation faults with some processes which turn out to be php related. This is a newly upgraded Apache from Apache 2.0.54 to Apache 2.0.55. The scripts that are failing with the new Apache work with no problems with the old Apache. Traceback from Apache is below.

[PHP] Does anyone here use the pecl extension APC?

2005-11-17 Thread Jochem Maas
and possibly with heavy (php5) OO code? I'm getting intermittent segfaults with 5.0.4, 5.0.5 when using apc_fetch() and apc_store() - caching of all opcodes [by setting the ini setting 'apc.enabled' to 1] works fine. I just tried with php5.1RC5 and it just segfaults on every request, with or

Re: [PHP] php related segmentation fault with Apache 2.0.55

2005-11-17 Thread Max Belushkin
I have had various problems with upgrading one or the other, until I took it as a rule to recompile both upon an upgrade. On the machine I do things completely manually on [which has it's drawbacks], I generally also upgrade to the current version of PHP together with any Apache update, and

[PHP] php + cURL issue

2005-11-17 Thread Nate Nielsen
I'm having an issue with cURL. I have installed it on two different boxes, one is working properly, and another isn't. The script auto login's a user to a site. One server it works as expected and logs the user in, the other it does not. It appears the cookie data that is being saved is

Re: [PHP] checkng if string is a number

2005-11-17 Thread Max Belushkin
Curt, yes, technically, 0 is a number - it's a bit late here, and I believe I mis-understood the original question, which is why I re-posted in the thread. I guess my mind got a bit confused by the combination of is_int doesn't work, intval returns a number and '10' vs 'ten' example.

Re: [PHP] php related segmentation fault with Apache 2.0.55

2005-11-17 Thread kristina clair
I actually did that before emailing about php 4.3.10. With php 4.4.1, the traceback is different: Reading symbols from /home/sys/Zend/lib/ZendExtensionManager.so...done. Loaded symbols for /home/sys/Zend/lib/ZendExtensionManager.so Error while reading shared library symbols:

Re: [PHP] php + cURL issue

2005-11-17 Thread Nate Nielsen
also, as another note - the php version and cURL version is identical on the two machines - the main difference between them being that one is windows 2k server and the other one is windows 2k3 server (std ed) any ideas ? thanks - Original Message - From: Nate Nielsen [EMAIL

[PHP] Re: php + cURL issue

2005-11-17 Thread Manuel Lemos
Hello, on 11/17/2005 08:00 PM Nate Nielsen said the following: I'm having an issue with cURL. I have installed it on two different boxes, one is working properly, and another isn't. The script auto login's a user to a site. One server it works as expected and logs the user in, the other it

[PHP] Mail Injection- Which Mail function Parameters

2005-11-17 Thread Chris Drozdowski
Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? First of all I am already validating the $to parameter to be a valid email address. After reading

[PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-17 Thread Chris Drozdowski
Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? First of all I am already validating the $to parameter to be a valid email address. After reading

[PHP] php error message

2005-11-17 Thread Edward Martin
I am new to working with php and I am having trouble trying to figure out this following error message that is displayed when I access a php file. Can you tell me what this error message means (in plain English) and what steps I might take to correct it? Warning: Cannot modify header information

[PHP] Re: php error message

2005-11-17 Thread Ben
Edward Martin said the following on 11/17/2005 04:27 PM: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on line 34 It means you are trying to

[PHP] replicate a live stream from one server to another with php and wget [slightly ot]

2005-11-17 Thread Graham Anderson
has anyone here used wget or similar command to redirect/reflect a live stream data from one server to another server ? I wanted to use each server's upload bandwidth to transfer a live stream to a new server that way, my hope is that I can balance the bandwidth load a bit between

[PHP] Re: php error message

2005-11-17 Thread Chuck Anderson
Ben wrote: Edward Martin said the following on 11/17/2005 04:27 PM: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on line 34 It

Re: [PHP] Re: php error message

2005-11-17 Thread Jasper Bryant-Greene
Chuck Anderson wrote: Ben wrote: Edward Martin said the following on 11/17/2005 04:27 PM: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on

Re: [PHP] php + cURL issue

2005-11-17 Thread Curt Zirzow
On Thu, Nov 17, 2005 at 04:00:21PM -0600, Nate Nielsen wrote: I'm having an issue with cURL. I have installed it on two different boxes, one is working properly, and another isn't. The script auto login's a user to a site. One server it works as expected and logs the user in, the other

Re: [PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-17 Thread Curt Zirzow
On Thu, Nov 17, 2005 at 07:10:06PM -0500, Chris Drozdowski wrote: Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? This is a good topic. I'm in the process of writing an article on

[PHP] SESSION expiry time setting

2005-11-17 Thread Angelo Zanetti
Hi guys. I've been searching for where the time is set for a session to expire but had little luck. in the PHP.ini file I found: session.cache_expire which specifies the time in minutes but is this what sets the session to timeout once the setting time has been surpassed? Or am I looking

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-17 Thread Greg Beaver
Leonard Burton wrote: HI, Tuesday, November 15, 2005, 8:39:19 PM, you wrote: Here are how they look W1W W1AW WA1W AD4HZ N9URK WB6NOA 4N1UBG Let's do it this way... What are the rules for a valid callsign? Basicly, you see an example of each different type of callsign. Other than the

Re: [PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-17 Thread Ligaya Turmelle
$message - yes --- This usually can go without any special escaping, unless you have certain headers (the Boundary: header) or allow an injection into the $additional_headers field. If this is the case a malicious user could attach a virus to be sent anonymously. Shouldn't you

Re: [PHP] Does anyone here use the pecl extension APC?

2005-11-17 Thread Rasmus Lerdorf
Filing a bug against APC with a gdb backtrace from one of these crashes would be useful. See http://pecl.php.net/bugs/report.php?package=APC -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php