[PHP] SOAP and MSSQL

2006-11-08 Thread Kencana
hi all, I am a new user of php & SOAP..I got one question about using SOAP. I have try to run SOAP and it runs successfully without any problem the following is the code of the SOAP server: class QuoteService { private $quotes = array('V3' => 'password', 'kencana' =>'kencana',

[PHP] imap_getmailboxes - how to understand the values of "attributes"?

2006-11-08 Thread Jens Meyer
Hello! For a small webmail-client I want to use the mailbox-attributes to make a difference between mailservers and their folder-handling. Unfortunately I don't understand the meaning of the attributes-value in detail. In PHP-manual I found that "Attributes is a bitmask". In comments/notes t

Re: [PHP] Simple logic but can't get it right

2006-11-08 Thread Chris
comments inline Choy, Wai Yew wrote: this if statement is false, because $a == 1 if ($a == 0) { $b = 1; $id = "a"; } this if statement is true, becaus

RE: [PHP] Simple logic but can't get it right

2006-11-08 Thread Daevid Vincent
Since you don't declare variables in PHP, they are preinitialized for you as 'false' or '0' So since $b is not set initially, it is 0 therefore second elseif passes. > -Original Message- > From: Choy, Wai Yew [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 08, 2006 9:34 PM > To: p

[PHP] Simple logic but can't get it right

2006-11-08 Thread Choy, Wai Yew
Hi gurus, I've the following piece of PHP codeIt is a simple logic but I can't get it rightThe output result of $id is "b"!!...It should be "outside", right?? I think it is the variable $bCoz' it depend on the previous check ( if ($a == 0) ) for the value... If this is the case,

Re: [PHP] [newbie in session] Is is right behavior???

2006-11-08 Thread Sumeet
clive wrote: Mariusz Topczewski wrote: Hi, I just start in using session, but unfortunatly I meet first problem right now :-( On some PC when i load the page, the is no content, and on other PC the page is loaded properly. On computer where the page is blank i have to press F5 (refresh), and

[PHP] dns_get_record()

2006-11-08 Thread Ed
Hi, Is there a corresponding php method that would accomplish the same thing as: dig @ns_srvr_name thisdomain.com So far, dns_get_record() uses the default nameserver values from the /etc/resolve.conf (afaik, at least); how do I get it to lookup the domain name using ns_srvr_name as the name

Re: [PHP] Gmail / RSS accessing from script

2006-11-08 Thread Ryan Creaser
Chris Ditty wrote: I am trying to write a small module to display my gmail email on my custom startup page. I am using this url with the correct userid and password - https://USERNAME:[EMAIL PROTECTED]/gmail/feed/atom . When I put it in the web browser, it acts like it is supposed to. But wh

[PHP] Re: Permanent Links - Blog

2006-11-08 Thread Myron Turner
Extra information, constructed as path info, is returned by the apache PATH_INFO environment variable. Assume this script is called path_info.php: PATH_INFO Call it with the following URL: http:/my_server/path_info.php/news-item/june3/2005 It will return the following to the screen:

Re: [PHP] Time-Zone juggling

2006-11-08 Thread Travis Doherty
David Giragosian wrote: > Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did the > military deal with that? > > I use a date-time field as a primary key in db tables that get an > insert a > minute. I had to jump through a number of hoops to turn off DST on the > (RH > Linux) ser

[PHP] Re: PHP in Kenya

2006-11-08 Thread Manuel Lemos
Hello, on 11/05/2006 11:27 AM Mark Steudel said the following: > I'm currently serving in Peace Corps in Kenya and I was looking for other > PHP web developers that are doing e-commerce that I could ping about what > requirements/paperwork etc is involved in setting up e-commerce accounts in > Ken

[PHP] Re: Time-Zone juggling

2006-11-08 Thread tedd
At 7:06 PM + 11/8/06, Colin Guthrie wrote: Going a bit OT but who cares :) tedd wrote: I just wonder how they came up with the acronym of "UTC" for Coordinated Universal Time? In 1970 the Coordinated Universal Time system was devised by an international advisory group of technical exper

Re: [PHP] php.ini and .htaccess not working for php parameters

2006-11-08 Thread James Tu
Sorry...it was my own sillyness. After confirming that the .htaccess file was indeed setting the include_path directory, it turns out that the class file was renamed and PHP could not find it. I'm surprised that PHP doesn't complain that it couldn't find the file...then I started to commen

[PHP] Re: DLL error

2006-11-08 Thread Jo�o C�ndido de Souza Neto
It isn´t a problem. Take a look at this link and you will see that you must have more than the php_oci8.dll. http://www.php.net/manual/en/ref.oci8.php "Robert Hicks" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Possible problem. I am getting this error as well: > > "The

[PHP] generate key with subjectAltName?

2006-11-08 Thread Markus Krause
hi all! i am trying to setup a php-page to create certificate signing requests for webserver certificates. without any extensions i got it working without problems, but we need to have subjectAltName=DNS:host1,DNS:hos2 set. (how) can this be done? any examples? thanks in advance for any h

[PHP] php.ini and .htaccess not working for php parameters

2006-11-08 Thread James Tu
I've setup a few directories under my dev server's webroot...one for each project. Under each project directory, I put php.ini files to set parameters such as include_path. For some reason they are not taking effect. Do I have to enable them somehow? phpinfo() tells me that Server API is Apa

Re: [PHP] access to DB and security

2006-11-08 Thread Satyam
- Original Message - From: "Alain Roger" <[EMAIL PROTECTED]> To: "PHP General List" Sent: Wednesday, November 08, 2006 9:22 PM Subject: Re: [PHP] access to DB and security Hi Satyam, if i understood well, in this special hidden (from web) folder, you write an include file, where

[PHP] Gmail / RSS accessing from script

2006-11-08 Thread Chris Ditty
I am trying to write a small module to display my gmail email on my custom startup page. I am using this url with the correct userid and password - https://USERNAME:[EMAIL PROTECTED]/gmail/feed/atom . When I put it in the web browser, it acts like it is supposed to. But when I try and script it

Re: [PHP] access to DB and security

2006-11-08 Thread Alain Roger
Hi Satyam, if i understood well, in this special hidden (from web) folder, you write an include file, where you only return an opened connection... something like $db (where $db =mysql_connect("$host", "$user", "$user_pwd",false,CLIENT_MULTI_STATEMENTS) ; for example) and only this $db open conne

Re: [PHP] Permanent Links - Blog

2006-11-08 Thread Jürgen Wind
Raphael Martins-2 wrote: > > Hi, > > How do I implement that > "http://myhost/blog/date/of/post/name-of-the-post"; thing, instead of > "http://myhost/blog/view.php?id=id-of-the-post"; ? > I´ve seen this in many blogs, but it´s easy to implement? > See it in action at wikipedia, blogger blogs,

[PHP] Re: DLL error

2006-11-08 Thread Robert Hicks
Possible problem. I am getting this error as well: "The procedure entry point OCILobRead2 could not bel located in the dynamic link library OCI.dll" I am using Oracle9i and OCILobRead2 is not available in my version. So what the heck do I do now? So with PHP 5.2 you pretty much have to use

Re: [PHP] Permanent Links - Blog

2006-11-08 Thread Dave Goodchild
Are you writing the blog from scratch? I think you will have to get to grips with mod_rewrite (Apache).

[PHP] Permanent Links - Blog

2006-11-08 Thread Raphael Martins
Hi, How do I implement that "http://myhost/blog/date/of/post/name-of-the-post"; thing, instead of "http://myhost/blog/view.php?id=id-of-the-post"; ? I´ve seen this in many blogs, but it´s easy to implement? See it in action at wikipedia, blogger blogs, simplebits . Bot

[PHP] Permanent Links - Blog

2006-11-08 Thread Raphael Martins
Hi, How do I implement that "http://myhost/blog/date/of/post/name-of-the-post"; thing, instead of "http://myhost/blog/view.php?id=id-of-the-post"; ? I´ve seen this in many blogs, but it´s easy to implement? See it in action at wikipedia, blogger blogs, simplebits .

[PHP] Re: DLL error

2006-11-08 Thread Robert Hicks
Thanks, I am searching the web for the error as well and nothing "good" yet. "Good" meaning that it seems to be a problem. João Cândido de Souza Neto wrote: I do not have a windows server here to try something but, when i get home i shall try it. If i get some success i shall tell you. -- P

[PHP] Re: DLL error

2006-11-08 Thread Jo�o C�ndido de Souza Neto
I do not have a windows server here to try something but, when i get home i shall try it. If i get some success i shall tell you. "Robert Hicks" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Same error... : ( > > João Cândido de Souza Neto wrote: >> Try to copy your dll f

[PHP] Re: Time-Zone juggling

2006-11-08 Thread Colin Guthrie
Going a bit OT but who cares :) tedd wrote: > I just wonder how they came up with the acronym of "UTC" for Coordinated > Universal Time? In 1970 the Coordinated Universal Time system was devised by an international advisory group of technical experts within the International Telecommunication Uni

[PHP] Re: DLL error

2006-11-08 Thread Robert Hicks
Same error... : ( João Cândido de Souza Neto wrote: Try to copy your dll file into your system32 folder. "Robert Hicks" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] In my php.ini file I have "c:\php\ext" as my extension_dir. When I go to configure PEAR I am getting DLL err

[PHP] Re: DLL error

2006-11-08 Thread Jo�o C�ndido de Souza Neto
Try to copy your dll file into your system32 folder. "Robert Hicks" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > In my php.ini file I have "c:\php\ext" as my extension_dir. When I go to > configure PEAR I am getting DLL error: > > PHP Warning: PHP Startup: Unable to load dy

Re: [PHP] opening .Z archive with gzopen

2006-11-08 Thread Giuseppe Giovinazzi
Please Do you have some examples of using the package File_Archive?. I'm having much problem to use this package. The documentation in http://pear.php.net/package/File_Archive is very poor. For example, I can't extract a file from a gz or zip file. thanks in advantage On 3/27/06, Chris <[EMAIL PR

[PHP] DLL error

2006-11-08 Thread Robert Hicks
In my php.ini file I have "c:\php\ext" as my extension_dir. When I go to configure PEAR I am getting DLL error: PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_oci8.dll' - The specified procedure could not be found. in Unknown on line 0 Since it is pointing exactly

Re: [PHP] OOP slow -- am I an idiot?

2006-11-08 Thread Stut
Stut wrote: This is a question of design, not a question of whether to use OOP. For example, in several of the sites I maintain I have classes that inherit from a base class called Table. The base class provides a lot of the basic methods for working on a table (think ActiveRecord). It also ha

Re: [PHP] access to DB and security

2006-11-08 Thread Satyam
- Original Message - From: "Alain Roger" <[EMAIL PROTECTED]> Hi, My web hoster gave me a login and password with which i can connect to DB, perform some actions as DB owner / superuser just for my DB. If i use this login + password to connect and perform some actions from my web pages

Re: [PHP] Time-Zone juggling

2006-11-08 Thread tedd
At 9:01 AM -0600 11/8/06, David Giragosian wrote: tedd, Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did the military deal with that? LOL -- do you think that the military gives a hoot about daylight savings time? That's one of those civilian things. In military time, Oh

Re: [PHP] access to DB and security

2006-11-08 Thread Richard Lynch
On Wed, November 8, 2006 11:05 am, Alain Roger wrote: > My web hoster gave me a login and password with which i can connect to > DB, > perform some actions as DB owner / superuser just for my DB. > If i use this login + password to connect and perform some actions > from my > web pages, everybody c

Re: [PHP] Spam using email on website

2006-11-08 Thread Richard Lynch
On Wed, November 8, 2006 7:06 am, clive wrote: > Richard Lynch wrote: >> On Tue, November 7, 2006 12:42 am, Pieter du Toit wrote: > >>> What can i do? >> >> Disable the mail() function bit in your code that processes the FORM >> submission. >> > > you could also use a cool class I once found, googl

Re: [PHP] Spam using email on website

2006-11-08 Thread Richard Lynch
On Tue, November 7, 2006 4:22 pm, Bruce Cowin wrote: > Yikes, so besides disabling the mail() function, how do you check for > all that? if (strstr($subject, "\n") || strstr($subject, "\r")) die("Spammer"); Same thing again for "$from" or any other variable going into your headers. In the body,

Re: [PHP] pass value to next page

2006-11-08 Thread Richard Lynch
is one way to carry the data forward. A cleaner way is to use http://php.net/session_start On Tue, November 7, 2006 4:57 pm, Wang Chen wrote: > Hi , > > Newbie question, I have a form, > > >input . >input..

Re: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Richard Lynch
You can save yourself a LOT of headaches by utilizing the ever-popular 'include_path' feature so you never have to put any kind of directory info into your include statements. http://php.net/include_path On Tue, November 7, 2006 9:50 pm, Nuno Vaz Oliveira wrote: > Hi All, > > I'm relatively new to

Re: [PHP] Delivery failed

2006-11-08 Thread Richard Lynch
On Wed, November 8, 2006 2:10 am, [EMAIL PROTECTED] wrote: > We have found that your e-mail account was used to send a large amount > of junk email messages during the last week. I thought the interesting thing was that the filters didn't catch this one. I used to get a zillion of these things...

[PHP] access to DB and security

2006-11-08 Thread Alain Roger
Hi, My web hoster gave me a login and password with which i can connect to DB, perform some actions as DB owner / superuser just for my DB. If i use this login + password to connect and perform some actions from my web pages, everybody can hack my DB and do what they want. My web hoster will not

Re: [PHP] Delivery failed

2006-11-08 Thread Jochem Maas
John Nichel wrote: > Stut wrote: >> Brad Fuller wrote: >>> Did everyone on the list get this message? >>> >>> Dear user php-general@lists.php.net, We have found that your e-mail account was used to send a large amount of junk email messages during the last week. Obvi

Re: [PHP] Delivery failed

2006-11-08 Thread John Nichel
Stut wrote: Brad Fuller wrote: Did everyone on the list get this message? Dear user php-general@lists.php.net, We have found that your e-mail account was used to send a large amount of junk email messages during the last week. Obviously, your computer was infected by a recent virus and no

RE: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Nuno Vaz Oliveira
> > Correct. > > http://www.php.net/set_include_path > Thanks! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Larry Garfield
On Wednesday 08 November 2006 07:52, Nuno Vaz Oliveira wrote: > Hello Larry, > > Now I think I got it :) > > > All include statements are parsed based on the > > defined include path, where "." is interpreted > > relative to the active context, vis, the script > > that the web server itself is runn

Re: [PHP] Time-Zone juggling

2006-11-08 Thread David Giragosian
On 11/8/06, tedd <[EMAIL PROTECTED]> wrote: At 12:48 AM -0500 11/8/06, Travis Doherty wrote: >This can be a big problem to some apps, and others might be fine with >the workaround like we've done where you loose a tiny bit of data (It's >08:00 on the day after the timechange, is this ticket from

Re: [PHP] Time-Zone juggling

2006-11-08 Thread tedd
At 12:48 AM -0500 11/8/06, Travis Doherty wrote: This can be a big problem to some apps, and others might be fine with the workaround like we've done where you loose a tiny bit of data (It's 08:00 on the day after the timechange, is this ticket from 01:30:00 6.5 or 7.5 hours old? who cares.. jus

Re: [PHP] Delivery failed

2006-11-08 Thread Jochem Maas
Stut wrote: > Brad Fuller wrote: >> Did everyone on the list get this message? >> looks that way. >> >>> Dear user php-general@lists.php.net, >>> >>> We have found that your e-mail account was used to send a large >>> amount of >>> junk email messages during the last week. >>> Obviously, your c

Re: [PHP] Delivery failed

2006-11-08 Thread Stut
Brad Fuller wrote: Did everyone on the list get this message? Dear user php-general@lists.php.net, We have found that your e-mail account was used to send a large amount of junk email messages during the last week. Obviously, your computer was infected by a recent virus and now contains a h

RE: [PHP] Delivery failed

2006-11-08 Thread Brad Fuller
Did everyone on the list get this message? > Dear user php-general@lists.php.net, > > We have found that your e-mail account was used to send a large amount of > junk email messages during the last week. > Obviously, your computer was infected by a recent virus and now contains a > hidden pro

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread tedd
At 1:22 PM + 11/8/06, Kris Leech wrote: I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to ha

RE: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Nuno Vaz Oliveira
Hello Larry, Now I think I got it :) > All include statements are parsed based on the > defined include path, where "." is interpreted > relative to the active context, vis, the script > that the web server itself is running. I wasn't aware of the existence of an include_path... That's why I was

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread clive
clive wrote: 1. This is a SQL question and not a php one. 2. select a.name as aname, b.name as bname, c.name as cname where a.id=b.id and a.id=c.id from a,b,c oops beer gone to my head, the from should come before the where as most of you I'm sure know. -- PHP General Mailing List (http://

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread clive
Kris Leech wrote: I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread Chris Boget
I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (fieldnames) of the

[PHP] Join table with clashing fieldnames

2006-11-08 Thread Kris Leech
I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (fieldnames) of the

Re: [PHP] Spam using email on website

2006-11-08 Thread clive
Richard Lynch wrote: On Tue, November 7, 2006 12:42 am, Pieter du Toit wrote: What can i do? Disable the mail() function bit in your code that processes the FORM submission. you could also use a cool class I once found, google/search for phpmailer, it has a nice bit of code that allows y

[PHP] Re: [SOAP] problems with SOAP-PHP5 and heritage

2006-11-08 Thread Ronaldo Reis Junior
Em Quarta 08 Novembro 2006 00:48, Adam Ashley escreveu: > On Tue, 7 Nov 2006 10:06:28 -0200, Ronaldo Reis Junior > > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm making a webservice using SOAP-PHP5. It working fine. But when I use > > a method in a class that use a heritage, it fails. The class w

Re: [PHP] list of countries

2006-11-08 Thread Robin Vickery
On 07/11/06, James Tu <[EMAIL PROTECTED]> wrote: Thanks everyone for the helpful links and suggestions! Any people here with access to a country list in Arabic or Chinese? http://www.foreignword.com/countries/Arabic.htm -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: WAP?

2006-11-08 Thread Michelle Konzack
Am 2006-11-02 15:02:38, schrieb Richard Lynch: > So today I was tasked with converting a PHP SMS solution to a PHP WAP > solution... > > My first attempt at running through a Zend tutorial from 2000 was of > limited success... > > Apparently, the card tag has gone the way of the dodo or something

Re: [PHP] [newbie in session] Is is right behavior???

2006-11-08 Thread clive
Mariusz Topczewski wrote: Hi, I just start in using session, but unfortunatly I meet first problem right now :-( On some PC when i load the page, the is no content, and on other PC the page is loaded properly. On computer where the page is blank i have to press F5 (refresh), and the page appe

[PHP] Delivery failed

2006-11-08 Thread isp-europe
Dear user php-general@lists.php.net, We have found that your e-mail account was used to send a large amount of junk email messages during the last week. Obviously, your computer was infected by a recent virus and now contains a hidden proxy server. We recommend that you follow our instruction i