Re: [PHP] Mime Mail problem

2012-03-28 Thread Alexis

Thanks Faith

What exactly do you mean by 'Make sure the boundary is as it should be', 
please?


Here is the full uncensored info, the data is not sensitive anyway, 
minus the initial standard email headers.


Thanks
Alexis


MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=a528ff729471083523feb6e73a0b9ff7

This is a multi-part message in MIME format.

--a528ff729471083523feb6e73a0b9ff7
Content-Type:text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Daily Backups

--a528ff729471083523feb6e73a0b9ff7
Content-Type: text/plain; name=Backup_LEPA_2012-03-25.csv
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=Backup_LEPA_2012-03-25.csv

IkRhdGUiLCJUaW1lIiwiRmx0Tm8iLCJBbHRGbHRObyIsIlJvdXRlIiwiUmVnIgoiMjAxMi0wMy0y
NSIsIjA2OjI1IiwiRlIwNzAzIiwiIiwiUE1JLUtSSyIsIkVJLUVOUCIKIjIwMTItMDMtMjUiLCIw
NjoyNSIsIkZSNjM2MyIsIiIsIlBNSS1CQ04iLCJFSS1FVkMiCiIyMDEyLTAzLTI1IiwiMDY6MzAi
LCJGUjIwNTIiLCIiLCJQTUktTUFEIiwiRUktRENHIgoiMjAxMi0wMy0yNSIsIjA2OjQwIiwiSUIw
Nzk3IiwiIiwiUE1JLU1BRCIsIkVDLUhLTyIKIjIwMTItMDMtMjUiLCIwNzowMCIsIllXODYzMCIs
IiIsIlZMQy1QTUkiLCJFQy1ISEkiCiIyMDEyLTAzLTI1IiwiMDc6MDAiLCJBQjk3MzgiLCJBQjA1
MFkiLCJIQUotUE1JIiwiSEItSk9ZIgoiMjAxMi0wMy0yNSIsIjA3OjAwIiwiVVg0MDA1IiwiIiwi
UE1JLVZMQyIsIkVDLUtYRCIKIjIwMTItMDMtMjUiLCIwNzowMCIsIlVYNjAwNiIsIiIsIlBNSS1C
Q04iLCJFQy1MTFIiCiIyMDEyLTAzLTI1IiwiMDc6MDUiLCJZVzgwMTkiLCIiLC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IiwiIiwiUE1JLUdSTyIsIkVJLUVNSyIKIjIwMTItMDMt
MjUiLCIwOTo0MCIsIkFCNzUxNiIsIiIsIlBNSS1TVlEiLCIiCiIyMDEyLTAzLTI1IiwiMDk6NDAi
LCJBQjc1NzgiLCJBQjAzWVkiLCJQTUktQkNOIiwiIgoiMjAxMi0wMy0yNSIsIjA5OjQwIiwiVlkz
OTkyIiwiIiwiQkNOLVBNSSIsIkVDLUhURCIKIjIwMTItMDMtMjUiLCIwOTo0MCIsIllXODQ4MiIs
IiIsIlBNSS1NQUgiLCIiCiIyMDEyLTAzLTI1IiwiMDk6NDUiLCJJQjI0NDkiLCIiLCJQTUktTUFE
IiwiIgoiMjAxMi0wMy0yNSIsIjA5OjQ1IiwiRFdUMTM2MCIsIiIsIkJSTi1QTUkiLCIiCiIyMDEy

Re: [PHP] Mime Mail problem

2012-03-28 Thread Alexis
If I insert the full stop after the \n then the output stops just before 
the fullstop.


Currently I have \r\n \r\n
That is a space between the two sets of \r\n's.  I tried it without any 
spaces and still got the same result.


Would it be better if I post the code that creates the headers?
I avoided doing that first as I was wondering if I got the headers 
themselves correct?


btw sorry for calling you Faith before, I misread your name, Fatih

Alexis
On 28/03/12 14:25, Fatih P. wrote:



--a528ff729471083523feb6e73a0b9ff7--



can you try to end your message with \r\n.\r\n and let's see the result?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mime Mail problem

2012-03-28 Thread Alexis
Actually Fatih, I have also been playing around with the PEAR mimemail 
option and have just got that to work, so will not be pursuing this 
problem any further, but thank you very much for the time you spent 
helping me.


Alexis

On 28/03/12 14:50, Fatih P. wrote:

On Wed, Mar 28, 2012 at 11:44 PM, Alexisphplis...@antonakis.co.uk  wrote:


If I insert the full stop after the \n then the output stops just before
the fullstop.

Currently I have \r\n \r\n
That is a space between the two sets of \r\n's.  I tried it without any
spaces and still got the same result.

Would it be better if I post the code that creates the headers?
I avoided doing that first as I was wondering if I got the headers
themselves correct?

btw sorry for calling you Faith before, I misread your name, Fatih

Alexis



I guess it is better to see your code. that creates the headers and body
parts too.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to change list settings

2011-05-31 Thread Alexis


How do I change my email settings to digest please as I am fed up with 
receiving all this individual crap that has nothing to do with PHP 
whatsoever.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to change list settings

2011-05-31 Thread Alexis
And how exactly does that TELL me how to change settings? I have already 
used the automated emzlm help system but that does not say a thing on 
the subject


On 31/05/11 08:47, Jay Blanchard wrote:

[snip]
How do I change my email settings to digest please as I am fed up with
receiving all this individual crap that has nothing to do with PHP
whatsoever.
[/snip]

http://lmgtfy.com/?q=php+mailing+list





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to change list settings

2011-05-31 Thread Alexis
Thanks for that straight forward response, shame other people cannot do 
likewise ;)


On 31/05/11 08:56, Daniel Brown wrote:

On Tue, May 31, 2011 at 10:49, Alexisphplis...@antonakis.co.uk  wrote:

And how exactly does that TELL me how to change settings? I have already
used the automated emzlm help system but that does not say a thing on the
subject


 If you looked well enough, you'd not only see how to do it, but
also that top-posting is against the mailing list rules.  ;-P

 Go to http://php.net/mailinglists and select the PHP General User
List as Normal and scroll to the bottom.  Enter your email address,
and click Unsubscribe, then verify your unsubscription request.  Then,
select the Digest option, add your email address again (if
necessary), and click the Subscribe button.  Verify your email
address, and voila!  You should be good to go.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] iPhone sadness

2011-05-30 Thread Alexis

Here here Tim, I thought this was meant to be a PHP list.

I can remember when it first started, no moaning about this or that,
just pure PHP, and no sarcastic comments either, bring back the good old 
days :)


Alexis

On 30/05/11 17:04, Tim Thorburn wrote:

Is there any way that we could simply ban these ridiculous top-posting
vs bottom-posting threads that seem to come along every few weeks? I
frankly don't care where a person writes a reply - I'm quite able to
scan through an email message to find the relevant points regardless.
Maybe we could add a [posting position rant] tag onto emails that
discuss this topic so those of us who couldn't care less could simply
have them directed straight to the trash can?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Closing tab in Firefox

2011-03-15 Thread Alexis

Hi,

I have a number of PHP scripts that I run purely on my own system and I 
am using Firefox, and currently get them to open new tabs each time they 
runwhat I would like to do is to close the tab once they have 
finished running, as if I am away for a few days I can end up with over 
100 open tabs.


I do need to run them in a browser, as sometimes they do not finish 
running properly, and I need to be aware of which ones and why they failed.


I have tried google and all I come up with is closing the entire browser 
and not just a tab.


Any suggestions really woudl be most appreciated
Cheers
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] very quick Regex query

2011-02-28 Thread Alexis

Hi,

I know not strictly a PHP question, but was just wondering if someone 
can tell me the regex format for something please.


I need to replace
..
with

That is six periods replaced by eight hyphens.

Many thanks
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Alexis



On 06/02/11 04:54, Ashley Sheridan wrote:

On Sun, 2011-02-06 at 11:24 +0100, Peter Lind wrote:


On Feb 6, 2011 11:16 AM, Per Jessenp...@computer.org  wrote:


Alexis wrote:


I was wondering if there was a way to use the strtotime() function
when the months are in one or the other of the above two languages?


Ah, I misread this earlier - strtotime(), not strftime().  You're
talking about transforming from text to a locale()-neutral format.  I
don't think strtotime() is locale-sensitive - according to the manual:

The function [strtotime] expects to be given a string containing an
English date format





Strtotime can read a number of formats, but does (from experience) have
problems with some. It won't work with textual dates in anything but
English, far as I know.

Regards
Peter



Is there an example of the different date formats so that we can see
what we're working with here? It sounds like it might require a little
manual intervention first (str_replace() maybe) in order for this to
work.

Thanks,
Ash
http://www.ashleysheridan.co.uk





So basically, the answer is no :)
Looks like I'll simply do a replace of the French named months with 
English ones.


Would have thought the length of time that PHP has been around and with 
people around the world, speaking more than just one language, that 
language support would have progressed further than it appears to have. 
Apparently not.


But thanks for all the suggestions.

Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Bilingual strtotime()

2011-02-05 Thread Alexis

Hi,

Living in Canada, and being a bilingual country, I have data I am 
processing which includes dates in both English and French.


I was wondering if there was a way to use the strtotime() function when 
the months are in one or the other of the above two languages?


Just to add to it, for French, they may or may not have the various accents.

The data is in no specific order, so one could be in English, the next 
in French, then back to English.


All I can think of, is to create an array to 'translate' the French 
months into English, but I was wondering if there is an easier way? If 
not, how in regular expressions, would I go about ignoring accents please?


Cheers
Alexis


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Bilingual strtotime()

2011-02-05 Thread Alexis

On 05/02/11 13:23, Per Jessen wrote:

Alexis wrote:


Hi,

Living in Canada, and being a bilingual country, I have data I am
processing which includes dates in both English and French.

I was wondering if there was a way to use the strtotime() function
when the months are in one or the other of the above two languages?


Sure, strftime() is locale-sensitive. Set the locale().





Thanks

But what if the locale is in two possible languages, all mixed together?

I suppose I could set it to one, check if the output is valid, if not, 
set it to the other.


Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Alexis

Bloody Hell!!

How many lines is the footer in your email response!!!

I make it almost ten times longer than the reply itselftalk about 
abominable netiquette, and I have purposely put this response at the top 
as after all footers do go at the bottom of an email :)


Do you even NEED a footer with nothing but inane comments in it?

Alexis
On 01/02/11 11:54, David Hutto wrote:
 I'd pass the db's to a threaded function that processes each db's info
 in an algorithmic order.

 -- The lawyer in me says argue...even if you're wrong. The scientist in
 me... says shut up, listen, and then argue. But the lawyer won on
 appeal, so now I have to argue due to a court order. Furthermore, if you
 could be a scientific celebrity, would you want einstein sitting around
 with you on saturday morning, while you're sitting in your undies,
 watching Underdog?...Or better yet, would Einstein want you to violate
 his Underdog time? Can you imagine Einstein sitting around in his
 underware? Thinking about the relativity between his pubic nardsac, and
 his Fruit of the Looms, while knocking a few Dorito's crumbs off his
 inner brilliant white thighs, and hailing E = mc**2, and licking the
 orangy, delicious, Doritoey crust that layered his genetically rippled
 fingertips? But then again, J. Edgar Hoover would want his pantyhose
 intertwined within the equation. However, I digress, momentarily. But
 Einstein gave freely, for humanity, not for gain, other than personal
 freedom. An equation that benefited all, and yet gain is a personal
 product. Also, if you can answer it, is gravity anymore than
 interplanetary static cling?
 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
 http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Alexis
Why not have three separate fields for each part, as that way you don't 
need to bother about how the user separates them, as trust me, if they 
can break it, they will.
I have found it is best to always limit the amount of free entry you 
permit a user, as that will drastically cut back in data entry validation.


Alexis


On 29/12/10 17:46, Karl DeSaulniers wrote:

Hi Ethan,
Could you do a string compare and check at certain characters for a dash?
IE:
check the second character to see if it is a dash for 1-800...
if that is not a dash, check the fourth character for a dash, 469-9...
then the other places where dashes would be based on those two characters.
You may have to investigate how international numbers would work and
adjust appropriately, but for the US, that should work.
Then just send an error message when it isn't like you want.
JAT

Karl


On Dec 29, 2010, at 6:27 PM, Josh Kehn wrote:




On Dec 29, 2010, at 7:12 PM, Ethan Rosenberg eth...@earthlink.net
wrote:


Dear List -

Thank you for all your help in the past.

Here is another one

I would like to have a regex which would validate that a telephone
number is in the format xxx-xxx-.

Thanks.

Ethan

MySQL 5.1 PHP 5 Linux [Debian (sid)]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



You can't, phone numbers are more complex then that. You could use
\d{3}-\d{3}-\d{4} to match that basic pattern for all numbers though.

Regards,

-Josh
___
http://joshuakehn.com
Sent from my iPod
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Karl DeSaulniers
Design Drumm
http://designdrumm.com




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Fwd: Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Alexis


What has any of this got to do with PHP!!!

If the moderator is reading this can they please out a stop to it at
once, as it appears to have got way out of control.

Thanks and a Happy New year to one and all




On 29/12/10 16:38, Omega -1911 wrote:

Etiquette went out the window a while ago. As Rambo said, He drew
first blood... If you could not PROVE ME WRONG, you could have kept
your mouth shut. You jumped in head first. And you have YET to prove
me wrong. Then to throw off the subject, you resort to telling the
world who you believe I am... That's what kids do as a last resort.
Now take your ball and run home. First, COULD YOU PLEASE PROVE ME
WRONG? You have open doors and windows (if you know what I mean...)

*PLONK*


On Wed, Dec 29, 2010 at 6:29 PM, Daniel P. Brown
daniel.br...@parasane.net  wrote:

On Wed, Dec 29, 2010 at 18:20, Omega -19111911...@gmail.com  wrote:

AHHH... Searching by by an email is REALLY what you call hacking? Oh
wait, you said that with all your knowledge in forensics you can find
people all over the world. Thank God for Go0GlE.


Please don't top-post.

Never said I was hacking.  And yes, I did see that infinite
redirect-loop you call a website (well, multiple, since they all
direct there).  And again, yes, I used Google (among other things).
However, for the rest of your statement (which you didn't even quote
properly), you're confusing two different jobs.

Anyway, you were the one who claimed I said your email was a lie.
Go back a few messages and you'll see I never even insinuated that at
all.  I meant your attempt to show your conspiracy-theory-driven
opinion as fact was silly.  The rest of it may well have been valid,
but - my apologies - I just honestly couldn't bear to keep reading it.

If you're otherwise unconvinced that I had no intent on any kind
of arguments or personal attacks, or if you'd like to continue with
your agenda, please shoot me an email off-list, where it belongs.
Even worse than anything else so far would be the two of us clogging
up everyone else's inbox.

--
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Fw: Dbase database - reg

2010-10-22 Thread Alexis

sounds like you have not compiled php with the --enable-dbase option.

check the output of
?php
phpinfo();
?
and see if there is any mention of dbase..if not, then that is probably 
your problem.


Alexis

On 22/10/10 02:51, kumar wrote:


22.10.2010

Dear sir

Please  help me the following code  and how to rectify the same .


?php
$filename='mas1.dbf';
$db = dbase_open($filename, 0);
?

Fatal error: Call to undefined function: dbase_open()

please  help me sir,

regards

Kumar . L
SLST / ARNI / Tamilnadu / India



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Alexis
Ok, I agree with most of those points, but why should I, or anyone, have 
to trim down someone else's 'signature', and I'm talking about these 
silly ones which are 10 or 20 lines long stating 'If you have received 
this email in error.blah, blah, blah'..surely, the banning of that, 
along with HTML, should take priority.


Besides, as I have done here, I have deleted the entire earlier message, 
 so posting above or below is irrelevant.


Also, every other list I am on, I post at the top, as it is much easier 
to read replies when they appear at the very top, opposed to having to 
scroll down though the inevitable footers, or worse still, there is 
trying to see where comments have been inserted in the middle of 
texttalk about a nightmare.


If I need to quote an earlier reply, I simply copy that into my response.


I have been a PHP developer for over 10 years now, and I have been on 
and off this list for a lot of that time, and this is the very first 
time I have even heard of the term 'top-posting'.


At the end of the day, how an individual wants to reply to an email is 
down to them, and trying to force them to do otherwise is nothing more 
than Orwellian! No matter how good the intent is.


Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Questions from a Newbie

2010-10-17 Thread Alexis
Ethan,you have the end of line semi colons enclosed in double 
quotes..move them to the true end of line.


On 17/10/10 04:45, Christian Heinrich wrote:

Am Sonntag, den 17.10.2010, 01:00 -0400 schrieb Ethan Rosenberg:

Dear List -

Here are some questions, which I am sure are trivial, but I am a
newbie, and cannot find the answers online

I cannot get the following to work.  In my Firefox [Iceweasel]
browser, I enter the following URL: [w/ the http]

   localhost/CreateNew.php All I get is a blank browser screen.

The code  contained in the file CreateNew.php is:

/*
   *  Create Database test22
   */
   htmlbody
?php
$cxn = mysqli_connect($host,$user,$password);
echoCreate database test22;
echoCreate table Names2
(
  RecordNum Int(11) Primary Key Not null default=1 auto_increment,
  FirstName varchar(10),
  LastName varchar(10),
  Height  decimal(4,1),
  Weight0 decimal(4,1),
  BMI decimal(3,1)
  Date0 date
);

echo   Create table Visit2
(
  Indx Int(7) Primary Key Not null auto_increment,
  Weight decimal(4,1) not null,
  StudyDate date not null,
  RecordNum Int(11)
);

  $sql= SHOW DATABASES;
?
/body/html

If I search for test22 or Visit2, nothing is found.

I would also like to be able to add data to a table, using PHP, which
I can do in MySQL as:
load data infile '/home/ethan/Databases/tester21.dat.' replace into
table Names fields escaped by '\\' terminated by '\t'  lines
terminated by '\n' ;

Thanks in advance.

Ethan
===
Using Debian(sid)






Hi,

maybe you also want to take a look at PDO - http://php.net/pdo

Regards
Christian




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Text messaging from the web

2010-10-14 Thread Alexis

iT DEPENDS on which country you are in.

In Canada you can send a text message to any mobile phone simply by 
sending an email to the phone number followed by the service provider's 
details...eg 1234567...@telus.net

Details for the exact addresses each provider use, can be found on the net.

In England there were free providers a few years ago, but I believe now 
you have to pay for the service.


Alexis

On 14/10/10 09:45, Paul M Foster wrote:

Folks:

Being fairly geezerly, I know almost nothing about this, so be gentle.

Assuming someone entered information in a form on a website. Normally,
you would email the responses to someone. But what if you wanted to
send this information to a smartphone via text messaging?

Is this possible, given normal programming tools (PHP/Javascript), or
would you have to go through some commercial web to text messaging
gateway? Does anyone know if this could be done, and how?

Paul



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Scripts running twice

2010-10-12 Thread Alexis
If you mean how am I triggering the script, then I am simply opening it 
up in my web browser...


On 12/10/10 04:21, Richard Quadling wrote:

On 11 October 2010 21:37, Alexisphplis...@antonakis.co.uk  wrote:

Thanks for perservingnope just the two entries per script..one start and
one stopalso checked the multi tab and that is set to just the once as
well.
One thing I forgot to say before is that even if I run the scripts manually,
then they still run the twice.sorry about missing that bit out...

On 11/10/10 14:27, Richard Quadling wrote:


On 11 October 2010 21:20, Alexisphplis...@antonakis.co.ukwrote:


Thanks for the quick response...checked and no duplicates Richard

On 11/10/10 14:14, Richard Quadling wrote:


On 11 October 2010 21:10, Alexisphplis...@antonakis.co.uk  wrote:


Hi,

A very vague question here I am afraidI have quite a number of php
scripts running on a WinXp box using the built in Scheduler.

Everything worked fine for years until one day an update was
done...cannot
remember if it was on PHP, Apache, Mysql or the firefox browser, but
now
most but not all, of the scripts run twice!

I was going to say any help would be appreciated, but due to the nature
of
my vagueness as to what was updated, that question becomes a little
moot.Or
does it?

Is there any way of finding out what exactly is triggering the scripts
to
run, specifically the second trigger.

I am not even sure if the script finishes running and then restarts, or
whether two instances of it are started at the same time.

Cheers
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Take a look in C:\windows\tasks.

Do you have a load of Copy of  versions?

If you see multiple versions, just delete them.

You may need to do this via a command prompt to see the copies.



OK. When they run, are they running at the same time? If you check the
scheduled task log file ... C:\WINDOWS\SchedLgu.TXT

Take a look through the task setup. See if it has been set to run
twice. On the Schedule tab, there is an option at the bottom - Show
multiple schedules.

If this option is set, then the top of the page has a drop down/list
showing the scheduled versions. Are there more than 1? Is the checkbox
checked?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Can you cut and paste the command you are using for the task?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Scripts running twice

2010-10-11 Thread Alexis

Thanks for the quick response...checked and no duplicates Richard

On 11/10/10 14:14, Richard Quadling wrote:

On 11 October 2010 21:10, Alexisphplis...@antonakis.co.uk  wrote:

Hi,

A very vague question here I am afraidI have quite a number of php
scripts running on a WinXp box using the built in Scheduler.

Everything worked fine for years until one day an update was done...cannot
remember if it was on PHP, Apache, Mysql or the firefox browser, but now
most but not all, of the scripts run twice!

I was going to say any help would be appreciated, but due to the nature of
my vagueness as to what was updated, that question becomes a little moot.Or
does it?

Is there any way of finding out what exactly is triggering the scripts to
run, specifically the second trigger.

I am not even sure if the script finishes running and then restarts, or
whether two instances of it are started at the same time.

Cheers
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Take a look in C:\windows\tasks.

Do you have a load of Copy of  versions?

If you see multiple versions, just delete them.

You may need to do this via a command prompt to see the copies.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Scripts running twice

2010-10-11 Thread Alexis
Thanks for perservingnope just the two entries per script..one start 
and one stopalso checked the multi tab and that is set to just the 
once as well.
One thing I forgot to say before is that even if I run the scripts 
manually, then they still run the twice.sorry about missing that bit 
out...


On 11/10/10 14:27, Richard Quadling wrote:

On 11 October 2010 21:20, Alexisphplis...@antonakis.co.uk  wrote:

Thanks for the quick response...checked and no duplicates Richard

On 11/10/10 14:14, Richard Quadling wrote:


On 11 October 2010 21:10, Alexisphplis...@antonakis.co.ukwrote:


Hi,

A very vague question here I am afraidI have quite a number of php
scripts running on a WinXp box using the built in Scheduler.

Everything worked fine for years until one day an update was
done...cannot
remember if it was on PHP, Apache, Mysql or the firefox browser, but now
most but not all, of the scripts run twice!

I was going to say any help would be appreciated, but due to the nature
of
my vagueness as to what was updated, that question becomes a little
moot.Or
does it?

Is there any way of finding out what exactly is triggering the scripts to
run, specifically the second trigger.

I am not even sure if the script finishes running and then restarts, or
whether two instances of it are started at the same time.

Cheers
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Take a look in C:\windows\tasks.

Do you have a load of Copy of  versions?

If you see multiple versions, just delete them.

You may need to do this via a command prompt to see the copies.



OK. When they run, are they running at the same time? If you check the
scheduled task log file ... C:\WINDOWS\SchedLgu.TXT

Take a look through the task setup. See if it has been set to run
twice. On the Schedule tab, there is an option at the bottom - Show
multiple schedules.

If this option is set, then the top of the page has a drop down/list
showing the scheduled versions. Are there more than 1? Is the checkbox
checked?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Image question for runways

2010-09-14 Thread Alexis

Hi,

I am trying to create an on the fly image of runway layouts but am 
hitting a brick wall.


I have both the starting and ending coordinates of each runway, it's 
length, as well as it's angle of direction (heading).


I can draw one runway without any problem, but where I am falling short 
is how to 'scale', if that is the right word, the other runway(s) to 
display properly in a 500x500px image



function imagepolarline($image,$x1,$y1,$length,$angle,$color)
{
$length=($length/500)*20;
$x2 = $x1 + cos( deg2rad($angle-90)) * $length;
$y2 = $y1 + sin( deg2rad($angle-90)) * $length;
imageline($image, $x1,$y1,$x2,$y2, $color); 
}

//'base' coords
$x1=200;$y1=200;

$scale=1;

//if first runway
if ($d==0) {$xbase=abs($lon1);$ybase=abs($lat1);}
//for all others
else
{
$x1=$x1+(($xbase-(abs($lon1)))*$scale);
$y1=$y1+(($ybase-(abs($lat1)))*$scale);
}


Here is some test data if that would help:
length,lat_start,lon_start,heading,lat_stop,lon_stop
6869,38.8424,-77.0368,355.5000,38.8612,-77.0387
4911,38.8423,-77.0408,26.,38.8544,-77.0333
5204,38.8617,-77.0438,142.7000,38.8503,-77.0327

Any suggestions would be most appreciated.

Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php 5 and mysql failure

2008-04-30 Thread Yehudi Alexis Garrett
I'm using a php script which performs three xml queries to other three 
servers to retrieve a set of ids and after I do a query to mysql of the 
kind

SELECT * FROM table WHERE id IN ('set of ids');
Although I'm sure the connection to the database is ok, I sometimes get 
an error of this kind:
*Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL 
result resource in ...

This does not happen every time i run the script, only sometimes.
If I echo the query, copy and paste in phpmyadmin, or if I perform the 
same query in a script that does only the query without the rest it works!
After troubleshooting this issue I noticed that it usually failed when I 
had a big set of ids (positive response from more than one server). This 
means that the script used a bigger amount of memory and probably more 
resources, but I did not get an out of memory error, I got the one 
described bfore.

My question is, is there any kind of limit somewhere in php5 or in mysql?
Thanks for help,

YEHUDI GARRETT

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Cannot get php_http.dll to work

2008-02-21 Thread Alexis

Hi,

I have tried umpteen times to get this to work by PHP still insists that 
it cannot find the 'HttpRequest' Class.


Using PHP 5.2.3
Downloaded latest version of php_http.dll, for PHP 5.2.x from the PECL 
website

Installed it in the D:\PHP\ext directory
Added 'extension=php_http.dll' to the php.ini file
made sure the extension_dir is set to 'D:\PHP'
Restarted Apache..even restarted the entire computer

And with all of this it's still not recognising this Class.

I've searched all over the net but to no avail...pretty much every 
answer refers to adding the extension line to the .ini file.


Can anyone advise what else I may be able to do?

Thanks
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] MSSQL

2008-01-08 Thread Alexis

Hi,

I am pulling my hair out trying to set up PHP to connect to SQL Server.

The office server, running Server 2003, has SQL Server on it.

One of my computers is running XP with Apache 2.2 and  PHP 5.2.3.
Another one has Ubuntu Gusty Gibbon, Apache 2.2 and PHP 5.2.3

Ideally I would like to get the Linux box to connect to the main server, 
but I can't even get it to recognise the server, let alone create a 
MSSQL link, so I'll start off with the windows box.


I have read all the various comments in http://ca3.php.net/mssql and 
have tried all the relevant ones but still no joy.

It just will not connect.


I have tried the ADO approach but get the following error:

Fatal error: Uncaught exception 'com_exception' with message 
'bSource:/b Microsoft OLE DB Provider for SQL 
Serverbr/bDescription:/b [DBNETLIB][ConnectionOpen 
(Connect()).]SQL Server does not exist or access denied.' in 
D:\Apache2.2\htdocs\includes\mssqlinfo.inc:9 Stack trace: #0 
D:\Apache2.2\htdocs\includes\mssqlinfo.inc(9): 
com-Open('Provider=SQLOLE...') #1 D:\Apache2.2\htdocs\mssql.php(3): 
include('D:\Apache2.2\ht...') #2 {main} thrown in 
D:\Apache2.2\htdocs\includes\mssqlinfo.inc on line 9



Does anyone have a definite and easy to understand set of instructions 
as to how to get PHP to talk to SQL Server please?


Cheers
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sending to Blackberry PIN's

2007-11-15 Thread Alexis

Hi,

I was wondering, is there any way to send an email to a Blackberry PIN, 
using PHP?


Thanks
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Reading files from Win 2003 Server

2007-10-04 Thread Alexis

Hi,

I have a script located on an Ubuntu box and I am trying to read
files located on a Win 2003 Server.

I have 'mounted', if that's the right term to use, a connection from
Ubuntu to Server 2003 and can read the files fine via the desktop, etc.

If the Win Server name is say 'WinServer' and the shared directory I
want to read from on it is called say 'SharedDirectory' and the user
name is 'User', I notice the reference to that folder on the Ubuntu
desktop is as follows:

smb://[EMAIL PROTECTED]/SharedDirectory



But I am at a loss as to how I should refer to the path for this
connection within my PHP script. Any help would be most appreciated.

If it's any additional help, I would be using the connection to read
files only, and not add/edit/delete them.

Thanks
Alexis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Importing emails

2003-03-27 Thread Alexis Antonakis
Hi,

I am trying to set up a system whereby users can send data, in a
pre-determined format, to a specified email address. I would then like to
import the contents within each email into a database.

The trouble I'm having is not knowing really where to start. Could any kind
sole point me in the right direction. I've done a search of the site, but
nothing has come up.

Regards
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Reversing the Colour.

2002-10-09 Thread Alexis Antonakis

Hi,

I have a site whereby the user can select the colour of links for their
individual sections.

What I would like to do is to get the exact opposite colour of the one that
they choose and use that in the 'hover over' option of the a tag.

The value for the colour is stored in hex.

To add to this, the user can also choose the background colour. I have made
sure that they cannot have the same background colour as colour of the link,
but obviously if the background colour is the exact opposite of the link
colour, then when they hover over the link, it would 'disappear'. In this
case I would like to choose HALFWAY between the two sets of colours. I know
that this might not always produce the best colour combinations, but I'm
trying to get it so that the links always 'stand out'. I cannot let them
choose the colour of the 'Hover Over' option unfortunately.

Any suggestions as to how to achieve this, especially the calculations, or
for that matter improve upon it, would be most appreciated.

Regards
Alexis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Stripping specific tags

2002-09-18 Thread Alexis Antonakis

Hi,

I was wondering is there a way to strip ONLY the tags that you specify from
a page, rather than having to include all the tags you do want (using
strip_tags() )

Cheers
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Converting Text to Hyperlinks

2002-05-28 Thread Alexis Antonakis

Hi All,

I am designing a News board and wish to convert any text beginning with
'http://' into a hyperlink, when displayed on the page.
I have converted all the HTML tags (htmlspecialchars) before saving the
data.

I can do the initial bit fine (adding the a href=...) before the start of
the link, but I am having great difficulty in adding the closing tag.

The main problems I am having are:
i) If there is more than one link.
ii) If the User has entered the link with the correct HTML in the first
place, I just want to convert it back into HTML (Obviously they would need
to have entered the 'http://' part of it.
iii) If there is a line break at the end of the link, opposed to a space. I
am presuming that there are no spaces in the link for this one.


I have been going round in circles for quite a few hours now, but just don't
seem to be progressing, so any help anyone can offer will be very much
appreciated.

Regards
Alexis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Registering an Array in a Session

2002-05-07 Thread Alexis Antonakis

Hi,

I am trying to register an array in a session, but am having no luck.


What I have is a form with set fields on which is processed a certain number
of times.


Upon submitting the form each time, I run the following:

session_register(fieldtext[.$page.]);

where fieldtext is the name of a field on the form, and $page is the page
number, which increases by one each time the form is submitted.


All I get registered is the last value submitted on the form, all the
previous values are null.

Any advice would be most appreciated.

TIA
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PDF Load Problem

2002-03-29 Thread Alexis Antonakis

Hi,

One user to a site I have developed has complained that when they are trying
to view a PDF file on the site, that the server is closing the connection
with the browser window before the page has loaded.  The file is only 13
pages long and has a few very small images in it.

What I was wondering was whether anyone else has come across this sort of
problem, and if so, what advice would they be able to give to speed up the
loading/storage of PDF files.

Many Thanks
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Odd problem using sendmail - possibly to do with set_time_limit?

2002-03-06 Thread Alexis Birkill

Jon Abernathy wrote:

 After reviewing your code, I was wondering if there was a reason you aren't
 using PHP's built-in mail() function, rather that using popen() and a series
 of fputs(), which seems rather expensive, especially inside of a loop. Also,

Sounds like a much better idea, looking at the mail() function.  I'm 
more familiar with using sendmail etc., so I gravitated towards that - I 
should have examined my options more thoroughly.

 you only need to use set_time_limit() once, outside of your loop-- pass 0 as
 the parameter, which basically turns off the timeout.

Ahh, really.  That's interesting - I'd assumed that this wouldn't work 
as it would allow a badly-written script to get itself into some kind of 
infinite loop easier - but I'm sure you're right.

 Here's how I would code this:
 
 $counter = 0;
 set_time_limit(0);
 if ( $fp = fopen($list, 'r') ) {
 while ( $address = fgets($fp, 255) ) {
 mail( $address, $subject, header goes here\n$body\nfoot goes
 here\n, From: Sender [EMAIL PROTECTED]\n );
 $counter++;
 }
 fclose( $fp );
 print(Message successfully sent to $counter recipients from the
 $list);
 }

Much more concise - thanks.

 Hope this helps.

Indeed it does - thank you (again) very much!

A.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Odd problem using sendmail - possibly to do with set_time_limit?

2002-03-04 Thread Alexis Birkill

Hi,

I'm trying to track down an odd problem in a script I'm writing, the 
purpose of which is below:

The script takes data of a subject and a body for an e-mail from an HTML 
form, and sends this out to a list of recipients stored in a datafile 
parsed by the PHP.  The size of the e-mails can be quite large (~100kb, 
all text), and this can be required to be sent to ~400 users.

Currently, we have a problem in that when sending a mail of 
approximately 70kb text, it will not complete - after approximately 2 
minutes, it gives an Internal Server Error (not a php error) and fails. 
  In this time, it has sent out approximately 25 messages.  This speed 
wouldn't be too much of an issue, if it would send to all 400 people on 
the list!

The PHP can be found below - I'm already resetting the set_time_limit on 
each loop execution, so as I understand it the script should happily run 
for as long as necessary.  We do not have access to configure the PHP 
installation on the server (running 4.1.2)

Code follows - I hasten to add that this appears to work admirably on 
small lists.


   if($file = fopen($list, r))
   {
  // Initialise variable
  $counter = 0;

  // Repeat until end-of-file reached.
  while(!feof($file))
  {
 // Open link to sendmail program with write permissions - assign
 // reference to $mailout
$mailout = popen(/usr/sbin/sendmail -t -i,w);

// Set address variable to next line of datafile, up to a
 // maximum length of 255 characters.
// This assigns the $address variable the next address from the
 // data file on each loop of the
 // while statement.
$address = fgets($file, 255);

// Write out to sendmail the correct information.
fputs($mailout, To: $address \n);
fputs($mailout, From: Sender [EMAIL PROTECTED]\n);

// $subject and $body are passed from the html form page - these
 // are the names of the form elements.
fputs($mailout, Subject: $subject\n);

// Send top of body out
fputs($mailout, header goes here\n);

// Send out user-entered body
fputs($mailout, $body\n);

// Send bottom of body out - need escape characters if using
 // reserved characters (like )
fputs($mailout, foot goes here\n);

// Tidy up and close sendmail link - this needs to be done on
 // each loop, otherwise seperate e-mails
// not generated.
pclose($mailout);

// Reset PHP timeout.
set_time_limit(30);

// Increment counter of e-mail messages sent.
$counter = $counter + 1;

  }

  // Tidy up and close the datafile.
  fclose($file);

  // Print out confirmation of send
  print(Message successfully sent to $counter recipients from the 
$list);
   }

Any help gratefully appreciated,

A.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] using a text file for variables in a form?

2002-01-24 Thread Alexis N. Mueller

I have some variables stored in plain text in a text file. Unfortunately I
am not going to be able to use SQL to solve this one, since that server is
not running it. Anyway.

The text file looks like this (everything between the *):
*
SAVINGS=type1
FILTER=disabled
SPOOL=category1
*
I use a form to edit this text file. SAVINGS and SPOOL are 'select' form
items with multiple options. FILTER is a 'radio' form item with two options.

I was wondering if anyone knew how to make the text file pass the variables
into the form that i use to edit the text file... confusing?
hmm...
let's say i was editing the text file that i gave as an example, I would
like like the SAVINGS 'select' field in the form to have type1 selected. the
FILTER 'radio' field
in the form should be checked on disabled. And the SPOOL 'select' field
should read category1

Anyone have any ideas on how to do that?
Help would be appreciated,
Thank you

Alex



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] using a text file for variables in a form?

2002-01-24 Thread Alexis N. Mueller

Dan,

Thanks for replying so fast.. I tried it out right away.

The script part of it didn't seem to give me much grief, however the html
part of it seems to be having issues
with the combination of single quotes (') and double qouotes (), or maybe
it's the order, or a linebreak in the email... i don't know...

?
print 'INPUT TYPE=TEXT NAME=savings VALUE=' .
$data[SAVINGS] . ';
?


Also this solution provides a text box... I'm sure I can play around with
making it an 'option' within a 'select' item of a form... like:

?
print select size=1 name=SAVINGS
print option name=SAVINGS VALUE=foo;
?

please lemme know if i'm understanding this right...
thanks

-Alex

Daniel [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Alex-

 This is very basic PHP.

  I have some variables stored in plain text in a text file. Unfortunately
I
  am not going to be able to use SQL to solve this one, since that server
is
  not running it. Anyway.
 
  The text file looks like this (everything between the *):
  *
  SAVINGS=type1
  FILTER=disabled
  SPOOL=category1
  *
 
  I use a form to edit this text file. SAVINGS and SPOOL are 'select' form
  items with multiple options. FILTER is a 'radio' form item with two
options.
 
  I was wondering if anyone knew how to make the text file pass the
variables
  into the form that i use to edit the text file... confusing?

 First, you need to get the data from the file and make the items
 useful:

 ?
 $ary = file(myfile.file);

 foreach($ary as line) {
   # break up the line
   list($key,$value) = explode(=,$line);

   # Take off that pesky newline
   $value = substr($value,0,-1);

   $data[$key]=$value;
 }
 ?

 Now your values are accessible as $data[SAVINGS], etc.

 So... when building the HTML...

 ?
 print 'INPUT TYPE=TEXT NAME=savings VALUE=' .
 $data[SAVINGS] . ';
 ?



 Daniel J. Lashua




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Invalid Email Characters

2002-01-13 Thread Alexis Antonakis

Hi,

Could anybody confirm exactly which characters, if any, are NOT valid in an
email address.

Many Thanks
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Uploading Word Document problem

2001-12-20 Thread Alexis Antonakis

Hi All,

I have a site whereby you can upload a Resume in Word or Text format, but
for certain Word documents, the upload process just times out.  Has anyone
else come across this problem, and if so any suggestions?

Many Thanks
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Finding out document type for a stored file.

2001-10-28 Thread Alexis Antonakis

Hi all,

I am trying to find out what the mime type is for files that are stored on
my webserver, so I can convert the contents into a database.

Basically, if it is in 'text/richtext' format I want to run one routine, if
it's in 'application/msword' format another routine, and everything else
another.

I can retrieve this fine when a user uploads a file to the server, by using
the 'input type=file name=userfile' command ($userfile_type), but I am
stuck when retrieving the file from the server.

All I can think of is to 're-upload' the file, but there must be a more
efficient way.

Any help would be most appreciated.

Many thanks
Alexis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search in Progress

2001-09-22 Thread Alexis Antonakis

Hi,

I am developing a simple site, in PHP4, which has three frames on it.

The first gives you the search options and the second two, the results.

What I was wondering was, while the database is being searched, is it
possible to display some text in the 'results' frame stating that the search
is in progress?


I also have another site which I would like do this on, however this one,
rather than using frames, uses tables, and it is only when the entire set of
data for each table has been retrieved that the page is actually displayed.

Any suggestions would be most appreciated
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Search in Progress

2001-09-22 Thread Alexis Antonakis

Hi,

I am developing a simple site, in PHP4, which has three frames on it.

The first gives you the search options and the second two, the results.

What I was wondering was, while the database is being searched, is it
possible to display some text in the 'results' frame stating that the search
is in progress?


I also have another site which I would like do this on, however this one,
rather than using frames, uses tables, and it is only when the entire set of
data for each table has been retrieved that the page is actually displayed.

Any suggestions would be most appreciated
Alexis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] 'Embedding' a PDF file

2001-04-17 Thread Alexis Antonakis

Hi,

I've got a couple of questions relating to PDF files.

Firstly, to display a PDF file in your browser, I presume that you must have
a 'plug-in' installed?

Secondly, is it possible to display a PDF file within a table, as I have
only ever seen them fill up the entire browser?

TIA
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Apache configuration

2001-04-11 Thread Alexis Antonakis

Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Apache configuration

2001-04-11 Thread Alexis Antonakis

Problem solved, it turned out I had two php.ini files, one for PHP3 on my c
drive and one for PHP4 on my d drive.

Many thanks to all who replied

Alexis

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
p.net]On Behalf Of Jon Haworth
Sent: 11 April 2001 14:14
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] Apache configuration



/tmp is the directory used on Unix systems to store session info. On a
windows box you will need to change it to something like c:\temp or
c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf.

HTH
Jon


-Original Message-
From: Alexis Antonakis [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 12:56
To: Php-General@Lists. Php. Net
Subject: [PHP] Apache configuration


Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis


**
'The information included in this Email is of a confidential nature and is
intended only for the addressee. If you are not the intended addressee,
any disclosure, copying or distribution by you is prohibited and may be
unlawful. Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Commercial sites that use PHP

2001-04-10 Thread Alexis Antonakis

Yahoo certainly uses PHP for at least some of it's workings.  On a rare
occasion that it was down, I saw a PHP error message being displayed.

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
p.net]On Behalf Of Brent Langston
Sent: 10 April 2001 17:31
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Commercial sites that use PHP



Does anyone know what Yahoo uses?  It's obviously some form of scripting...
especially at http://my.yahoo.com.  I've always been curious about what they
are using as their parser... it appears to spit out pure HTML, so it acts
like PHP...

Any thoughts?

 -Original Message-
From:   Michael Stearne [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, April 10, 2001 9:27 AM
To: Phillip Bow
Cc: [EMAIL PROTECTED]
Subject:Re: [PHP] Commercial sites that use PHP

Along with VaLinux.com and all new VA sites.  Penguin Computing dies too.

Michael

On Tuesday, April 10, 2001, at 12:20 PM, Phillip Bow wrote:

 Well since nobody else has chimed in(barring the fact it may be in one
 of
 the already recommended lists) sourceforge is made with php, and is a
 pretty
 noteworthy site.
 --
 phill

 "Phil Labonte" [EMAIL PROTECTED] wrote in message
 1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE...
 Can anyone send me a list of large commercial web sites that use PHP?

 I am trying to move to PHP here at work but I need some examples to
 impress
 the boss!!!

 Thanks

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: php-list-
 [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How do I submit a POST form?

2001-02-25 Thread Alexis Michel Golzman

Hi,

I've submitted many times a GET form like this:

header("Location:
http://examplesite.com/myscript.php3?key=valuekey2=value2keyn=valuen");

but now I need to submit a POST form.

How is this done?

I found this Perl code on the web:
--
use strict;
use LWP::UserAgent; # libwww-perl

my $ua = new LWP::UserAgent or die "new UA: $!";
$ua-agent("testclient/1.0");

my $url = 'http://localhost/cgi-bin/test.pl';
my $request = new HTTP::Request('POST', $url) or
  die "new HTTP::Request POST '$url': $!";
$request-content_type('application/x-www-form-urlencoded');

$request-content('field1=value1field2=value2field3=value3');

#$request-content('field1=value1');# optional method
#$request-add_content('field2=value2');
#$request-add_content('field3=value3');

my $response = $ua-request($request);
print $response-content;
--

But I want to know if there is a way of doing it in PHP...

Thanks in advance for your help! :-)

Kind regards,
Alexis Golzman
mailto:[EMAIL PROTECTED]
http://trafficbar.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]