RE: [PHP] Re: Need a suggestion on developing a php-related system

2003-01-07 Thread Larry Brown
>From the remark about the arrival and departure time scenario, it sounds like you want to show whether the updates occurred and when they began/ended. If this is accurate, you should find out whether the scripts used to populate those databases record that information for the database it is updat

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: No you can't.. the issue with this is that you need to have error reporting turned on.. so you will need to have more error collecting or removing. [..] This isn't the best for a production env but this is the best I can see considering you don't want to rewrite!! Ou

RE: [PHP] PHP vs. ASP

2003-01-07 Thread Sean Malloy
oops function isset(byval checkVar) dim ret if (len(checkVar) > 0) then ret = true else ret = false end if isset = ret end function meh -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 6:42 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] PHP vs. ASP

2003-01-07 Thread Sean Malloy
I'm not really sure what you mean in terms of ASP needing two or more pages? <% dim pageAction pageAction = Request("action") select case pageAction case "postit": InsertFormData() case else : ShowForm() end select sub InsertFormData() end sub sub ShowForm() Response.Write("TheForm") end

RE: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
No you can't.. the issue with this is that you need to have error reporting turned on.. so you will need to have more error collecting or removing. The error is something like: "Fatal error: Maximum execution.." so we are checking for just this in the regex. This isn't the best for a producti

RE: [PHP] PHP vs. ASP

2003-01-07 Thread See kok Boon
There is one minor difference that caused a major change in structure of the two scripting language. PHP offers the isset() function but ASP don't. in a way there are the pros and cons. For PHP, you can create the whole site in one page, even though that would not be advisable. Because of isset()

Re: [PHP] unlink ($files);

2003-01-07 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, You can't delete the files all at onceyou have to delete them one by one or use this function that will remove full directories. - - function force_rmdirs($dir) { $dh = opendir($dir); while(false !== ($file = readdir($dh))) {

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: There is one last option ... register an output buffer as I suggested before suggested but this time do the reverse and you don't have to rewrite your scripts: Ok I think I understand what you are proposing. I just have one question about your example code. Where does

RE: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
There is one last option ... register an output buffer as I suggested before suggested but this time do the reverse and you don't have to rewrite your scripts: Please be aware that this will add _some_ load but will solve your issues. You can then add in things like error checking etc etc T

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread James Brennan
My appologies for the lack of explicit information. Thank you for taking the time to write a reply. That is exactly what I needed to know. Thanks again, James From: Chris Wesley <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [PHP] help - WHILE in FOREACH Date: Tue, 7 Jan 2003 18:49:53 -0

[PHP] Re: ~E_NOTICE, why not ?

2003-01-07 Thread Jean-Christian Imbeault
Pupeno wrote: $oer = error_reporting(E_ALL & ~E_NOTICE); $tpl->display("index.html"); error_reporting($oer); but it still reports notices, any idea ? Should be error_reporting (E_ALL ^ E_NOTICE); See: http://www.php.net/manual/en/function.error-reporting.php Jc -- PHP General Mailing List

[PHP] Re: Need a suggestion on developing a php-related system

2003-01-07 Thread Manuel Lemos
Hello, On 01/08/2003 03:40 AM, Kelvin Poon wrote: HI, I am new to PHP and I am just wondering if anyone could give me some help. I am currently working for infomart.ca, it is basically a company that sells articles (news/business). MY employer require me to develop a system using Perl and PH

RE: [PHP] Need a suggestion on developing a php-related system

2003-01-07 Thread Peter Houchin
keep to the list pls kelvin :) but to answer ur q.. php nuke is a new portal system... check out http://phpnuke.org for info ( and to dl it ) > -Original Message- > From: Kelvin Poon [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 4:50 PM > To: [EMAIL PROTECTED] > Subject:

RE: [PHP] Need a suggestion on developing a php-related system

2003-01-07 Thread Peter Houchin
check out php nuke or post nuke > -Original Message- > From: Kelvin Poon [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Need a suggestion on developing a php-related system > > > > HI, I am new to PHP and I am just wondering if

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: Issue... as I said before the register shutdown won't work because: - output from the shutdown is not visible nor do you have access to some variables You are right. From the manual: http://www.php.net/manual/en/function.register-shutdown-function.php " The registere

[PHP] Need a suggestion on developing a php-related system

2003-01-07 Thread Kelvin Poon
HI, I am new to PHP and I am just wondering if anyone could give me some help. I am currently working for infomart.ca, it is basically a company that sells articles (news/business). MY employer require me to develop a system using Perl and PHP, and the assignment is as follow: To develop a s

[PHP] scheduling / timetables

2003-01-07 Thread M.E. Suliman
Hi I need to create a scheduling application for a school that would help them generate timetables and schedules. I would appreciate your ideas or any code that i could look at that could give a start. Thanks Mohamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Greg Beaver
You can try that code. It looks like connection_timeout() is deprecated, however. You should probably use connection_aborted() and connection_status() http://www.php.net/manual/en/function.connection-status.php http://www.php.net/manual/en/function.connection-aborted.php Read the user notes in

RE: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
Issue... as I said before the register shutdown won't work because: - output from the shutdown is not visible nor do you have access to some variables Result: no message as you wanted to show to the client. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -O

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Jean-Christian Imbeault
Greg Beaver wrote: http://www.php.net/manual/en/features.connection-handling.php Nice! So if I understand correctly I need to: 1- register a shutdown function 2- have this function check if it was called b/c of a conection_timeout() 3- And if so have the function print out my timeout error me

[PHP] unlink ($files);

2003-01-07 Thread rw
Ok, Jason, here's another one! I think I've read how to delete a file. I need to delete 25 files, then do a rmdir(blah); Line 16: $directory = "path/*.*"; Warning: Unlink failed (No such file or directory) in /mnt/ls6/17/169//htdocs/2003/_admin/del_listing_action.php on line 16 Warning

Re: [PHP] Re: htmlspecialchars() or htmlentities withoutdestroying tags?

2003-01-07 Thread Justin French
Thanks, I'll give it a whrrrl :) Justin on 08/01/03 4:05 PM, Greg Beaver ([EMAIL PROTECTED]) wrote: > Hi Justin, > > You have to specify the list of tags you want preserved in an array, but > this function from phpDocumentor will do it: > > /** > * smart htmlentities, doesn't entity the al

Re: [PHP] mkdir(blah,0777)

2003-01-07 Thread rw
Thank you, Jason! Quoting Jason Wong <[EMAIL PROTECTED]>: ### On Wednesday 08 January 2003 12:05, [EMAIL PROTECTED] wrote: ### > I have an interesting situation! ### > ### > I get a dir to be made - no problem, but I want it to have the ### permissions ### > 0777. When I look in the directory tha

RE: [PHP] Re: htmlspecialchars() or htmlentities without destroying tags?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
Is that going to take care of Nested Tags?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Greg Beaver [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 3:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: htmlspecial

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Greg Beaver
Hi Jean-Christian, see: http://www.php.net/manual/en/features.connection-handling.php Take care, Greg -- phpDocumentor http://www.phpdoc.org "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Timothy Hitchens ) wrote: > > > > Set up out

[PHP] Re: htmlspecialchars() or htmlentities without destroying tags?

2003-01-07 Thread Greg Beaver
Hi Justin, You have to specify the list of tags you want preserved in an array, but this function from phpDocumentor will do it: /** * smart htmlentities, doesn't entity the allowed tags list * Since version 1.1, this function uses htmlspecialchars instead of htmlentities, for international sup

RE: [PHP] Re: Double entry into MySQL..

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
When they first click on the file their browser will make a request for type, size etc then when it display's the dialog box on the screen of the client it will make another request to start the download. I get around this by putting the session id into the database and if it is double requested w

Re: [PHP] mkdir(blah,0777)

2003-01-07 Thread Jason Wong
On Wednesday 08 January 2003 12:05, [EMAIL PROTECTED] wrote: > I have an interesting situation! > > I get a dir to be made - no problem, but I want it to have the permissions > 0777. When I look in the directory that was just created (blah drwxr-x---) > are the permissions. Look at umask(). --

[PHP] mkdir(blah,0777)

2003-01-07 Thread rw
I have an interesting situation! I get a dir to be made - no problem, but I want it to have the permissions 0777. When I look in the directory that was just created (blah drwxr-x---) are the permissions. This is not acceptable! Lucy, you got some splainin to do! Thanks for your help RW --

[PHP] Re: Double entry into MySQL..

2003-01-07 Thread Altug Sahin
Another strange behaviour... When I send the name of the file to be downloaded to this script, it works (still makes a double entry into MySQL though) with GET method but it doesn't work if the file's name is sent with the POST method. Why? I am pulling my hair out here!!! Please help... Thanks

RE: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
You want a call back method for timeout none avail. - auto append won't work - register shutdown won't work I don't know of another solution right now. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Jean-Christian Imbeault [mai

Re: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: Set up output buffering on your page then if the page times out the buffer should be sent to the browser and that is loaded with your message. Ok. Is there another solution? The reason I ask is that in order to use your solution I would need to redesign my pages (qui

RE: [PHP] How to detect a PHP script time-out?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
This is a fairly simple one if both the server and browser obey the specs: Set up output buffering on your page then if the page times out the buffer should be sent to the browser and that is loaded with your message. PSEUDO CODE: start output buffering put into buffer the required messa

[PHP] How to detect a PHP script time-out?

2003-01-07 Thread Jean-Christian Imbeault
How can I detect if my PHP script is about to time-out? I would like to be able to detect a time-out and display a page with an appropriate error message "i.e. the server is busy now, please try again later". Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] anyway to do a 'whos online' from session variable?

2003-01-07 Thread Timothy Hitchens \(HiTCHO\)
Arr the garbage collection is based on a probability (session.gc_probability) and therefore it will clean up if you get enough hits to the server. Check the documentation for config of sessions. I use db for sessions with a check to ensure db is available. (you can then cleanup whatever you want)

RE: [PHP] anyway to do a 'whos online' from session variable?

2003-01-07 Thread ed
On Wed, 8 Jan 2003, Timothy Hitchens (HiTCHO) wrote: > Hmm... yes you could create an array of the files then check the last > mod stamp using stat (remember to reset stat). > > Sessions are also cleaned up via the garbage collection system > controlled via php.ini How do you force garbage co

[PHP] htmlspecialchars() or htmlentities without destroying tags?

2003-01-07 Thread Justin French
Hi all, Has anyone got a function or regexp floating around that will convert behave like htmlspecialchars() or htmlentities() (eg converting & to &, " to "e;, etc etc) BUT NOT DESTROY HTML TAGS? Eg: "hello" said Fred & Judy should become: "hello" said Fred & Judy NOT: "hello" said Re: [PHP] help - WHILE in FOREACH
On Tue, 7 Jan 2003, James Brennan wrote: > The while statement is only executing correctly for the first run through > the foreach loop. Why? It's /real/ hard to tell when you don't give any context or otherwise explain what it is you want to achieve. Since the code in fact executes correctly, w

Re: [PHP] help - WHILE in FOREACH

The second set of quotes is actualy two single quotes with nothing in-between. .loop From: "Rick Emery" <[EMAIL PROTECTED]> Reply-To: "Rick Emery" <[EMAIL PROTECTED]> To: "James Brennan" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: Re: [PHP] help - WHILE in FOREACH Date: Tue, 7 Jan 2003 20:1

Re: [PHP] help - WHILE in FOREACH

Is this your exact code? I ask, because the following should generate a parse error: echo ""; You have 3 double-quotes ("). - Original Message - From: "James Brennan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 7:29 PM Subject: [PHP] help - WHILE in FOREA

Re: [PHP] HTTP_WEFERER

> - Original Message - > From: "bill" <[EMAIL PROTECTED]> > Sent: Tuesday, January 07, 2003 8:40 PM > Subject: [PHP] HTTP_WEFERER > A script started acting wonky with no changes to it. Doing a bit of debug at > the time, I uncovered an odd variable called > > HTTP_WEFERER > > Any ideas?

RE: [PHP] PHP Editors

That is the advantage of Zend Studio is that it is Java and will run on Win, Mac OSX and Linux. That is one of the reasons we use Zend Studio is that we can get our designers on OSX, geeks on linux/unix and executive types mostly Windows all using the same application for code writing, maintenance

Re: [PHP] Forwarding POST info from a PHP script

Hi, Wednesday, January 8, 2003, 12:29:50 AM, you wrote: DB> I want to be able to retrieve POST variable in one PHP script (which is DB> straight-forward) and then send these from the script to another one DB> returning the processed input. DB> I have written a script that will parse a frames-base

Re: [PHP] help - WHILE in FOREACH

> From: "James Brennan" <[EMAIL PROTECTED]> > Sent: Tuesday, January 07, 2003 8:29 PM > Subject: [PHP] help - WHILE in FOREACH > The while statement is only executing correctly for the first run through > the foreach loop. Why? > > Thanks, > loop > > foreach($desc as $key=>$value) { > printf("Sho

Re: [PHP] PHP Editors

Do you know any good equivalent with similar features for Linux? Thanks, Pierre-Luc Soucy > PHPEdit i use it personally www.phpedit.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] HTTP_WEFERER

Elmer Fudd been coding your PHP for you? I dount it ever worked ;) -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 12:41 PM To: [EMAIL PROTECTED] Subject: [PHP] HTTP_WEFERER A script started acting wonky with no changes to it. Doing a bit of deb

Fw: [PHP] Img src

the problem is the "" before the width word it should be "\" - Original Message - From: "Ezequiel Sapoznik" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, January 07, 2003 7:30 PM Subject: [PHP] Img src I am having a parse error in the following sentence: print ""; Thanks! Ezequiel -

[PHP] HTTP_WEFERER

A script started acting wonky with no changes to it. Doing a bit of debug at the time, I uncovered an odd variable called HTTP_WEFERER What is that? I check of the php.net website yielded no results. I'm guessing it is a variable set on the server. My first thought was a mangled HTTP_REFERER

[PHP] Img src

I am having a parse error in the following sentence: print ""; Thanks! Ezequiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help - WHILE in FOREACH

The while statement is only executing correctly for the first run through the foreach loop. Why? Thanks, loop foreach($desc as $key=>$value) { printf("Show %s Description ", $key, $key); echo ""; while($row = mysql_fetch_row($show_names)) { printf("%s", $row[0], $row[1]);

[PHP] Sessions error

I am working with sessions, and following an example in a book and am getting an error that I am not sure of. I have an html doc that has the fields for username and password and the information entered goes to this script. session_start(); // set variables needed $username = $_POST['username

[PHP] Upgrade help!

Hi, I am trying to upgrade to php4.3.0, everything works, but when I try to use any gd image functions I get the following error: libpng warning: Application was compiled with png.h from libpng-1.2.1 libpng warning: Application is running with png.c from libpng-1.0.12 gd-png: fatal libpng error

Re: [PHP] anyway to do a 'whos online' from session variable?

thanks... I'm almost done with this project, and I think I will implement this in the next phase. doesn't sound terribly difficult, but I think I will hold off. definitely something I will be doing in the future, and probably not too distance future. "Timothy Hitchens )" <[EMAIL PROTECTED]> wr

RE: [PHP] anyway to do a 'whos online' from session variable?

Hmm... yes you could create an array of the files then check the last mod stamp using stat (remember to reset stat). Sessions are also cleaned up via the garbage collection system controlled via php.ini HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] > -Original Message---

Re: [PHP] anyway to do a 'whos online' from session variable?

yea, that will work. however, I was thinking of something a little more dramatic like parsing the /tmp directly, associating ID's, and killing dead sessions etc. "Timothy Hitchens )" <[EMAIL PROTECTED]> wrote in message 004701c2b6a2$2dfeb6a0$0500a8c0@bambino">news:004701c2b6a2$2dfeb6a0$0500a8c0@b

RE: [PHP] restrictions

This is now getting to off list issues I would suggest!! HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] > -Original Message- > From: Bruce Levick [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 9:55 AM > To: Timothy Hitchens (HiTCHO) > Cc: [EMAIL PROTECTED

RE: [PHP] restrictions

It is using a microsoft exchange server. -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:53 AM To: Bruce Levick Subject: RE: [PHP] restrictions In order to send mail on your mail client you must be able to connect to port 25 on what is

RE: [PHP] restrictions

Yes I am and its very strange. I can't even ftp to my own website to test it from there. -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:48 AM To: Bruce Levick Cc: [EMAIL PROTECTED] Subject: RE: [PHP] restrictions Ar

Re: [PHP] Zend IDE vs. PhpEd

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 07 January 2003 18:48, Jason Wong wrote: > On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote: > > Isn't it a little bit too much of paranoia for autocompletion? In > > programming schools they make you writing the programs on paper so

RE: [PHP] restrictions

Are you surfing and emailing from this box right now?? (strange if you are) HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] > -Original Message- > From: Bruce Levick [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 9:47 AM > To: Timothy Hitchens (HiTCHO) > Cc

Re: [PHP] Zend IDE vs. PhpEd

On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote: > Isn't it a little bit too much of paranoia for autocompletion? In > programming schools they make you writing the programs on paper so you > understand it better :) > I, personally, only care about the code highlighting. Autocompleting >

RE: [PHP] restrictions

Sorry, I tried this as well and it failed to connect on port 25. -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:39 AM To: Bruce Levick Cc: [EMAIL PROTECTED] Subject: RE: [PHP] restrictions You need to follow my instructi

RE: [PHP] restrictions

Connection failed on port 25 as well. -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:41 AM To: [EMAIL PROTECTED]; Bruce Levick Subject: RE: [PHP] restrictions SMTP = port 25 telnet 25 should do the trick -Original Message---

RE: [PHP] restrictions

It definitely says port 23. And I can't connect to anything at all. I even tried my own my local machine IP address and that doesn't work either. Weird. -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:29 AM To: Bruce Levick Cc: Timothy

RE: [PHP] restrictions

You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ?? HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] > -Original Message- > From: Bruce Levick [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 8 January 2003 9:35 AM > To: Timothy Hitch

RE: [PHP] restrictions

SMTP = port 25 telnet 25 should do the trick -Original Message- From: Bruce Levick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 10:35 AM To: Timothy Hitchens (HiTCHO) Cc: [EMAIL PROTECTED] Subject: RE: [PHP] restrictions Thanks, Tried this and I get. "Cannot opeen conn

RE: [PHP] restrictions

It should say "port 25". If it's just a typo in your message, then it could either be the restrictions or a general network problem--I know this sounds stupid, but can you connect *at all* to anything else--ie. a website? Cheers, Marco -- php|architect - The Monthly Magazine fo

RE: [PHP] Random array element

// seed code list($usec, $sec) = explode(' ', microtime()); $microtime = ((float)$usec + (float)$sec); srand((double) $microtime * 100); //~ seed code $randNumber = array(); $weekday = array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ); for ($p = 0; $p < 10; $p++)

[PHP] ~E_NOTICE, why not ?

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using error reporting E_ALL that helps me debugging, but Smarty generates some E_NOTICEs because of not defined variables, so, I want to disable E_NOTICE before displaying. I'm doing this: $oer = error_reporting(E_ALL & ~E_NOTICE); $tpl->display("

[PHP] Upgrading to 4.3.0

Hi, According to the docs, 4.3.0 comes with gd bundled in. Do I still have to use libpng and jpg and free type seperately? Do I still need --with-png-dir= in the configuration of php or is it part of the built in gd library? Thanks for any help.

RE: [PHP] restrictions

Thanks, Tried this and I get. "Cannot opeen connection to host on port 23" -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:32 AM To: Bruce Levick; 'Marco Tabini' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] restrictions In

RE: [PHP] restrictions

I can't connect to anything via telnet whether its my works SMTP server or another external server. My works SMTP mail server was the first one I tried (this would be logical). I have tried my own personal website mail server and that fails too. This is why I am thinking that its my computer rest

[PHP] Random array element

This is how I do in javascript: randNumber = new Array(); for (p = 0; p < 10; p++) { randNumber[p] = Math.floor(Math.random()*7); } weekday = new Array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ) randDay1 = weekday[randNumber[0]] randDay2 = weekday[randNumber[1]]

RE: [PHP] restrictions

In windowsxp do the following: Start -> Run Open: cmd At the shell type: telnet x.x.x.x 25< x.x.x.x being the smtp server If you get a prompt then you have other issues such as relay etc etc HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] > -Original Message---

RE: [PHP] restrictions

Just use the smtp server you use for mail. Oh you might not use smtp for corporate environment? Just use something like outlook express or some other smtp enabled client to send to these various smtp servers you are trying to use for the php scripts first. Then if it works with the mail client t

RE: [PHP] restrictions

Couple of suggestions: 1) Try connection to the SMTP server manually with Telnet, and see if you discover more that way 2) Simply use the same SMTP server that is configured in your mail client at work Cheers, Marco -- php|architect - The Monthly Magazine for PHP Professional

RE: [PHP] restrictions

Well I can't be totally sure but I think all outgoing mail points to an external SMTP server. -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 9:11 AM To: Bruce Levick Cc: [EMAIL PROTECTED] Subject: Re: [PHP] restrictions Hello Bruce--

RE: [PHP] restrictions

This is outgoing traffic the same as if you where surfing the Internet and as the connection is an established one your machine will allow it. I would suggest looking at the (server) as it may not allow relaying etc!! HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] > -Orig

Re: [PHP] restrictions

Hello Bruce-- That depends on what restrictions are imposed on your box, of course. Does your company use an SMTP-compatible mail server for your internal mail? If so, you could use the server your mail client points to to perform your tests. Cheers, Marco -- php|architect - T

[PHP] restrictions

I find that my the company that I work for is a little over protective. My machine is quite restricted (as in firewall and accessability) when it comes to ftp and telnet. Well basically my hands are tied in that sense. I am testing my database build on my local machine which runs fine and all. I

RE: [PHP] anyway to do a 'whos online' from session variable?

Simple create a database table for logins and have a status that you set to online / offline and last seen could also be added. Then it is just a simple SELECT statement. If you don't want to use a database you could flock (not perfect) a file then read in a serialised array and update then write

[PHP] anyway to do a 'whos online' from session variable?

when a user logs into my system I set a variable $_SESSION['username']. now, every page somebody pulls up it revalidates their login so somebody cannot get into the backend of the system. now - is there a way I can make a utility that will show me the session username's that are in use? it would

[PHP] graph libs

Can anyone give any suggestions on the best/most intuitive tools or libraries for generating graphs with PHP? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: test_smtp.php

Hello, On 01/07/2003 08:37 PM, Rad Craig wrote: I'm trying to implement this smtp_email stuff. I'm running Win2k, ArgoSoft Mail Server Pro, PHP 4.3.0, MySQL, etc. I downloaded everything on these pages: DNS Resolver: http://www.phpclasses.org/browse.html/file/1910.html You won't need this un

[PHP] test_smtp.php

I'm trying to implement this smtp_email stuff. I'm running Win2k, ArgoSoft Mail Server Pro, PHP 4.3.0, MySQL, etc. I downloaded everything on these pages: DNS Resolver: http://www.phpclasses.org/browse.html/file/1910.html MIME: http://www.phpclasses.org/browse.html/package/9.html SMTP: http://ww

Re: [PHP] Re: custom error handling

On Wed, 8 Jan 2003 08:28:58 +1100, you wrote: >> hi there i am trying to build a ustom error handler for the pear db aswell >> as catch fatal and parse errors , unfortunatly the pear db error message >> wont give me back the file and the line where the error is, how can i >> determine the line an

Re: [PHP] php-ldap - multiple modify actions within a single request

On Tue, 07 Jan 2003 22:49:45 +0100, you wrote: >hi! > >is it possible to make different modify actions (add, delete, etc.) >during a single request? > >for changing a password in the NDS i would have to >first delete the 'userPassword' and right after that add the new >'userPassword' AFAIK it i

[PHP] php-ldap - multiple modify actions within a single request

hi! is it possible to make different modify actions (add, delete, etc.) during a single request? for changing a password in the NDS i would have to first delete the 'userPassword' and right after that add the new 'userPassword' i know that it is possible in C, perl, etc. but it seems that the

[PHP] Adding HTTP URL Code

Hello, I have a string of data that can be anywhere from one line (a single URL) to many, many lines. The data is in plain text but, as I alluded, may contain one or more URLs (or none). I then take this data and put it on a web page so I would like to make any URLs in the data live. Has anyone

Re: [PHP] Slow file uploads.

Unfortunately not that I know of with PHP. However, I had to do the same thing for our users here and I found a great solution to be mod_perl for Apache. It writes to disk into a temporary file and then copies that file into the dir you specify. This isn't evangelism, just informing you of how

[PHP] Re: custom error handling

here is an example of the error sorry forgot to add it DB Error: syntax error SELECT gallery FROM galleries WHERE galleryID= [nativecode=1064 ** You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] like

[PHP] custom error handling

hi there i am trying to build a ustom error handler for the pear db aswell as catch fatal and parse errors , unfortunatly the pear db error message wont give me back the file and the line where the error is, how can i determine the line and file where the error is caused ufortunatly the callback f

Re: [PHP] regular expression help

why don't you just use str_replace ? I'm a bit useless at regular expressions so i thought i ask. i need to turn all [link url=http://www.site.com] link to site [/link] in a string into html http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___

Re: [PHP] Re: PHP and MySQL bug

I'm using Windows 2000. - Original Message - From: "Cleber" <[EMAIL PROTECTED]> To: "Nuno Lopes" <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 10:23 AM Subject: Re: [PHP] Re: PHP and MySQL bug > Try add to /etc/hosts the name and ip of DB is located > > > - Original Message --

Re: [PHP] Zend IDE vs. PhpEd

"John Wells" <[EMAIL PROTECTED]> wrote... : > Thanks for the reply. I'm also impressed with Zend's autocompletion...I > can't even get PHPEd to autocomplete on objects. > > Finally, one frustrating thing on the part of both editors is the > inability to autocomplete on arrays of object referenc

[PHP] Re: Defaults in drop down list...

Here is another option for you to sample. The function takes two parameters, one is the name of the list box, the other is the value to be initally selected. The second parameter is optional, if not present, no value will be inially selected. I do not remember where I picked this up, but I have

Re: [PHP] regular expression help

Here is your answer: http://www.phpbuilder.com/columns/ying2718.php3?page=2 -- Maxim Maletsky [EMAIL PROTECTED] "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote... : > I'm a bit useless at regular expressions so i thought i ask. > i need to turn all > [link url=http://www.site.com] l

Re: [PHP] Double entry into MySQL..

There's nothing in your posted code that could cause two inserts into mysql. The only thing I can think of is that somehow, your script is getting executed twice. Is there any way that could be happening? ..michael.. On Mon, 2003-01-06 at 16:03, Altug Sahin wrote: > Hi here, > > I am sending a f

Re: [PHP] groupware tool in PHP for PostgreSQL

Miguel González Castaños <[EMAIL PROTECTED]> wrote... : > I have been looking around during more than one month, and the best > that I have found seems to be phpGroupware, PHProjekt and TuTOS but I am > hoping to get some comments/suggestions from you guys. probably phpGroupWare. -- Maxim Mal

Re: [PHP] Text editors

Edit Plus www.editplus.com theres a trial period that never ends. From: Michael Sweeney <[EMAIL PROTECTED]> To: Karl James <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Text editors Date: 07 Jan 2003 10:00:45 -0800 jEdit. www.jedit.org. On Tue, 2003-01-07 at 01:59, Karl James w

  1   2   >