[PHP] Re: Mail Authentication or redirection of SMTP server

2003-07-28 Thread Pete Morganic
I used to have similar problem and that was when I was using the php mail() command.. Have a look at phpmailer http://phpmailer.sourceforge.net/ This deals witha lot of the peculiarities with mail servers.. Pete Ron Allen wrote: Here is my problem. When I send emails locally theough the

[PHP] Re: CGI Timeout

2003-07-29 Thread Pete Morganic
increase the time limit http://uk.php.net/manual/en/function.set-time-limit.php Imran wrote: Hi, i facing a error during uploading a big size file (abt 200 MB). i incred = upload file size in php.ini and also incred connection time in IIS (web = server), but i getting again this below written

[PHP] Re: shorthand if notation

2003-06-12 Thread Pete Morganic
Its a ternary operator look at http://www.phpbuilder.com/board/showthread.php?threadid=10235547 http://www.phpbeginner.com/columns/maxim/ternary pete Adrian Greeman wrote: I am confused by the shorthand if notation. For example I just saw this PHP snippet on another forum ? $bkgndClass =

[PHP] Re: form name and submit test

2003-06-12 Thread Pete Morganic
Put a hidden field in the form and give it the same name as the forms eg input type=hidden name=form_name value=sign_up_form I'm pretty sure the form name is not sent to the server - but i may be wrong pete Amanda McComb wrote: If I have multiple forms on a page, and each form has it's own

Re: [PHP] ie issue: when I do a forced redirect with the header()

2003-06-20 Thread Pete Morganic
Slkigh Ammendment to below ?php header(Location: https://www.google.com;) ; die; ? Jake Johnson wrote: Have you tried... ?php header(Location: https://www.google.com;) ; ? Regards, Jake Johnson [EMAIL PROTECTED] -- Plutoid -

[PHP] Re: correct session format?

2003-06-24 Thread Pete Morganic
Have a look half way down this page http://www.linuxdocs.org/HOWTOs/PHP-HOWTO-15.html pete Jay Fitzgerald wrote: is this the correct way to register variables via a session? [code] session_start (); $_SESSION['eventid'] = 'arma2'; print_r ($_SESSION); echo P $_SESSION; [/code] [result] Array (

[PHP] Re: return all non-tag characters

2003-06-24 Thread Pete Morganic
try http://uk2.php.net/strip_tags pete Matt Palermo wrote: I want to be able to retrieve and return all character that are not located in html tags. For example: font size=\3\ color=\#336699\1234567/font or marquee1234567/marquee I would just like it to be equal to 1234567, but I would need

[PHP] Re: Ticketing System?

2003-06-26 Thread Pete Morganic
The one we use is oneorzero helpdesk which is a project at sourceforge.net Andreas Cahen wrote: Hello List :) Is there any usefull ticketing system (Hotline/Support/etc.) written in PHP? I have found some on hotscripts.com, but I don't know which one is really got or not.. Any suggestions?

[PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Pete Morganic
you could use a $_SESSION variable instead of file $filename = addusers.txt; if (isset($users)) { $temp = $_POST['users']; $handle = fopen($filename, w+); fwrite($handle, $temp); $users = file($filename); if (ereg(\t, $users[0]) == true) $separator = \t; // om texten är

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Pete Morganic
What I tend to do is to download the installer and run it as this sets up all the configuration (eg IIS) I then download the zip file (Which contains a load of extra files eg PEAR) and copy the whole unzipped directory to overwite the c:\php dir contents created by the installer. This might

[PHP] Re: mime type

2003-06-27 Thread Pete Morganic
chech here http://www.phpfreaks.com/mimetypes.php and in php add the folowing header header (Content-type: model/vrml); Brian V Bonini wrote: I want to get php to output text/css for one .php file. I tried using header() and ini_set () but seems no matter what I do the Content-type remains

[PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Nirmala P wrote: Hi list, This time i am pasting my code could any body tell where wrong I am ? ? function LangItem($field,$lang) { $db = mysql_connect(localhost, root); /*Check For Connection to local host*/ if(!$db) echo(Connect to localhost mysql database failed);

Re: [PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Where does thejavascript fit ? Nirmala P wrote: Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = ?php LangItem(FieldName,LangName

[PHP] Re: dynamic classes or dynamic extends ?

2003-07-02 Thread Pete Morganic
off tangent slightly - Have u looked at smarty templates smarty.php.net Must admit I played with ITX and a few others but smarty wins for me pete Torsten Rosenberger wrote: Hello i plan to reorganize my CMS code. The idee is to only use classes for the hole system. There should be a Core class

[PHP] Re: Quickie - manipulating strings

2003-07-02 Thread Pete Morganic
from the manual Example 1. Basic substr() usage ?php $rest = substr(abcdef, 1);// returns bcdef $rest = substr(abcdef, 1, 3); // returns bcd $rest = substr(abcdef, 0, 4); // returns abcd $rest = substr(abcdef, 0, 8); // returns abcdef // Accessing via curly braces is another option $string =

[PHP] Re: outputting xml declaration

2003-07-02 Thread Pete Morganic
print '?xml version=1.0?'; Steven Apostolou wrote: Hello, The folowing code gives an error: print ?xml version=\1.0\?; This is probably because I print a questionmark? How can I avoid that an error is generated? Besides it's not an error in the way that it gives an errorstring but it writes

[PHP] Re: web based mail client

2003-07-03 Thread Pete Morganic
There's loads of email clients here http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web-based_Email/index.html Greg Brant wrote: hi, im the lead developer for a small online magazine / community we want to set up an e-mail service where our users can create their own mail

[PHP] Re: Database question

2003-07-03 Thread Pete Morganic
definately do NOT recommend this path- Just make an include file at the top of each page pete Hardik Doshi wrote: Hi Group, Currently i am connecting the underlying database server from every php page. To reduce the connection overhead i am thinking to store the PEAR DB object into the registry

[PHP] Re: Please Help.. cgi.force_redirect does not work

2003-07-04 Thread Pete Morganic
what is the cgi error message ? Scott Fletcher wrote: Hi! To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a while. Then we builted a new database server, SQL-2000 and point the website to the new server. Then we notice the problem with the CGI error. So, we last week

[PHP] Re: imap_header timing out

2003-07-08 Thread Pete Morganic
see the set_time_limit(); function http://uk2.php.net/manual/en/function.set-time-limit.php increase to around a minute or make the mailbox read them back in pages with 10 at a time for example Pete Amer Neely wrote: I've a script reading a mailbox using $InBox = imap_open($Host,$User,$Pass);

[PHP] numbers to text

2003-07-11 Thread Pete Morganic
Anyone know of a class or function that converts numbers to readable text eg inputing the number would output text as in 120 = one hundred and twenty 3600 = three thousand six hundred tia pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: numbers to text

2003-07-11 Thread Pete Morganic
? just not even be bothered with Google I did but didnt find any Thanks ;-) pete Brian McGarvie wrote: Anyone know of a class or function that converts numbers to readable text Oh how old... coud you just not even be bothered with Google or any other search engine? To save you the trouble:

[PHP] Re: php mysql array question

2003-07-11 Thread Pete Morganic
I use the PEAR db http://pear.php.net/manual/en/package.database.php This returns arrays - examples here http://pear.php.net/manual/en/package.database.db.intro-fetch.php look at the Quick data retreaval down the page pete Larry Brown wrote: Is there any php function to pull a query into an

[PHP] Re: Send mail using external server

2003-07-14 Thread Pete Morganic
http://phpmailer.sourceforge.net/ This is what I use and makes life much much easier Pete Maria Garcia Suarez wrote: Hi there! I'm developing a program that has a kind of mail client from where users can send mails and get a blind copy in their e-mail boxes. The program uses mail() in those

[PHP] Re: reposting in textarea

2003-07-14 Thread Pete Morganic
You can use the $_POST variavle in the text area eg textarea name=my_field?php echo $_POST['my_field']; ?/textarea Artoo wrote: How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can

[PHP] Re: Templates...

2003-07-15 Thread Pete Morganic
Have u looked at smarty.php.net ?? It sounds like your reinventing the wheel Pete Donatas wrote: Does anyone know any other way used in template engines for loops but creating array first and passing it to template class? This is rather annoying and it makes work slower and code harder to read.

[PHP] Re: getallheaders() in PHP 4.2.3

2003-07-16 Thread Pete Morganic
Sorry not to answer your question below however I am intrested in Netware.. Just to satisfisy mu curiosity. What version are u running ? what Web server and what database ?? I love netware, however most customers dont !! pete Ananth Kesari wrote: Hi, For some reason, getallheaders() is not

[PHP] Re: Shell_exec() [ or what else? ] to kill root-started FTP daemon

2003-07-22 Thread Pete Morganic
check out the linux sudo command pete R evr{v wrote: Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the daemon with the same pid still

Re: [PHP] IE Issues

2003-07-22 Thread Pete Morganic
Why is the font tag evil and depreciated ??? confused pete Steve Magruder wrote: Curt Zirzow wrote: Dont use the font tag.. they are evil... and besides depricated. And they're deprecated too. :) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] IE Issues

2003-07-22 Thread Pete Morganic
so which tag should i use .. div span ??? tia pete Nelson rodriguez-Pena wrote: Hi Pete, Why is the font tag evil and depreciated ??? confused pete Because it is a presentational element and HTML is headed to structural content instead of visual formating. Structure is for HTML, presentation