[PHP] PHP SOAP Client formats

2008-01-09 Thread Tim Traver
Hi all, ok, I am a little bit new to the SOAP game, but I understand it, and am using it to talk to an outside API. The problem that I have is that the server that I am talking to (that is not in my control), will accept the following SOAP call ?xml version=1.0 encoding=utf-8?

Re: [PHP] PHP SOAP Client formats

2008-01-09 Thread Tim Traver
Bastien, Thank you for answering, but the issue is that the PHP SOAPClient classes actually create that xml to send, so I have no control over the xml that is sent with a call command to the SOAP object... I just wondered if there was any flags that I am missing that might bring the php

Re: [PHP] PHP SOAP Client formats

2008-01-09 Thread Tim Traver
Nathan Nobbe wrote: On Jan 9, 2008 10:45 PM, Tim Traver [EMAIL PROTECTED] wrote: Bastien, I want to use PHP's built in classes for this so I don't have to manually send xml to the api... writing the xml by hand would be madness... i didnt want to spend all night screwing around w

Re: [PHP] ssl.

2006-08-24 Thread Tim Traver
João Cândido de Souza Neto wrote: Hy everyone. Since we change our ssl key from 128kb to a 256kb i notice that something´s going wrong. In my e-commerce, part is secure and part isn´t. when i join into the secure part of the site, everithing works fine. But, when the sale is finishes and

Re: [PHP] Really stupid cookie question

2006-09-11 Thread Tim Traver
Brian Dunning wrote: I am embarrassed to ask this. If I set a cookie for 30 days, and the visitor comes back 25 days later but I do nothing to re-set the cookie, will his cookie expire in 5 days, or does his browser automatically reset it to another 30 days? That depends on if you reset the

[PHP] PHP Accelerator

2006-12-06 Thread Tim Traver
Hi, I've been happily using the Free PHP Accelerator for years now, and I recently updated to php 4.4, and I get the following error : the ionCube PHP Accelerator requires Zend Engine API version 20021010. The Zend Engine API version 20050606 which is installed, is newer. Contact Nick

[PHP] HELP !!!!! PHP SOAP Not building objects correctly

2008-05-16 Thread Tim Traver
Hi all, sorry for the cross post to the general PHP list as well as the SOAP PHP list, but I'm a little bit desperate... Ok, for some reason when I am sending the proper objects to the __soapCall method, it is not including those objects in the XML call itself... I am using PHP 5.2.6 now

Re: [PHP] HELP !!!!! PHP SOAP Not building objects correctly

2008-05-16 Thread Tim Traver
Nathan Nobbe wrote: On Fri, May 16, 2008 at 1:04 PM, Tim Traver [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, sorry for the cross post to the general PHP list as well as the SOAP PHP list, but I'm a little bit desperate... Ok, for some reason when I am sending

[PHP] Compiling PHP 4.3.11 on FreeBSD 5.4 amd64

2005-05-14 Thread Tim Traver
Hi all, For some reason, when I compile php on my FreeBSD 5.4 machine (amd64 architecture), it is not creating the shared object file. Here is my config : ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-mcrypt=/usr/local -with-openssl -enable-url-fopen-wrapper

[PHP] Simulating mysql_real_escape_string

2006-06-19 Thread Tim Traver
Hi all, ok, have a relatively complicated architecture of php scripts in place, and after reading more about SQL injection, want to make sure that I clean my data completely before I enter it into a MySQL db. I tend to clean the data on the way into the app, which has many subroutines that

[PHP] default mail headers ?

2005-10-10 Thread Tim Traver
Hi all, when using the mail() function in the base PHP distribution, is there a way to inject a default header onto all mail being sent out ? I thought at some point there was already a header that specified the script that was making the mail() call in it, but it doesn't look like that is

[PHP] Optimizing Images

2005-12-06 Thread Tim Traver
Hi all, ok, I'm trying to write a script to optimize images for the web, but I can't seem to figure out how to go about reducing the color pallete, and therefor reducing the size of the images. I'm trying to be generic about it so that users can optimize GIF's and JPG's or even PNG's. I

[PHP] admin variables in CGI version

2006-01-03 Thread Tim Traver
Hi all, ok, when using the CGI binary for PHP execution, is there a way to send it environment variables to set the admin values like you can in mod_php ??? For instance, when using the apache module, you might do something like this : php_admin_value session.save_path /some/path I know

[PHP] PHP CGI Variables

2006-01-10 Thread Tim Traver
Hi all, ok, I want to re-post this so that more people might see it, cause there has to be an answer somewhere... When using the GCI version of PHP with apache, I need to be able to set some of the php_admin_values that normally get set in the php.ini file on the fly... Since I am not

[PHP] PHP CGI Security

2006-01-17 Thread Tim Traver
Hi all, ok, I have come up with an architecture to offer PHP to customers as a CGI, and want to get some opinions to make sure I'm not missing any glaring holes... I've decided to use suPHP to fork off PHP CGI scripts as the user and group. It seems to work pretty well, and I have tweaked

[PHP] Trouble Compiling 4.3.10 on FreeBSD 5.X

2005-02-26 Thread Tim Traver
Hi all, for some reason, I cannot get php to compile a shared object to work with apache 1.3.33... Here are the config commands that I used for apache and php : EAPI_MM=SYSTEM ./configure --enable-module=so --enable-module=info --enable-module=status --enable-module=rewrite --enable-module=ssl

[PHP] text editor

2005-03-28 Thread Tim Traver
Hi all, ok, I have created my own php text editor that allows a user to edit files from local(server) disk. I use a basic html textarea to show the contents of the file, and let them edit it, and then save it to disk. I've just realized that when editing an html file, that everything is ok,

[PHP] new session in new window

2004-03-08 Thread Tim Traver
Hi all, I am programming an interface using PHP and rely on sessions to keep state. What I want to be able to do is to open a new window from my application that has a new session, without disturbing the current session. I know that I can kill the current session and start a new one, but

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
, $loginTime, $etc) $_SESSION['mySessions']['WindowTwo'] = array($userid, $loginTime, $etc) Tim Traver [EMAIL PROTECTED] wrote: Hi all, I am programming an interface using PHP and rely on sessions to keep state. What I want to be able to do is to open a new window from my application that has

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
, Chris Shiflett wrote: --- Tim Traver [EMAIL PROTECTED] wrote: What I want to be able to do is to open a new window from my application that has a new session, without disturbing the current session. Can you elaborate on this a little? This approach seems very odd to me, and I feel certain

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
a new session ID for that window. I just can't seem to get it to create a new session ID when creating a popup window... Any other ideas ? Tim. wrote: --- Tim Traver [EMAIL PROTECTED] wrote: As an administrator, you log in to the main application. session id's keep track that you

Re: [PHP] new session in new window

2004-03-08 Thread Tim Traver
. At 08:16 PM 3/8/2004, Chris Shiflett wrote: --- Tim Traver [EMAIL PROTECTED] wrote: I sent a new session ID with the link to the new window like this : a href=?PHPSESSID=123456789 target=_blank but all it does is change the current session id to the new one, so if I go back to the main window

Re: [PHP] preg_match

2004-03-28 Thread Tim Traver
Jason, well, if the string is exactly how you have it, then something like this would do : $var=mailto:[EMAIL PROTECTED]); if(preg_match(/^(\S+)\s.+/,$var,$match)){ $name=$match[1]; } Of course, that would exclude those addresses that might have two names, like Tim Traver [EMAIL

Re: [PHP] Re: smarty

2004-04-14 Thread Tim Traver
Enrico, Actually, you can use smarty in a way that solves those issues. Simply do not include the logic features of smarty in your templates. That way, the only thing included in the templates is html, and {$variables}. Then your web designers don't need to learn anything. The problem that

[PHP] SSI and query string variables to PHP

2004-04-24 Thread Tim Traver
Hi all, ok, this may be a dumb question, but I have a page that has server side includes that include a php script like this : !--#include virtual=schedule.php -- works fine, except the script doesn't appear to receive any of the query string information if that page has a query string on

[PHP] SSI and query string variables to PHP

2004-04-24 Thread Tim Traver
Hi all, ok, this may be a dumb question, but I have a page that has server side includes that include a php script like this : !--#include virtual=schedule.php -- works fine, except the script doesn't appear to receive any of the query string information if that page has a query string on

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Tim Traver
asking everyone. Tim. At 01:22 AM 4/25/2004, Evan Nemerson wrote: On Saturday 24 April 2004 10:29 pm, Tim Traver wrote: Hi all, ok, this may be a dumb question, but I have a page that has server side includes that include a php script like this : !--#include virtual=schedule.php -- works fine

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Tim Traver
the QUERY_STRING_UNESCAPED variable and populate the $_REQUEST array myself, cause the QUERY_STRING variable is empty... Tim. At 10:52 AM 4/25/2004, Evan Nemerson wrote: On Sunday 25 April 2004 09:56 am, Tim Traver wrote: Yes, I mean that php gets the server information for the request, but it doesn't

[PHP] setting php_admin_value 2

2004-05-06 Thread Tim Traver
David and all, I apologize for not posting properly. I did not realize that headers were keeping track of the threads of this mailing list. I will make sure I don't do it again. I am actually simply using the Host header to make a dynamic path to its data location in my apache module.

[PHP] php_admin values solution

2004-05-07 Thread Tim Traver
Just in case anyone wants to know the solution, I found one on the apache list... Apparently, from within an apache module, one can use the function zend_alter_ini_entry(open_basedir, 13, path, strlen(path), 4, 16); This function is included in the zend base libraries, and will let you set

[PHP] please remove this user

2004-05-07 Thread Tim Traver
Can any admin remove this user from the list ? Advance Credit Suisse Bank [EMAIL PROTECTED] Every time I post, I get an autoresponse from that address... Anyone else get that ? Thanks, Tim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php_admin values solution

2004-05-07 Thread Tim Traver
for every virtual host in the config file. As long as the directory exists, then apache will serve it up... Tim. At 11:46 AM 5/7/2004, Curt Zirzow wrote: * Thus wrote Tim Traver ([EMAIL PROTECTED]): Just in case anyone wants to know the solution, I found one on the apache list... Apparently

Re: [PHP] please remove this user

2004-05-07 Thread Tim Traver
Uhhh...I shouldn't have to do that... and admin on this list should be able to remove those two offending addresses, right ? Tim. At 11:18 AM 5/7/2004, John Nichel wrote: Tim Traver wrote: Can any admin remove this user from the list ? Advance Credit Suisse Bank [EMAIL PROTECTED] Every time I

[PHP] setting php_admin_value

2004-05-06 Thread Tim Traver
Hi all, ok, I am writing an apache module that dynamically figures out virtual host variables for data locations for my users. I need to be able to set the php_admin_values for each request so that those values get passed through to php and take effect for each request. Normally, this would

Re: [PHP] cron job for php not working

2004-05-20 Thread Tim Traver
It looks like that cron line is making it so that the command runs as the user php... so, you should check if that user has permission to run the script. Tim. At 08:33 AM 5/20/2004, Merlin wrote: Hi there, I am trying to install following cron job: 0 6 * * * php

Re: [PHP] Simple MySQL/PHP Query

2004-05-20 Thread Tim Traver
If you know exactly what you need to append, then you can just do the update query directly. UPDATE tablename SET body=concat(body,'string to add') that should do it... Tim At 09:04 AM 5/20/2004, Nick Wilson wrote: Hi all, First off, yeah, it's a dumb Q ;-) but I cant remember enuf about mysql

Re: [PHP] Simple MySQL/PHP Query

2004-05-20 Thread Tim Traver
yeah, the + modifier thinks you mean you want to add them as integers... use my previous post with the concat command and that works... Tim. At 09:20 AM 5/20/2004, Nick Wilson wrote: * and then Nick Wilson declared pages of course... What I need to do, is add to the very end of each html

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-28 Thread Tim Traver
Oh my god...I'm crying... what the heck is a bacon stretcher ? t At 03:52 PM 5/28/2004, Travis Low wrote: Here's what you do. Assume 10-hour work days. Obviously, you want to start with the schema. That's pretty darn important, so allow yourself a whole day for that. You have four days

[PHP] easy question...

2004-06-01 Thread Tim Traver
Hi all, I'm sure this question has come up before, so it should be an easy answer... I'm running PHP as an apache module, and have safe_mode turned on. When a script attempts to create a directory, or upload a file, it creates it as the web server user. Since it is an apache module, running

[PHP] getting the line number

2004-06-07 Thread Tim Traver
Hi all, Is it possible to get the line number of the parent script of a subroutine ??? ok, let me explain that a little better. I have a script that includes a separate file for functions. In a particular function, if a query gets an error, write out a log file that explains the error. The

Re: [PHP] getting the line number

2004-06-07 Thread Tim Traver
That is exactly what I needed... Thanks ! Tim. At 12:04 PM 6/7/2004, Adam Bregenzer wrote: On Mon, 2004-06-07 at 14:52, Tim Traver wrote: I have a script that includes a separate file for functions. In a particular function, if a query gets an error, write out a log file that explains

[PHP] Running PHP as CGI

2004-11-26 Thread Tim Traver
Hi all, In the quest to secure php script running, I am starting to think about running php as a cgi instead of through the module. I generally set the open_basedir directory within the apache configuration file for individual hosts. If I ran php as a CGI, would that directive still be in

Re: [PHP] Running PHP as CGI

2004-11-26 Thread Tim Traver
I guess what I'm really asking is do the php_admin environment variables that can get set in Apache get passed to the CGI version of php when called as a CGI ? Tim. Curt Zirzow wrote: * Thus wrote Tim Traver: Hi all, In the quest to secure php script running, I am starting to think about

Re: [PHP] Crontab PHP Script

2004-06-26 Thread Tim Traver
Not sure if this is different in linux, but usually the first parameter is the minutes, and if you had 01 in it, that means that it would do it once an hour (i.e. 12:01, 1:01, 2:01, etc... They should all have stars to do it once a minute. In freeBSD, it would look like this : * * *

Re: [PHP] PHP Sessions Question

2004-07-08 Thread Tim Traver
It could be a case that your provider is load balancing across several machines. If they are, and they aren't storing the session data in a central location, then that might account for the issue. That would explain the intermittent failure. The user might be making keepalive requests to the

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Tim Traver
I think the better way is to use brackets to enclose your variable... So it would look like this : $message = Name: {$_POST['Name']} Division: {$_POST['Division']} Phone: {$_POST['Phone']} Email: {$_POST['Email']}; Tim. At 11:15 AM 7/19/2004, Jason Barnett wrote: Markus Stobbs wrote: I'm changing

[PHP] PHP HTML text editor issues...

2004-08-18 Thread Tim Traver
Hi all, ok, I've made my own version of a file manager complete with a text editor, and I'm having troubles figuring out some issues. I present the text to be edited retrieved from a file in a textarea box for a user to edit, and then POST that to my PHP application, which then saves it to

Re: [PHP] PHP HTML text editor issues...

2004-08-18 Thread Tim Traver
No, magic quotes are turned off... Tim. At 09:44 AM 8/18/2004, Jason Davidson wrote: Do you have magic quotes turned on in your php ini file? Jason Tim Traver [EMAIL PROTECTED] wrote: Hi all, ok, I've made my own version of a file manager complete with a text editor, and I'm having troubles

Re: [PHP] PHP HTML text editor issues...

2004-08-18 Thread Tim Traver
Darnit if the php.ini file that I was looking at was the wrong one... looks like turning the magic quotes off in the correct php.ini file worked... thanks, Tim. At 10:17 AM 8/18/2004, Curt Zirzow wrote: * Thus wrote Tim Traver: Hi all, ok, I've made my own version of a file manager complete

Re: [PHP] php security on shared hosts

2004-09-25 Thread Tim Traver
Pablo, As a shared hosting company myself (http://www.simplenet.com/), I can guarantee that is not the way it is supposed to be. We make sure that can't happen by running in Safe mode, using the open_basedir directive, and making sure the directory tree has the correct permissions so the

Re: [PHP] php security on shared hosts

2004-09-26 Thread Tim Traver
Shiflett wrote: --- Tim Traver [EMAIL PROTECTED] wrote: I can guarantee that is not the way it is supposed to be. We make sure that can't happen by running in Safe mode, using the open_basedir directive, and making sure the directory tree has the correct permissions so the situation you

Re: [PHP] php security on shared hosts

2004-09-26 Thread Tim Traver
Oh, and I forgot, you can also specify specific include directories to be allowed for a particular user... Tim. At 09:47 PM 9/25/2004, Chris Shiflett wrote: --- Tim Traver [EMAIL PROTECTED] wrote: I can guarantee that is not the way it is supposed to be. We make sure that can't happen

Re: [PHP] php security on shared hosts

2004-09-26 Thread Tim Traver
of how safe that is, but its as close as I can get it... Seriously, let me know if you've got any issues with PHP's security model. Tim. At 11:26 AM 9/26/2004, Chris Shiflett wrote: --- Tim Traver [EMAIL PROTECTED] wrote: I believe that is the reason that the PHP group came up

RE: [PHP] php security on shared hosts

2004-09-26 Thread Tim Traver
Pablo, I tested Chris's script on our systems, and couldn't browse anywhere other than my own directories, so it is possible to set php up on shared hosts that is a lot more secure than what your host has done. May I ask what host this is ? Is it a major one ? Tim. At 02:09 PM 9/26/2004, Pablo