Re: [PHP] COM works on NT but fails on 2003?

2005-04-10 Thread Jason Wong
On Monday 11 April 2005 12:11, Theisen, Gary wrote: > if ($excel !=== FALSE) { //This is the error line?!?! I even tried > "FALSE". if ($excel !== FALSE) { ... } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] Split command problem

2005-04-10 Thread Jason Wong
On Monday 11 April 2005 09:27, Russ wrote: > I have been trying to get the following code working. I keep getting an > error on line nine. And the error is? > It looks simular to the example in the PHP online > manual. If I substitute a print command for line nine I get the correct > information

RE: [PHP] Re: [PHP-I18N] Multilingual Web application - how to?

2005-04-10 Thread Denis Gerasimov
> > > Web server is Apache2+mod_rewrite with PHP5 > > How is this working for you ? I think there is alot of anticipation to get > this combo working ok withthreading :) It works fine for us. However, our Web server never was under heavy stress. > > -- > PHP General Mailing List (http://www.

Re: [PHP] loading data from database

2005-04-10 Thread Burhan Khalid
Micha Biegnolé wrote: Hi, I am a student of multimedia design. I have two tables in a database with one same column(column:Name). I ask data from table1 collumn:Name. In table2 I want to use the return of data from table1 and search table2 collumn:Name for other information. I tried joined SELECT,

Re: [PHP] adding items on a input box and a checkbox.

2005-04-10 Thread Louie Miranda
> It's possible, but what's the point of having a qty and a checkbox? Because, i want my QTY(input) form to be edited right away. Its the basic code. -- Louie Miranda http://www.axishift.com -- under development

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] multiple databases with one connection

2005-04-10 Thread Yulius Tjahjadi
Hi, Is there a way to change the database after a pg_connect happens? I think in mysql, you can do mysql_select_db('newdb'), but there isn't really an equivalent function. In psql, I can use \connect "newdb", but I think that disconnect and reconnects to the new database. yulius -- PHP General

Re: [PHP] sessions not being stored : DAY 2

2005-04-10 Thread Andy Pieters
On Saturday 09 April 2005 13:13, Burhan Khalid wrote: > Yuri Huitrón Alvarado wrote: > > running whoami in php returns : " root " You know you are crazy as hell running php as root don't you. I guess you use your root account all the time. It kinda defeats its purpose. You should add a user acco

Re: [PHP] Limiting Cpu usage

2005-04-10 Thread Greg Donald
On Apr 10, 2005 9:27 AM, zini10 <[EMAIL PROTECTED]> wrote: > hello, how can i limit cpu usage for shared hosting enviroment? > i mean , im hosting serveal sites and wish for all php scripts to have (for > example) no more than 5% of cpu usage so no one can bomb my server. > im currently using php a

Re: [PHP] Split command problem

2005-04-10 Thread Greg Donald
On Apr 10, 2005 8:27 PM, Russ <[EMAIL PROTECTED]> wrote: > I have been trying to get the following code working. I keep getting an error > on line nine. It looks simular to the example in the PHP online manual. If I > substitute a print command for line nine I get the correct information from > $_P

Re: [PHP] Installation problem of PhP5.0.4 on Fedora 2

2005-04-10 Thread Greg Donald
On Apr 10, 2005 10:59 PM, Teng Wang <[EMAIL PROTECTED]> wrote: > If true, how can I uninstall php4.3.8 first and install php5.0.4 correctly? You can remove your PHP4 rpms with: rpm -qa | grep php | xargs rpm -e -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailin

Re: [PHP] Question about fsockopen

2005-04-10 Thread Greg Donald
On Apr 10, 2005 9:12 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have tested it but it's not what I want to do. I am looking for any > method to make multi connection with many ip from my box to download email > from different mailserver. The method I'd use to fetch mail is fetchmail. ht

[PHP] COM works on NT but fails on 2003?

2005-04-10 Thread Theisen, Gary
Hi all, I currently have php 4.3.10 loaded on a windows 2003 server running apache 2.0.52. PHP and the web server work fine. I've got the code (that used to work on an old NT box running IIS and an earlier version of PHP...I think 4.1 or 4.2??) //.code $excel = new COM("Excel.Application"

Re: [PHP] adding items on a input box and a checkbox.

2005-04-10 Thread Greg Donald
On Apr 10, 2005 9:26 PM, Louie Miranda <[EMAIL PROTECTED]> wrote: > I am having difficulty thingking how can i both add a quantity on a item, > and at the same time detect if my clients did check the box. > > Like this: > http://dev.axishift.com/php/qtybox/qtybox.html I would test if the quantity

[PHP] Installation problem of PhP5.0.4 on Fedora 2

2005-04-10 Thread Teng Wang
Sorry to bother all of you for such a long mail. Most of this email is just scripts. I really need your kindly help! I have a problem when installing PHP5.0.4 on my full-installed Fedora 2 with the following steps: # ./configure --with-apxs2=/usr/sbin/ap

[PHP] Redirection after login with security

2005-04-10 Thread Adam Hubscher
Synopsis: I am writing a management system for a MSSql database driven game, and I've run into an issue. The community site is located on a remote webserver, to protect the actual server from any possible vulnerabilities in the community application/forum application (as we all have seen the re

[PHP] adding items on a input box and a checkbox.

2005-04-10 Thread Louie Miranda
I am having difficulty thingking how can i both add a quantity on a item, and at the same time detect if my clients did check the box. Like this: http://dev.axishift.com/php/qtybox/qtybox.html Here's the code i did, on how to catch the checkbox: ### code ### foreach ($_GET as $varname => $value

Re: [PHP] Question about fsockopen

2005-04-10 Thread php
Dear lists, I have tested it but it's not what I want to do. I am looking for any method to make multi connection with many ip from my box to download email from different mailserver. Thank you David T > [EMAIL PROTECTED] wrote: > >>Dear list, >> >>I have several IP in one interface (eth0) in m

[PHP] Split command problem

2005-04-10 Thread Russ
I have been trying to get the following code working. I keep getting an error on line nine. It looks simular to the example in the PHP online manual. If I substitute a print command for line nine I get the correct information from $_POST[username]. I must be missing or have an extra a quote but

Re: [PHP] Re: [PHP-I18N] Multilingual Web application - how to?

2005-04-10 Thread php
> Web server is Apache2+mod_rewrite with PHP5 How is this working for you ? I think there is alot of anticipation to get this combo working ok withthreading :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] class calling script

2005-04-10 Thread php
Hi there, I have been testing a possible solution to reduce the ammount of interface calling scriptsto my class files. Currently each class has a calling script. I am thinking of setting up a url like /currentdir/packagename/classname, mind you this is only a test but is it a good or bad bad idea

[PHP] Re: [PHP-I18N] Multilingual Web application - how to?

2005-04-10 Thread Ligaya Turmelle
I am currently am using the IntSmarty extension to Smarty (you can get it and more information at http://www.coggeshall.org/oss/intsmarty/index.php/7/). With it the translation(s) is stored as a flat file rather then a DB so it is easy to pass along to the translators and load. I personally f

Re: [PHP] php and javascript

2005-04-10 Thread Marek Kilimajer
PartyPosters wrote: Hello, I have a form that when I hit sumbit I want to test the varialble in javascript. I can get it working using test variables in php but I want to be able to call the input box in my form, the only problem is the name of the box is in an array (i think) as it's in a list.

[PHP] php and javascript

2005-04-10 Thread PartyPosters
Hello, I have a form that when I hit sumbit I want to test the varialble in javascript. I can get it working using test variables in php but I want to be able to call the input box in my form, the only problem is the name of the box is in an array (i think) as it's in a list. You can see the 2 s

[PHP] Re: loading data from database

2005-04-10 Thread Satyam
You probably mean to make a joined query: Select * from table1 inner join table2 on table1.name = table2.name where movies = yes Notice that the join clause has a few options, the most important you might have to consider is the 'left join' or 'right join' which allows you to still see the re

[PHP] Re: Limiting Cpu usage

2005-04-10 Thread zini10
Thought about that, but its a free host that will host many many users.ill prefer them to have low cpu usage limit also if the system is free of tasks as that will never happen. any user can come, prepare a script which will do a infinite loop and will make the server slow for all other users. t

Re: [PHP] Limiting Cpu usage

2005-04-10 Thread Philip Hallstrom
You might want to rethink your strategy. Consider the instance in which only *one* person is hitting your server. That one person *will* get 100% of your CPU since nothing else is going on at the time, so the system might as well give them all the CPU to get their task done sooner. You don't

[PHP] loading data from database

2005-04-10 Thread Micha Biegnolé
Hi, I am a student of multimedia design. I have two tables in a database with one same column(column:Name). I ask data from table1 collumn:Name. In table2 I want to use the return of data from table1 and search table2 collumn:Name for other information. I tried joined SELECT, but it didn't work wi

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-10 Thread Mark Sargent
John Nichel wrote: Mark Sargent wrote: John Nichel wrote: Mark Sargent wrote: http://www.php.net/manual/en/install.unix.php it has 2 examples, 4-1 and 4-2. Little confused with what shared and static modules are and which 1 pertains to me. I was wanting to get php running to allow base to show re

[PHP] Limiting Cpu usage

2005-04-10 Thread zini10
hello, how can i limit cpu usage for shared hosting enviroment? i mean , im hosting serveal sites and wish for all php scripts to have (for example) no more than 5% of cpu usage so no one can bomb my server. im currently using php as a module , i know i can do it if ill use php as a cgi and limit

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-10 Thread John Nichel
Mark Sargent wrote: John Nichel wrote: Mark Sargent wrote: http://www.php.net/manual/en/install.unix.php it has 2 examples, 4-1 and 4-2. Little confused with what shared and static modules are and which 1 pertains to me. I was wanting to get php running to allow base to show results of snort loggi

Re: [PHP] Viewing a specific item within a php web-page?

2005-04-10 Thread Prathaban Mookiah
I guess I had some 'spelling mistakes' in my suggested code. Try the one below. It should be $HTTP_GET_VARS not $_HTTP_GET_VARS. And you can name the script in any way you want to. It need not be script.php. Say if you put this code into a script call getarticle.php, you should call it as you

Re: [PHP] Question about fsockopen

2005-04-10 Thread Josip Dzolonga
[EMAIL PROTECTED] wrote: Dear list, I have several IP in one interface (eth0) in my server and I want make connection to another server (check email, etc) using different ip for every mail server. I was read the document, and there is no way how to make this happen. Any idea? Thank you Take a lo

Re: [PHP] Viewing a specific item within a php web-page?

2005-04-10 Thread Josip Dzolonga
Carlos Palomino wrote: I have a document entitled: articles.php Within this document, I want to store various written articles which are headed by a string value - example: $post_040905 = "text for April 9th 2005"; print($post_040905); $post_041005 = "article for April 10th 2005"; print($post_041

Re: [PHP] Viewing a specific item within a php web-page?

2005-04-10 Thread Prathaban Mookiah
I think you have totally got it wrong. You pass on the value to a php script in the form on http:// /script.php?variable=value. So to accomplish your need you may have to do something like call http:// /script.php?articleid=post_040905. Your program should be modified to maybe something lik

Re: [PHP] Re: Problem with ob_get_contents()

2005-04-10 Thread Prathaban Mookiah
Thanks Skrol for your reply. But the problem is, the shutdown function will have to be executed from a lot of points whenever something goes wrong and I guess calling hello() everywhere manually is not elegant. Maybe it should be reported to PHP bugs. Prathap -- Original Message -

[PHP] Question about fsockopen

2005-04-10 Thread php
Dear list, I have several IP in one interface (eth0) in my server and I want make connection to another server (check email, etc) using different ip for every mail server. I was read the document, and there is no way how to make this happen. Any idea? Thank you -- PHP General Mailing List (htt

Re: [PHP] Session gets corrupted (or lost)

2005-04-10 Thread Burhan Khalid
Marcelo Volmaro wrote: Hi, IÂve made a simple site with a loguin, that in my machine works perfectly, but not on the server. The problem seems to be on the session handling. I donÂt loose the SID, but the session gets corrupted. If I do a print_r($_SESSION), after the loguin i get the correct v