Re: [PHP] Re: fsockopen on ssl://

2008-05-19 Thread bob pilly
) 2008/5/18 bob pilly [EMAIL PROTECTED]: Hi Manuel Thanks for the reply. I have tested it with a timeout of 20 seconds and the same thing occurs. It works as before from the command line and not form within apache.. Any more ideas? Cheers Bob - Original Message From: Manuel

[PHP] Re: fsockopen on ssl://

2008-05-18 Thread bob pilly
Hi Manuel Thanks for the reply. I have tested it with a timeout of 20 seconds and the same thing occurs. It works as before from the command line and not form within apache.. Any more ideas? Cheers Bob - Original Message From: Manuel Lemos [EMAIL PROTECTED] To: bob pilly [EMAIL

[PHP] fsockopen on ssl://

2008-05-13 Thread bob pilly
Hi all I have tried researching this issue but havent come up with any solution so im hoping someone has seen it before and can help. I have the following test script that uses fsockopen to connect to a https site, get the contents and outputs it. ?php $host = www.microsoft.com; $path = /;

[PHP] fsockopen on ssl://

2008-05-13 Thread bob pilly
Hi all I have tried researching this issue but havent come up with any solution so im hoping someone has seen it before and can help. I have the following test script that uses fsockopen to connect to a https site, get the contents and outputs it. ?php $host = www.microsoft.com; $path = /;

[PHP] newbie question

2007-03-19 Thread bob pilly
Hi all Can anyone tell me what '' means before a var? e.g function($var) Thanks for any help in advance ___ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz

Re: [PHP] Mail reply-path

2006-08-16 Thread bob pilly
Hi Richard this is exactly what i was after and works perfectly! Cheers Bob Richard Lynch [EMAIL PROTECTED] wrote: On Tue, August 15, 2006 6:54 am, bob pilly wrote: Im trying to send emails using the mail() function but im having a problem. Because the box that the scripts sit

[PHP] Mail reply-path

2006-08-15 Thread bob pilly
Hi all Im trying to send emails using the mail() function but im having a problem. Because the box that the scripts sit on is a shared web-hosting package the Reply-path part of the header always comes up as [EMAIL PROTECTED] but i have set the from part of the header to [EMAIL PROTECTED] A

[PHP] Dynamically assigning var namesi

2006-08-01 Thread bob pilly
Hi all Does anyone know if you can assign a new variable name based on the contents of another variable in PHP? If so whats the syntax to do this? I am parsing a text file that has tens of preset attributes and some of these have hundreds of sub attributes. For example the text file contains

[PHP] multiple BCC addresses with mail() function

2006-05-22 Thread bob pilly
Hi All I am trying to take a list of email addresses from my database and email them all in one email but not allow them to see individual email addresses. Im not sure of the best way to do it but im thinking that just having a large BCC: string made of the addresses. If anyone has dealt with

[PHP] Var within a var

2006-04-09 Thread bob pilly
Hi All Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. e.g i have this stored Dear $title $name we would like to.. I declare the vars $title and

[PHP] Variable within a Variable

2006-04-09 Thread bob pilly
Hi All Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. e.g i have this stored Dear $title $name we would like to.. I declare the vars

[PHP] debugging dl()

2005-09-07 Thread Bob Pilly
Hi All Im having problems using dl() to load an extension that someone has given me. I get the following output from this simple script: //script ?php if(!dl('test_php.so')){ print Failed!; } else{ print Success!; } ? //output PHP Warning: dl(): \u?\u: Unable to

[PHP] php and com

2005-05-17 Thread Bob Pilly
I am trying to start word using com and php. I am running php 5.04 and apache 2.054 on windows. I have used a simple example from the php site but cant get it working. |?php // starting word $word = new COM(word.application) or die(Unable to instantiate Word); echo Loaded Word, version

[PHP] PHP and COM+ prob

2005-05-17 Thread bob pilly
Hi all! I am trying to start word using com and php and having problems. I am running php 5.04 and apache 2.054 on windows. I have used a simple example from the php site but cant get it working. |?php // starting word $word = new COM(word.application) or die(Unable to instantiate Word); echo

[PHP] POST method to php page from php page

2005-04-08 Thread Bob Pilly
Hello all Does anyone know if its possible to post data using the http POST method to another form using php? I know its possible to use: header( Location: somelocation.php? .SIDsomevar=$somevar ); But this uses the GET method any help or pointing me to any relevant documentation would be

[PHP] Dynamic Class Name Assignments

2004-11-24 Thread bob pilly
Hi All, im new to classes in PHP. Im trying to create several instances of a very basic class but i want each name to be based on number values in an array and im not sure if it is allowed and if so how to do it. I assume that im not allow to have a var starting with a number so what i am trying

[PHP] Class Syntax Help or Globals issue

2004-06-03 Thread bob pilly
Hi All I am new to classes and are trying to work out whether they will make my coding experience easier. I have written the following test class which is trying to take three variables from a mssql query and add them as variables in a new class. This isnt working as i keep getting an error that

[PHP] query returns 0 when it shouldnt

2004-02-18 Thread bob pilly
Hi All Im having trouble with a query that runs fine when i cut and paste it to freetds and run against the database. code as follows: $query =select count(phonenum) from callrslt where (dateofcall = '$today') and (callresultcode ='9' or callresultcode ='12' or callresultcode ='14');

[PHP] syntax help

2004-02-13 Thread bob pilly
Hi all I have a problem that is probably just a lack of php syntax knowledge on my part and hopefully someone can help me out. I have an array and i want to query a database for each value in that array. I then want to store that result as a new variable called $array[value]total. see code

[PHP] Storing MS Word documents

2004-01-29 Thread bob pilly
Hi all Im having problems storing a MS word document as an image data type in a MS SQL Server 2000. Im getting as far as the query but i am getting the following error: Warning: mssql_query(): message: Unclosed quotation mark before the character string 'ETH;Iuml;agrave;iexcl;plusmn;aacute;'.

Re: [PHP] Storing MS Word documents

2004-01-29 Thread bob pilly
15) in /var/www/htdocs/searches3.php on line 23 Warning: mssql_query(): Query failed in /var/www/htdocs/searches3.php on line 23 Couldn't add file to database --- Stuart [EMAIL PROTECTED] wrote: bob pilly wrote: It seems to me that the addslashes isnt working and the query is failing

Re: [PHP] Storing MS Word documents

2004-01-29 Thread bob pilly
Have sorted this out now. Theres a bit about storing binary data in the mssql docs: http://uk.php.net/function.mssql-query Just in case anyone wanted to know. --- Stuart [EMAIL PROTECTED] wrote: bob pilly wrote: It seems to me that the addslashes isnt working and the query is failing

Re: [PHP] problem with mssql_query

2003-11-12 Thread bob pilly
Thanks! Cheers Bob --- Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 11 November 2003 23:07, bob pillford wrote: Hi all i have the following code which isnt working correctly and i cant work out why. Any help would be greatly appreciated as its sending me crazy! $query = select

[PHP] printing values from a 2 dimension array

2003-10-15 Thread bob pilly
Hi all Im having problems printing values from a 2 dimensional array: If i have: temp[0]=array(0,10,11); temp[1]=array(a,b,c); print $temp[0][1]; i expected the output to be '10' instead i get 'Array[1]', however if i use: $var=$temp[0][1];print $var; i get '10' as the output. This is fine but

Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread bob pilly
') and (source !='Outbound'); $result=mssql_query($query,$numero); $row=mssql_fetch_row($result); $rslt[0][$key]=$row[0]; } print $rslt[0][1]; ? Cheers Bob Jason Wong [EMAIL PROTECTED] wrote: On Wednesday 15 October 2003 17:44, bob pilly wrote: Im having problems printing values from a 2 dimensional

Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread bob pilly
the output of print_r. Cheers Bob Jason Wong [EMAIL PROTECTED] wrote: On Wednesday 15 October 2003 21:02, bob pilly wrote: print $rslt[0][1]; What does print_r($rslt) give you? Is it what you expected? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

[PHP] datediff in php

2003-10-02 Thread bob pilly
Hi all Does anyone know if there is a date difference function in php? I have searched the manual but found none. What im after is a function that will return the number of days or seconds between a start date and a second date. Much like DATEDIFF in ms sql. Any help or pointing to relevant

[PHP] POST security

2003-09-05 Thread bob pilly
Hi all, i know this isnt strictly a php question but thought you would be a good group to ask because of your experience. Is there any security issues with passing data via the POST method from a webserver to a different webserver running ssl. For example: webserver1 form name='form1'

[PHP] syntax error using header and SID

2003-09-04 Thread bob pilly
Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( Location: page2.php??echo strip_tags (SID)? ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink. Any help would be

[PHP] Filling a text field

2003-08-14 Thread bob pilly
Hi all Is there anyway in php to fill a HTMl text input field with a php variable? Or do i have to use javascript? Thanks for any help in advance! Want to chat instantly with your online friends? Get the FREE Yahoo!

[PHP] reading in files

2003-07-23 Thread bob pilly
Hello all I have a page where a user uses a browse button in html to upload a file from there client pc. They then click upload which submits the form to the second page: example form name=form1 method=post action=/test2.php input type=file name=file input name=upload type=submit id=upload

[PHP] £ outputting £ signs

2003-07-22 Thread bob pilly
Hello all Can someone tell me where i am going wrong here. I am trying to echo a '£' to the screen which has come from a database field. I get the field by: $notes=%row[notes]; and the feild contains the data £25000, however when i echo this to the screen i get £25000. I have tried

[PHP] outputting a carriage return

2003-07-17 Thread bob pilly
Hi all Can someone tell me why if i echo a line like this: echo this is a \n newline; the output is: this is a newline. But if i do this: $text=this is a \n newline; echo $text; the output is: this is a newline? Is there something i have to do to a variable in order for echo or print to

[PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread bob pilly
Hi all, yet again im struggling with php syntax after to many years with c. If anyone can help or point me to some good doc's i'd would really appreciate it! My two questions are: Can i declare an array that doesnt have a fixed size? Basically i want to assign the results of a query to the

Re: [PHP] variable sized arrays global vars - another newbie question

2003-07-15 Thread bob pilly
: function (){ global $counter; $counter++; } but then when i go to echo $counter outside of the function its value hasnt changed? Yet again any help would be appreciatted! Dirk Kredler [EMAIL PROTECTED] wrote: Am Dienstag, 15. Juli 2003 14:39 schrieb bob pilly: Can i declare an array

[PHP] newbie array question

2003-07-10 Thread bob pilly
Hi All Im new to php and are getting a bit confused about the sybase_fetch_array function (i think that this is the same as mysql_fetch_array?). If i have a valid sql query that returns three the records 'john','jack' and 'mary' and i want to put that into an array where

[PHP] HTMLENTITES(); the pound sign

2003-07-01 Thread bob pilly
I am using PHP Version 4.3.2-RC1 Can someone please clarify the htmlentities() function for me? I have a variable called $notes2 that is pulled from a database that has a pound sign in it. When i echo that do the screen i get the following output: echo $notes; output= £5,000 Instead of £5,000

[PHP] using % and £ in strings

2003-06-10 Thread bob pilly
Hello I am trying to let a user enter notes about an appointment but are having errors when trying to write their input to a database. The users input goes into string $appnotes $query2=update appresult set appresult = '$appointmentresult',product='$product',fees='0',appnotes='$appnotes' where

[PHP] Installation Problem

2003-03-26 Thread bob pilly
Hi Im trying to install php-4.3.1 as a dynamic module in apache-2.0.44 but are having problems. I install and compile both with no problems using the --with-apxs=pathto in the ./configure command for php. I can see that it has created the libphp4.so in pathtoapache/modules/ and i have added

[PHP] sybase error

2003-03-26 Thread bob pilly
Hi all I have installed php 4.3.2 RC1 with the --with-sybase=/pathtomysysbase dir configure switch. I have had no installation problems but now when i go to load a page with the sybase_connect() function call in it i get the following error: Fatal error: Call to undefined function:

[PHP] module php4_module is already loaded

2003-02-13 Thread bob pilly
Hello Recently i have installed apache 2.0.40-11 that comes with Redhat 8.0 Linux, i have tried installing php 4.2.2-8.0.7 with it but when i put the LoadModule php4_module modules/libphp4.so i get the following error when running apache. [warn] module php4_module is already loaded, skipping

Re: [PHP] module php4_module is already loaded

2003-02-13 Thread bob pilly
No i have searched my httpd.conf file and i dont. --- Marek Kilimajer [EMAIL PROTECTED] wrote: You might have LoadModule libphp4.so somewhere before where you added it bob pilly wrote: Hello Recently i have installed apache 2.0.40-11 that comes with Redhat 8.0 Linux, i have tried

[PHP] Failed php module load

2002-12-02 Thread bob pilly
Hello all Im trying to load php 4.2.3 as a dynamic module into apache server 2.0.43 but am running into problems. Everytime i run the configtest or try and start the apache server i get the following error. Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined