Re: [PHP] SMTP and GroupWise

2004-04-22 Thread Jason Wong
On Friday 23 April 2004 03:27, Todd Cary wrote: > I am using the phpmailer class, and I do not see mention of using the > POP3 for authentication. Am I missing something? I don't think it supports POP-before-relay last time I looked - which was quite a while ago. What you need to do is login

[PHP] Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-22 Thread Viraj Kalinga Abayarathna
are you uploading the file through a HTML form? if so check the FORM for the following hidden input field... increace the above value (in bytes) to a bit more value than your maximum file size you are tring to upload. happy coding... Vk. Ragnar wrote: > Hi guys/gi

Re: [PHP] String replace in php

2004-04-22 Thread Jason Wong
On Friday 23 April 2004 12:30, T UmaShankari wrote: > I need to replace a character " with "\. Using php how to do this. i > have given like this but it is giving parse error > > $temps=str_replace('"','"\',$temp); > > Can anyone tell me how to do this ? Try: $temps = str_replace('"','"\

[PHP] [PHP-NIX] File upload

2004-04-22 Thread Ragnar
Hi guys/girls, I am having some major pain here with a php script handling file uploads. It's part of an CMS and the file in question takes a PDF, makes a thumbnail of it and then moves it to it's proper location on the server. All this works fine with smaller files < ~ 2 MB. I am having a file

Re: [PHP] Classes and their members

2004-04-22 Thread Tom Rogers
Hi, Friday, April 23, 2004, 1:00:34 PM, you wrote: DN> I'm having a problem using classes. The problem stemed from DN> using arrays to store a bunch of users and their usage times. DN> I have an object with two members, $name and $onlineSecs. No DN> matter how hard I try...$name always gets mod

[PHP] String replace in php

2004-04-22 Thread T UmaShankari
Hellow, I need to replace a character " with "\. Using php how to do this. i have given like this but it is giving parse error $temps=str_replace('"','"\',$temp); Can anyone tell me how to do this ? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Escape problems...why?

2004-04-22 Thread Ryan A
Hey John, Thanks for replying. I cant use strip slashes because there are a number of scripts doing DB things and searching for all of them and modifying things just for one client can be a royal PITA. I tried to use "php_flag magic_quotes_gpc off" in the *existing* .htaccess file like so: php_f

[PHP] String replace in php

2004-04-22 Thread T UmaShankari
Hellow, I need to replace a character " with "\. Using php how to do this. i have given like this but it is giving parse error $temps=str_replace('"','"\',$temp); Can anyone tell me how to do this ? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Escape problems...why?

2004-04-22 Thread John W. Holmes
Ryan A wrote: For example this insert statement: insert into test_ing values('a','a','a','a') becomes: insert into test_ing values (\'a\',\'a\',\'a\',\'a\') I immediatly suspected "magic_quotes" but checked (via phpinfo) and see that magic_quotes are off, as a safety precaution I even have "set_ma

[PHP] [Newbie Guide] For the benefit of new members

2004-04-22 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

[PHP] Escape problems...why?

2004-04-22 Thread Ryan A
Hi, I am accepting some SQL via a textarea on a webform and then saving that SQL in the database for later use everythings working fine on our test servers but for some reason on our clients servers its screwing up. For example this insert statement: insert into test_ing values('a','a','a','a'

[PHP] Classes and their members

2004-04-22 Thread Dickon Newman
I'm having a problem using classes. The problem stemed from using arrays to store a bunch of users and their usage times. I have an object with two members, $name and $onlineSecs. No matter how hard I try...$name always gets modified. I try referencing $onlineSecs directly...I've tried writi

[PHP] Re: PHP vs PERL - thanks

2004-04-22 Thread David Scott
I'm currently getting my feet wet with Perl and PHP. It's good many people replied with "it's your preference" so as not to get into a flame war and to remain open about the matter. However, I don't see that as being very helpful because Perl !== PHP, obviously. Here's what I've come across so

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread David Scott
I believe Regular Expressions are language independent. Here is an O'Reilly book on the matter: http://www.oreilly.com/catalog/regex2/ Chris W. Parker wrote: Gabino Travassos on Thursday, April 22, 2004 12:24 PM said: I'm wondering if Regular Expressions are the sa

[PHP] GD2 (bundled) imagerotate

2004-04-22 Thread php chucker
Going crazy! I'm using the imagerotate function against a PNG with transparency, to overlay another image via imagecopy. The problem is the transparent area is showing as black. If I don't use imagerotate and just stick with the imagecopy, the area is transparent. Why am I losing my transpar

Re: [PHP] online php books

2004-04-22 Thread Andy B
ok tnx will try it out and have a look around (hopefully they take paypal) since i dont have a credit card at least not yet anyways... - Original Message - From: "Richard Davey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 9:40 PM Subject: Re: [PHP] online p

Re: [PHP] online php books

2004-04-22 Thread Richard Davey
Hello Andy, Friday, April 23, 2004, 2:35:29 AM, you wrote: AB> just wondering if there are any good php books that are online (even if you AB> have to buy them)... just as long as they are online or downloadable.. I've got just one recommendation for you - Safari. http://safari.oreilly.com/ Th

[PHP] online php books

2004-04-22 Thread Andy B
hi... just wondering if there are any good php books that are online (even if you have to buy them)... just as long as they are online or downloadable.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Image Alpha - Water Mark

2004-04-22 Thread Torsten Roehr
"Anderson Ouriques" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I would like how use the image functions to put one water-mark in other > image. > I can't use with alpha functions. > I use PNG format. Maybe this is what you're looking for: http://phparch.com/news/1242 R

Re: [PHP] user inputs in infinite php loop

2004-04-22 Thread Marek Kilimajer
casi wrote: Hi guys, I have a php site running in an infinite loop in order to have a permanent tcpip connection with fsockopen to another server. Now the user should be able to make an input. As the php is running in the infinite loop, the html Is there a possibility to get the inputs with ja

[PHP] Re: MySQL Dump

2004-04-22 Thread Torsten Roehr
"Matt Palermo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there an easy way to do a mysql dump routine written in php? I basically > want to write a function to backup a database and have it create all the > neccessary structures and data in the dump. I know phpMyAdmin will

Re: [PHP] TRUE or true?

2004-04-22 Thread Marek Kilimajer
Richard Davey wrote: Hi all, I know from a code point of view it makes no difference at all (i.e. they both work), but which format do you all use for booleans? TRUE / FALSE or true / false The PHP manual uses both :) Zend Studio tries to auto-complete to the lower-case variant. I'm not seeking

[PHP] Image Alpha - Water Mark

2004-04-22 Thread Anderson Ouriques
Hi, I would like how use the image functions to put one water-mark in other image. I can't use with alpha functions. I use PNG format. -- Atenciosamente, Anderson Ouriques Pesquisa e Desenvolvimento Mundopixel Internet t: 48 2362364 c: 48 99074190 e: [EMAIL PROTECTED] w: www.mundopixel.com.br --

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Torsten Roehr
"Tyler Replogle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hey, > i didn't quite get when you ment by that but have you tried using > $DOCUMENT_ROOT before your path, that might help it will be something like > this > require_once('$DOCUMENT_ROOT/test/db.php'); > $DOCUMENT_ROOT

Re: [PHP] Making comments on website items, etc...

2004-04-22 Thread Marek Kilimajer
Search for "php tutorial" Ashwin Purohit wrote: Hi all, I have a website where I have uploaded a few of my drawings, etc. I want to know how to write a simple php script so that people can post comments beneath the pictures for all to view. If somebody could point me to some tutorial or run me

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Nikolay Bachiyski
Hello, Just imagine you had just copied the file you want to include and then pasted it into the master file. PHP does not any path translation. For example if you have the following structure: - / -- a.php -- b.php -- /utils c.php d.php Let c.php is included in a.php. Then if you want

Re: [PHP] Re: Search MySQL and Match Whole Words

2004-04-22 Thread Kenneth Dombrowski
On 04-04-22 19:48 -0400, Matt Palermo wrote: > That will work if there is only one word in the column I'm searching, but > the columns I'm searching are in paragraph form, so the = will not work > there if I want to just match one word from the whole paragraph... > http://dev.mysql.com/doc/mysql/

Re: [PHP] Passing variables

2004-04-22 Thread Richard Davey
Hello Dani, Friday, April 23, 2004, 1:14:28 AM, you wrote: D> header("Location: ins_02.php?te_es_n_id=$te_es_n_id"); D> $estabID = $_POST['te_es_n_id']; D> What am I doing wrong? If you are using a Header to redirect, the value comes in $_GET, not $_POST. $estabID = $_GET['te_es_n_id']; -- Be

[PHP] Passing variables

2004-04-22 Thread Dani
Hello. I'm trying to pass variables from a page to the other and, for some reason, I just can make this to work. Here's what I'm doing: if(!(empty($te_es_t_nome))) { /* Insere Valores na talela Ramo de Atividade / Estabelecimento */ $sql02 = "INSERT INTO te_ramo_ativ_estab (te_re_n_id, te_es_n_

Re: [PHP] TRUE or true?

2004-04-22 Thread Robert Cummings
On Thu, 2004-04-22 at 19:51, Richard Davey wrote: > Hi all, > > I know from a code point of view it makes no difference at all (i.e. > they both work), but which format do you all use for booleans? > > TRUE / FALSE > > or > > true / false > > The PHP manual uses both :) Zend Studio tries to au

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Jordi Canals
Curt Zirzow wrote: * Thus wrote Sheeraz fazal ([EMAIL PROTECTED]): Hi, I have problem in undertanding the require_once/require/include/include_once functionality. Php files in my project are located in different folders. Some folders have common files for other files. And file layout is like this

[PHP] TRUE or true?

2004-04-22 Thread Richard Davey
Hi all, I know from a code point of view it makes no difference at all (i.e. they both work), but which format do you all use for booleans? TRUE / FALSE or true / false The PHP manual uses both :) Zend Studio tries to auto-complete to the lower-case variant. I'm not seeking a big debate on th

[PHP] Re: Search MySQL and Match Whole Words

2004-04-22 Thread Matt Palermo
That will work if there is only one word in the column I'm searching, but the columns I'm searching are in paragraph form, so the = will not work there if I want to just match one word from the whole paragraph... "Ligaya Turmelle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > why

[PHP] Re: Search MySQL and Match Whole Words

2004-04-22 Thread Ligaya Turmelle
why not just use WHERE word = "inputWord" and skip the whole LIKE thing for an exact match? Is that what you mean? Respectfully, Ligaya Turmelle "Matt Palermo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I was wondering if anyone knows how to do whole word searches in mysql. I

Re: [PHP] PHP Web Hosting

2004-04-22 Thread -{ Rene Brehmer }-
According to historical records, on Thu, 22 Apr 2004 06:48:00 -0400 David T-G wrote about "Re: [PHP] PHP Web Hosting": >Rene, et al -- > >...and then -{ Rene Brehmer }- said... >% >% According to historical records, on Tue, 20 Apr 2004 10:39:33 -0400 John >% Nichel <[EMAIL PROTECTED]> wrote about

Re: Re[4]: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello pan, > > Thursday, April 22, 2004, 8:36:51 PM, you wrote: > > p> on most servers ini_set will be the best you can hope for > p> security settings won't allow alternative php.ini file reads > p> that's why > > Perha

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"Rick Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > on most servers ini_set will be the best you can hope for > > > > security settings won't allow alternative php.ini file reads > > If we're talking about Apache, you can place php config commands in an > .htaccess or h

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Richard Harb
did you check the online manual for those funcitons yet? I have found the user notes to be a wealthy ressource on that matter. This topic also came up very recently on this list so checking the archives might solve it. Richard Thursday, April 22, 2004, 10:34:23 PM, thus was written: > Hi, > I

[PHP] Comments beneath Images

2004-04-22 Thread Ashwin Purohit
Hi all, I have a website where I have uploaded a few of my drawings, etc. I want to know how to write a simple php script so that people can post comments beneath the pictures for all to view. If somebody could point me to some tutorial or run me through real quick, it'd be much appreciated. Th

[PHP] Making comments on website items, etc...

2004-04-22 Thread Ashwin Purohit
Hi all, I have a website where I have uploaded a few of my drawings, etc. I want to know how to write a simple php script so that people can post comments beneath the pictures for all to view. If somebody could point me to some tutorial or run me through real quick, it'd be much appreciated. Th

[PHP] user inputs in infinite php loop

2004-04-22 Thread casi
Hi guys, I have a php site running in an infinite loop in order to have a permanent tcpip connection with fsockopen to another server. Now the user should be able to make an input. As the php is running in the infinite loop, the html Is there a possibility to get the inputs with javascript and

Re: [PHP] MySQL Dump

2004-04-22 Thread Michal Migurski
> Is there an easy way to do a mysql dump routine written in php? I > basically want to write a function to backup a database and have it > create all the neccessary structures and data in the dump. I know > phpMyAdmin will do this for me, but I want to write a function to do > this incase the se

RE: [PHP] virtual domain own php.ini

2004-04-22 Thread Rick Fletcher
> on most servers ini_set will be the best you can hope for > > security settings won't allow alternative php.ini file reads If we're talking about Apache, you can place php config commands in an .htaccess or httpd.conf file. Those files can easily be associated with a particular VirtualHost. C

[PHP] MySQL Dump

2004-04-22 Thread Matt Palermo
Is there an easy way to do a mysql dump routine written in php? I basically want to write a function to backup a database and have it create all the neccessary structures and data in the dump. I know phpMyAdmin will do this for me, but I want to write a function to do this incase the server doesn

Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Chris Shiflett
--- Robert Sossomon <[EMAIL PROTECTED]> wrote: > if ($cat_id != "53" || $cat_id != "54" || $cat_id != "55" || $cat_id > != "117" || $cat_id != "118" || $cat_id != "74") That looks like a pretty big logical flaw to me. Just read that out loud to yourself. It should be clear that this statement is e

Re: [PHP] Safe mode effect

2004-04-22 Thread Marek Kilimajer
Ravi kumar wrote: HI, goole.com found so many details about safe mode too much to understand. My hosting provider set php safe mode = enable . so iam unable to use so many scripts . can any one give good free image gallery software which will work under safe mode = enable . is it true that wi

[Fwd: [PHP] Search MySQL and Match Whole Words]

2004-04-22 Thread Mattias Thorslund
You mean Full-text searches? Read about them here: http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html Only works with certain table types. Not InnoDB tables (transactional) for instance. Best, Mattias (ps new to this list - messed up on replying first time) Original Message -

RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz on Thursday, April 22, 2004 3:17 PM said: > [snip] >> how do you not define a function but put it in an include file at the >> same time and still have it be useable? > [/snip] [snip /] > If I don't define them, I don't expect them to be usable, that's the >

[PHP] Search MySQL and Match Whole Words

2004-04-22 Thread Matt Palermo
I was wondering if anyone knows how to do whole word searches in mysql. I have a search textbox that users can enter in multiple words to search for in the database, but things like the mysql LIKE match any part of a word. Is there a way to search for whole word matches only? Please let me know i

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Curt Zirzow
* Thus wrote Sheeraz fazal ([EMAIL PROTECTED]): > Hi, > I have problem in undertanding the require_once/require/include/include_once > functionality. Php files in my project are located in different folders. > Some folders have common files for other files. And file layout is like this Include fil

Re: [PHP] Conditional Functions

2004-04-22 Thread John W. Holmes
From: "Anguz" <[EMAIL PROTECTED]> > So I thought that maybe I could only define the needed ones in each > case, although there's more in the include file. Example: > > if ($in_array('Hello', $functionArray)) > { > function Hello() > { > echo 'Hello'; > } > } > > I understand that the whole php fil

Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip] Jay Blanchard wrote: It might, have you experimented with any code? [/snip] Haven't yet, although I plan to. I wanted to check with more knowledged people than I first in case this was an already known thing :) Anguz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Curt Zirzow
* Thus wrote Gabino Travassos ([EMAIL PROTECTED]): > Hello > > I'm wondering if Regular Expressions are the same in Perl and PHP (and > possibly Actionscript)? They look the same and smell the same, but if I see > a book in a store for Perl Regular Expressions that's $10 cheaper than the > PHP one

Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip] how do you not define a function but put it in an include file at the same time and still have it be useable? chris. [/snip] Look at example 12-2 here: http://www.php.net/manual/en/language.functions.php If I don't define them, I don't expect them to be usable, that's the point. I don't wa

Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip] Maybe you could group them by purpose and put them into different include files. Then you just include the file containing the functions you need at this point in the script. Regards, Torsten Roehr [/snip] The functions are already grouped in different files, but even then, not all the fun

RE: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Michael Sims
John W. Holmes wrote: > You want && instead of || > > if ($cat_id != "53" && $cat_id != "54" && $cat_id != "55" && $cat_id > != "117" && $cat_id != "118" && $cat_id != "74") For stuff like this I've always found the following slightly easier on the eyes: if (!in_array($cat_id, array('53', '54', '

RE: [PHP] require_once('') relative path problem

2004-04-22 Thread Tyler Replogle
hey, i didn't quite get when you ment by that but have you tried using $DOCUMENT_ROOT before your path, that might help it will be something like this require_once('$DOCUMENT_ROOT/test/db.php'); $DOCUMENT_ROOT goes to your first folder that shows up online (where your index page is) From: "Sh

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
Thanks for the suggestions. Between the online manual and the books I have I think I'll get there eventually. Sometimes my logic just sux. What I needed to do was have the user fill out a form and if they make changes to the XML file I would update the file. So, my long way around was to go throug

[PHP] require_once('') relative path problem

2004-04-22 Thread Sheeraz fazal
Hi, I have problem in undertanding the require_once/require/include/include_once functionality. Php files in my project are located in different folders. Some folders have common files for other files. And file layout is like this /* File: a.php */ require_once('../test/db.php'); ... /* File

RE: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Michal Migurski
> > I'm wondering if Regular Expressions are the same in Perl and PHP (and > > possibly Actionscript)? They look the same and smell the same, but if > > I see a book in a store for Perl Regular Expressions that's $10 > > cheaper than the PHP one (is there one?), then is it the same thing? > > this

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
I forgot to mention that in my XML file, inside the quotes in this attribute >>> backColour="xx" the x's will be variable..., so I need some kind of wildcard to select everything from "backColour" + the next 8 or 9 characters, cuz it might be backColour="333990" or whatnot. 'backColour' will

[PHP] Re: [PHP-DB] What's wrong with this IF statement?

2004-04-22 Thread Miles Thompson
Don't cross post -- you'll eventually annoy enough people that they'll stop responding! Here are some suggestions: Are you closing braces properly? (Assume you must be, otherwise errors would be thrown. Have you echoed your $cat_id so you know if you are getting? Use the in_array function to s

Re: [PHP] Conditional Functions

2004-04-22 Thread Torsten Roehr
Maybe you could group them by purpose and put them into different include files. Then you just include the file containing the functions you need at this point in the script. Regards, Torsten Roehr "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I was wondering

RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz on Thursday, April 22, 2004 12:21 PM said: > I was wondering if using conditional functions would save resources. > The thing is that there's many functions in the code I'm using, but > most aren't used in each case. I was thinking that maybe, even if the > fun

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread John W. Holmes
From: "Gabino Travassos" <[EMAIL PROTECTED]> > I'm wondering if Regular Expressions are the same in Perl and PHP (and > possibly Actionscript)? They look the same and smell the same, but if I see > a book in a store for Perl Regular Expressions that's $10 cheaper than the > PHP one (is there one?)

RE: [PHP] Conditional Functions

2004-04-22 Thread Jay Blanchard
[snip] I was wondering if using conditional functions would save resources. The thing is that there's many functions in the code I'm using, but most aren't used in each case. I was thinking that maybe, even if the functions are in the included files, I could not define them making them conditional.

Re[4]: [PHP] virtual domain own php.ini

2004-04-22 Thread Richard Davey
Hello pan, Thursday, April 22, 2004, 8:36:51 PM, you wrote: p> on most servers ini_set will be the best you can hope for p> security settings won't allow alternative php.ini file reads p> that's why Perhaps it would have been more useful to state this in the original post. -- Best regards, Ri

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > pan wrote: > > "Robby Russell" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>Trying to use own php.ini file (rather than the one that the webserver > >>sees by default) for a web site (on a box th

[PHP] Conditional Functions

2004-04-22 Thread Anguz
Hello, I was wondering if using conditional functions would save resources. The thing is that there's many functions in the code I'm using, but most aren't used in each case. I was thinking that maybe, even if the functions are in the included files, I could not define them making them conditi

Re: Re[2]: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello pan, > > Thursday, April 22, 2004, 8:19:39 PM, you wrote: > > p> rtfm on ini_set() > > What on earth has ini_set() got to do with the web server not picking > up the alternative php.ini file located in the web root

RE: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Chris W. Parker
Gabino Travassos on Thursday, April 22, 2004 12:24 PM said: > I'm wondering if Regular Expressions are the same in Perl and PHP (and > possibly Actionscript)? They look the same and smell the same, but if > I see a book in a store for Perl Regular Expressions that's

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread John Nichel
pan wrote: "Robby Russell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Trying to use own php.ini file (rather than the one that the webserver sees by default) for a web site (on a box that has many websites that utilize the other) and used the following instructions, but it doesn't

Re: [PHP] SMTP and GroupWise

2004-04-22 Thread Todd Cary
David - I am using the phpmailer class, and I do not see mention of using the POP3 for authentication. Am I missing something? Todd David O'Brien wrote: That's just basic pop before smtp. A common way of authenticating. Just make a connection to the pop server after the hello and before sendi

Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread John W. Holmes
From: "Robert Sossomon" <[EMAIL PROTECTED]> > if ($cat_id != "53" || $cat_id != "54" || $cat_id != "55" || $cat_id > != "117" || $cat_id != "118" || $cat_id != "74") Okay, if $cat_id is 53, this will work out to: if(FALSE || TRUE || TRUE || TRUE || TRUE || TRUE) which results in TRUE overall.

Re[2]: [PHP] virtual domain own php.ini

2004-04-22 Thread Richard Davey
Hello pan, Thursday, April 22, 2004, 8:19:39 PM, you wrote: p> rtfm on ini_set() What on earth has ini_set() got to do with the web server not picking up the alternative php.ini file located in the web root? Sure it will allow you to change *some* of the ini variables, but that wasn't even the

[PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
Hello I'm wondering if Regular Expressions are the same in Perl and PHP (and possibly Actionscript)? They look the same and smell the same, but if I see a book in a store for Perl Regular Expressions that's $10 cheaper than the PHP one (is there one?), then is it the same thing? While we're on th

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"Robby Russell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Trying to use own php.ini file (rather than the one that the webserver > sees by default) for a web site (on a box that has many websites that > utilize the other) and used the following instructions, but it doesn't >

Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Daniel Clark
What about removing the quotes around the numbers. if ($cat_id != 53 || $cat_id != 54 || $cat_id != 55 etc... > My IF statement should be picking up on the numbers, and if the number > matches not be displaying out the information, however I look at the > outputted page and the information is s

[PHP] Re: What's wrong with this IF statement?

2004-04-22 Thread Torsten Roehr
"Robert Sossomon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My IF statement should be picking up on the numbers, and if the number > matches not be displaying out the information, however I look at the > outputted page and the information is still there, what have I got wrong >

Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Richard Davey
Hello Robert, Thursday, April 22, 2004, 8:02:55 PM, you wrote: RS> $cat_id = $cats[id_num]; Try this: $cat_id = $cats['id_num']; You need to quote array elements otherwise PHP expects a constant. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Ma

[PHP] What's wrong with this IF statement?

2004-04-22 Thread Robert Sossomon
My IF statement should be picking up on the numbers, and if the number matches not be displaying out the information, however I look at the outputted page and the information is still there, what have I got wrong on the code? //Show categories first $get_cats = "select id_num, id_name, descriptio

Re: [PHP] SMTP and GroupWise

2004-04-22 Thread David O'Brien
That's just basic pop before smtp. A common way of authenticating. Just make a connection to the pop server after the hello and before sending the email. Most mail servers cache this info for a certain amount of time so you may not have to do it every time you send. I know that http://phpmailer.so

[PHP] SMTP and GroupWise

2004-04-22 Thread Todd Cary
My client is using GroupWise to relay *without* having relay turned on and it needs/uses an authenication that is different from the regular SMTP. Here is a trace of a message that went through: 02/11/2004 06:55:27 SMTP to rcpt: Al Smith <[EMAIL PROTECTED]> 02/11/2004 06:55:29 < +OK GroupWise P

[PHP] Include Files Solution

2004-04-22 Thread Robert Sossomon
Here's the solution I came up with that works for the site: $display_block .= ""; I am only using the PHP parser once instead of twice, the \n makes the whole thing nicely readable in the HTML source files that are generated, and the paths were modified (and the navigation templates were as

RE: Re[2]: [PHP] A to Z incremental

2004-04-22 Thread Pablo Gosse
Paul wrote: > Hello Pablo, > > Thursday, April 22, 2004, 4:05:23 PM, you wrote: > >>> Hi! >>> Got this script: >>> >>> >> for($i='A';$i<='Z';$i++){ echo $i.' | '; } >>> >>> The output is: >>> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | >>> R | S | T | U | V | W

Re[2]: [PHP] A to Z incremental

2004-04-22 Thread Paul
Hello Pablo, Thursday, April 22, 2004, 4:05:23 PM, you wrote: >> Hi! >> Got this script: >> >> > for($i='A';$i<='Z';$i++){ echo $i.' | '; } >>> >> >> The output is: >> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R >> | S | T | U | V | W | X | Y | Z | AA | AB | AC |

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-22 Thread Justin Patrin
David T-G wrote: Hi -- ...and then T. H. Grejc said... % % Justin Patrin wrote: % >The threading works just fine. The problem is that users have ignorant % >mail software that don't set the thread headers correctly. Even % >newsgroup client software might do this. This is *not* the server's %

[PHP] Re: includes and classes

2004-04-22 Thread Justin Patrin
Jason Barnett wrote: Dubreuilmedia wrote: Hi I was wondering about includes and classes. I have a class in which depending on a member variable, i should load the proper include, which is really the proper config file for that moment. How does a member variable control this? E.g. you set the

[PHP] Re: objects in sessions again

2004-04-22 Thread Justin Patrin
[EMAIL PROTECTED] wrote: Hi there, needing some more advise, is this function correct ? function create_object($class_name,$dir = null, $serialize = null) { $dir ? $dir = $dir."/" : $dir = ""; require_once("".CLASS_PATH.$dir.$class_name.".ph

RE: [PHP] Adding includes to files

2004-04-22 Thread Robert Sossomon
OK, so I figured out where it was barfing. I looked deeper into the log files as well as the generated pages, and found that somewhere the path to the include files had become mangled, and the reason the files weren't showing correctly in the HTML pages in the browser was because it couldn't find

RE: [PHP] Adding includes to files

2004-04-22 Thread Robert Sossomon
Output buffering isn't going to help, the files, when completed need to look like: Categories of Items Html content If all I was trying to do was pull in the files I could do that without a problem, but what I need to do is generate the whole page with the information. I attached the

RE: [PHP] Remove white space?

2004-04-22 Thread Chris W. Parker
Robert Sossomon on Thursday, April 22, 2004 7:51 AM said: > I am pulling data from a MySQL DB and I need to remove the whitespace > on the variable and turn it to lowercase. remove whitespace *on* the variable?? i don't get it. chris. -- PHP General Mailing Li

Re: [PHP] PHP vs PERL? HOPE THIS HELPS

2004-04-22 Thread Brent Clark
>That's a really interesting link. Thanks! No problem, my pleasure I was quite shocked to see how PHP performed gcc still rocks though Brent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding includes to files

2004-04-22 Thread Richard Harb
You could either include the files without assigning the contents to a variable - but that would display those right away: or you could read the contents of the file like: Richard Thursday, April 22, 2004, 5:12:21 PM, thus was written: > I need to add PHP calls to include a file to e

Re: [PHP] A to Z incremental

2004-04-22 Thread John W. Holmes
From: "Paul" <[EMAIL PROTECTED]> > for($i='A';$i<='Z';$i++){ echo $i.' | '; } > ?> > > The output is: > A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | > AA | AB | AC | > ... > YX | YY | YZ | > > where is should display only letters fr

[PHP] Safe mode effect

2004-04-22 Thread Ravi kumar
HI, goole.com found so many details about safe mode too much to understand. My hosting provider set php safe mode = enable . so iam unable to use so many scripts . can any one give good free image gallery software which will work under safe mode = enable . is it true that with apache 2.x ve

Re: [PHP] Mathematical expression calculation function?

2004-04-22 Thread John W. Holmes
From: "Enfors Christer" <[EMAIL PROTECTED]> > Hi. I need a function that takes a mathematical expression > in the form of a string, and calculates the result. PHP itself > doesn't seem to provide one. I need something which can > handle strings like: > > 10*73.2+3-(4*358.2874)/352 $str = "10*73

[PHP] PHP vs PERL - thanks

2004-04-22 Thread peery
Got a lot of good replies, and info! Thanks, JP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding includes to files

2004-04-22 Thread John W. Holmes
From: "Robert Sossomon" <[EMAIL PROTECTED]> > I need to add PHP calls to include a file to each page as it is > generated, the only thing is I can't get the includes to come through > correctly: > > >$display_block .= ""; >$display_block .= ""; > > > At the end of the generation I writ

[PHP] Adding includes to files

2004-04-22 Thread Robert Sossomon
I need to add PHP calls to include a file to each page as it is generated, the only thing is I can't get the includes to come through correctly: $display_block .= ""; $display_block .= ""; At the end of the generation I write $display_block to a file as $display_block holds all the data i

  1   2   >