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] 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

[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

[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

[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 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

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.

[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 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] 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] 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] 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] 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

[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] 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 >

[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] 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

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

[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] 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

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

[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

[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] 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

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

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: 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] 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

[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

[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] 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

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

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

[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] 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

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] 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] 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 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

[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] 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] 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] 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: 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

[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

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

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

[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] 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] 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

[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] 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] [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

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] 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] 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] [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] 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] 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] 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

<    1   2