[PHP] function for backing up mysql

2004-04-14 Thread Victor Spång Arthursson
Hi! Wonder if anyone knows if there somewhere "out there" are any good functions that streams out data from mysql as a sql-file, like phpmyadmin does? The best would be one which I told which database and which tables to dump, and which directly stared streaming the data… Sincerely Victor --

RE: [PHP] function for backing up mysql

2004-04-14 Thread Hawkes, Richard
PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Thanks Richard -Original Message- From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED] Sent: 14 April 2004 08:52 To: [EMAIL PROTECTED] Subject: [PHP] function for backing up mysql H

Re: [PHP] function for backing up mysql

2004-04-14 Thread Victor Spång Arthursson
2004-04-14 kl. 09.57 skrev Hawkes, Richard: PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Yes, and it is the same functionability I want. But I want a php-function to implement in various scripts I have, and since I probably aint t

[PHP] Single HTML form post affecting multiple HTML frames/PHP scripts

2004-04-14 Thread Richard Lewis
I am writing a database front end in PHP for a record library. My interface is divided into several HTML frames the first of which contains an HTML select element listing all of the top-level records (CDs) and several buttons to perform certain operations on the selected record (e.g. delete, edit

RE: [PHP] Single HTML form post affecting multiple HTML frames/PH P scripts

2004-04-14 Thread Hawkes, Richard
> So is there a way of making a single form post affect two scripts in > different HTML frames? Or a way of posting values from the second frame to > the third automatically (i.e. without the user clicking an HTML 'submit' > button)? Yes there is, and it's JavaScript! You'd need to get familiar wi

Re: [PHP] function for backing up mysql

2004-04-14 Thread Burhan Khalid
Victor Spång Arthursson wrote: 2004-04-14 kl. 09.57 skrev Hawkes, Richard: PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Yes, and it is the same functionability I want. But I want a php-function to implement in various scripts I hav

Re: [PHP] Single HTML form post affecting multiple HTML frames/PHP scripts

2004-04-14 Thread Tom Rogers
Hi, Wednesday, April 14, 2004, 6:57:53 PM, you wrote: RL> I am writing a database front end in PHP for a record library. RL> My interface is divided into several HTML frames the first of which contains RL> an HTML select element listing all of the top-level records (CDs) and RL> several buttons

Re: [PHP] PHP time zone

2004-04-14 Thread David Robley
[EMAIL PROTECTED] (Tom Rogers) wrote in news:[EMAIL PROTECTED]: > I have this in an auto_prepend file or you can put it before using any > of the date() functions > > putenv('TZ=Australia/Brisbane'); > But, but, that'll put the clock back 20 years and then add 30 minutes to Central Standard

Re: [PHP] function for backing up mysql

2004-04-14 Thread Victor Spång Arthursson
2004-04-14 kl. 11.26 skrev Burhan Khalid: Just redirect the output from mysqldump. mysqldump -u username -ppassword database > dump.sql and then send that dump.sql file. Or, you can just read the output from the mysqldump command directly, using output buffering to make sure your script doesn'

Re: [PHP] Single HTML form post affecting multiple HTML frames/PHP scripts

2004-04-14 Thread Richard Lewis
Tom Rogers wrote: > Hi, > > Wednesday, April 14, 2004, 6:57:53 PM, you wrote: > RL> So is there a way of making a single form post affect two scripts in > RL> different HTML frames? Or a way of posting values from the second > frame to RL> the third automatically (i.e. without the user clicking a

[PHP] Re: function for backing up mysql

2004-04-14 Thread Kim Steinhaug
Take a look at phpclasses.org Last week there also came another class especially made for backups aswell if I recall. -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those who understand them

Re: [PHP] remote files handling

2004-04-14 Thread Marek Kilimajer
Red Wingate wrote: http://de.php.net/filemtime [quote] As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix J for a listing of which wrappers support stat() family of functionality. [/quote] -- red As you likely don't have PHP5 installed, use fsockopen, file

[PHP] preg_match

2004-04-14 Thread Sorry Confidential
Hi, I'm trying to parse a POstfix queue file to extract a few informations. The Postfix queue file is a binary file. Here is an extract of the file, not a line, just an extract: N^WFrom: <[EMAIL PROTECTED]>N^[To: <[EMAIL PROTECTED]>N#Subject: Test 14 2004-04-13 15:13N%Date: Tue, 13 Apr 2004 15:

[PHP] preg_match

2004-04-14 Thread Sorry Confidential
Hi, I'm trying to parse a Postfix queue file to extract a few informations. The Postfix queue file is a binary file. Here is an extract of the file, not a line, just an extract: N^WFrom: <[EMAIL PROTECTED]>N^[To: <[EMAIL PROTECTED]>N#Subject: Test 14 2004-04-13 15:13N%Date: Tue, 13 Apr 2004 15:

[PHP] preg_match

2004-04-14 Thread Sorry Confidential
Hi, I'm trying to parse a POstfix queue file to extract a few informations. The Postfix queue file is a binary file. Here is an extract of the file, not a line, just an extract: N^WFrom: <[EMAIL PROTECTED]>N^[To: <[EMAIL PROTECTED]>N#Subject: Test 14 2004-04-13 15:13N%Date: Tue, 13 Apr 2004 15:

[PHP] PHP5 wont load into Apache

2004-04-14 Thread electroteque
Hi there I am running Apache 2 with PHP5 on solaris 9. I keep getting this error when I am loaded into my console xmlCanonicPath: referenced symbol not found , although apache boots up on startup without a hitch, is there a paths problem ? -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: smarty

2004-04-14 Thread pete M
Moving our sites to smarty is the best thing we've done at our company... I do the php/database coding (logic) the html designer does the templates/css and the graphic designer does his bit. What's fantastic is that we never ever tread on each other files whilst working on a project, unlike derea

RE: [PHP] PHP5 wont load into Apache

2004-04-14 Thread electroteque
Here is the full details bash-2.05# ldd libphp5.so libmcrypt.so.4 =>/usr/local/lib/libmcrypt.so.4 libltdl.so.3 => /opt/csw/lib/libltdl.so.3 libiconv.so.2 => /usr/local/lib/libiconv.so.2 libpng.so.3 => /opt/csw/lib/libpng.so.3 libz.so =>

Re: [PHP] preg_match

2004-04-14 Thread John W. Holmes
From: "Sorry Confidential" <[EMAIL PROTECTED]> > I'm trying to parse a Postfix queue file to extract a few informations. The > Postfix queue file is a binary file. > > Here is an extract of the file, not a line, just an extract: > N^WFrom: <[EMAIL PROTECTED]>N^[To: <[EMAIL PROTECTED]>N#Subject: Te

Re: [PHP] function for backing up mysql

2004-04-14 Thread John W. Holmes
From: "Victor Spång Arthursson" <[EMAIL PROTECTED]> > Wonder if anyone knows if there somewhere "out there" are any good > functions that streams out data from mysql as a sql-file, like > phpmyadmin does? > > The best would be one which I told which database and which tables to > dump, and which d

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
pete M said: > Moving our sites to smarty is the best thing we've done at our company... Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as mostly (not always) redundant. See my post where I learned that PHP makes a great templating engine: http://marc.theaimsgroup.com/?l=php

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
what about the modifiers capitalize count_characters cat count_paragraphs count_sentences count_words date_format default escape indent lower nl2br regex_replace replace spacify string_format strip strip_tags truncate upper wordwrap and the functions capture config_load foreach,foreachelse includ

[PHP] ereg-replace ... how to catch :'( [crying smiley] ???

2004-04-14 Thread -{ Rene Brehmer }-
I'm trying to do graphical smileys for my guestbook, but I've run into a problem with the crying smilies: I need to replace :'( and :'-( ... or as they look in the post after being entered through htmlentities with ent_quotes on: :'( :'-( this causes the entire message to disappear: $text = er

RE: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???

2004-04-14 Thread Jay Blanchard
[snip] :'( :'-( this causes the entire message to disappear: $text = ereg_replace(':'-?(','',$text); [/snip] Have you tried any of the other regular expression functions available? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function for backing up mysql

2004-04-14 Thread Enrico Weigelt
* Victor Spång Arthursson <[EMAIL PROTECTED]> [2004-04-14 11:55:13 +0200]: > But? the database is on a hotel to which I have no remote access to > mysql? My client want to be able to click a link and get a "backup > file" in return? > > Is it possible to redirect the output from mysqldump usin

[PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread -{ Rene Brehmer }-
Never mind y'all ... me stupid ... obviously the ( has meaning, and needs to be escaped ... was starting to think it could only do 2 ereg's in 1 script *sigh* Sorry for wasting time and bandwidth ... the function now looks like this and works : function gfx_smiley($text) { $smiley_path = 'sm

Re: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 12:51:20 AM, you wrote: RB> Never mind y'all ... me stupid ... RB> obviously the ( has meaning, and needs to be escaped ... was starting to RB> think it could only do 2 ereg's in 1 script *sigh* RB> Sorry for wasting time and bandwidth ... the function now looks lik

RE: [PHP] Re: Need help

2004-04-14 Thread Ford, Mike [LSS]
On 09 April 2004 16:39, Strogg wrote: [snip original problem for which a fix has been posted] > $taxrate = 0.175; //local tax rate in UK is 17.5% You should note that UK VAT is always rounded *down*, so that this: > $totalamount = $totalamount * (1 + $taxrate); should be something like:

RE: [PHP] Finding value in multi-dimensional array - Solved

2004-04-14 Thread Ford, Mike [LSS]
On 10 April 2004 02:21, Verdon Vaillancourt wrote: > Hi, > > Thanks much to Richard and Andy for the input :) This one > did the job... > > if($_SESSION['OBJ_user']->modSettings['listings']['active'] == '1') { > > I'm still not entirely sure I understand the syntax ;) Well, by relating back t

RE: [PHP] Most bizarre date problem ever

2004-04-14 Thread Ford, Mike [LSS]
On 10 April 2004 16:11, Brian Dunning wrote: > Check this out: I'm returning a list of the last 30 days, looping > through i, subtracting it from $end_date where $end_date is 2004-04-10 > 00:00:00. I'm just trying to derive a timestamp $check_date for each > iteration, like 1081321200. Here's the

Re: [PHP] Re: smarty

2004-04-14 Thread Vicente Werner
El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: > pete M said: > > Moving our sites to smarty is the best thing we've done at our company... > > Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as > mostly (not always) redundant. See my post where I learned that PHP

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
pete M said: > what about the modifiers > How would you code that lot and remember its ALL to do with presentation ? I mentioned this. Take another look at my post: http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=2 "[By using only PHP], At worst [I lose] some of the nice Smarty f

Re: [PHP] Most bizarre date problem ever

2004-04-14 Thread Brian Dunning
On Apr 14, 2004, at 7:25 AM, Ford, Mike [LSS] wrote: Because of such problems, you should never use a time anywhere near the DST hour-change when you are calculating consecutive dates, and most especially not a time that could conceivably be shifted into the adjacent day (i.e. 00:00-00:59) It w

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Vicente Werner said: > > http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=2 > Ugh that's not just fuckingly ugly, but a total doom to maintain over the > time -two months without touching the code and you're absolutely lost- . > It maybe faster, it maybe a bit simpler since you only

Re: [PHP] Re: smarty

2004-04-14 Thread Justin French
On 14/04/2004, at 11:38 PM, pete M wrote: How would you code that lot and remember its ALL to do with presentation ? You must remember, Smarty is just a layer over PHP. All the functions that you've listed exist in pure PHP code somewhere. It would relatively easy to code equivalent templates

Re[2]: [PHP] smarty

2004-04-14 Thread Richard Davey
Hello Chris, Wednesday, April 14, 2004, 3:35:05 PM, you wrote: CdV> I don't understand... how is this: [snip] CdV> Better than this? CdV> = CdV> $result = mysql_query ("SELECT * FROM users WHERE id = '".$_GET["id"]."'); CdV> $row_array = mysql_fetch_array ($result); CdV> $name

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Think everyone is missing the point.. the whole point of smarty is to take the presentation code away from the logic Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in

Re: [PHP] Re: smarty

2004-04-14 Thread Kelly Hallman
Apr 14 at 9:33am, Chris de Vidal wrote: > pete M said: > > Moving our sites to smarty is the best thing we've done at our company. > > Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as > mostly (not always) redundant. see my post where I learned that PHP > makes a great temp

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Kelly Hallman said: > I don't recall anyone ever advancing the notion that Smarty turned PHP > into something more than it was before. By definition it is merely a layer > that makes your life as a developer easier. A tool! Yeah but in my ignorance that's what I thought, and I realized I probably

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
pete M said: > Think everyone is missing the point.. > the whole point of smarty is to take the presentation code away from the > logic No, I understood that point. It's why I started using Smarty. Take another look at what I said: http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Justin French said: > You must remember, Smarty is just a layer over PHP. All the functions > that you've listed exist in pure PHP code somewhere. It would > relatively easy to code equivalent templates in PHP. > > Taking some random examples from your list: I believe Smarty users would say "Ye

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
well said kelly !!! > So if we're trying to say that you don't need Smarty to make a simplistic > template, I think even the most diehard Smarty fanatic will agree. It just > sounds a lot like people who don't really see the power of Smarty, saying > that it's got no power and no benefit. That is

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Actually where it =really speeds thing up is the prototype/research/planning etc We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That stuff then gets coded. Doddle Pete Vicente Werner wrote: El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: pete M said: Moving

Re: [PHP] Re: smarty

2004-04-14 Thread John W. Holmes
From: "pete M" <[EMAIL PROTECTED]> > Think everyone is missing the point.. > the whole point of smarty is to take the presentation code away from the > logic Correct. The point your missing is that PHP can be on both sides of the equation. You can have PHP in your templates that only controls you

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Richard Davey said: > CdV> I don't understand... how is this: > [snip] > CdV> Better than this? > CdV> = > CdV> $result = mysql_query ("SELECT * FROM users WHERE id = > '".$_GET["id"]."'); > CdV> $row_array = mysql_fetch_array ($result); > CdV> $name= $row_array["name"]; > CdV>

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* pete M <[EMAIL PROTECTED]> [2004-04-14 13:50:19 +0100]: > Moving our sites to smarty is the best thing we've done at our company... > > > I do the php/database coding (logic) > the html designer does the templates/css > and the graphic designer does his bit. I really don't like smarty. The id

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
pete M said: > We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That > stuff then gets coded. I agree, and I'm saying you can also do that with native PHP. I plan on doing that with the next site I build. Then if I see that it makes sense to use Smarty I will, but you can mock

Re: Re[2]: [PHP] smarty

2004-04-14 Thread John W. Holmes
From: "Richard Davey" <[EMAIL PROTECTED]> > Because you're injecting variables directly into your HTML, which some > of the time might be ok - but what if the $row_array doesn't contain > "name" ? You'll raise an Error Warning without first passing it > through some kind of test (or function). On

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 10:30:53 -0400]: > So there are alternatives to what Smarty offers, but I also said "I just > see them [template engines] as another tool." It's a tool; use it where I can't agree here. Template engines (in the sense we're talking here - for se

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Justin French <[EMAIL PROTECTED]> [2004-04-15 00:37:41 +1000]: > You must remember, Smarty is just a layer over PHP. All the functions > that you've listed exist in pure PHP code somewhere. It would > relatively easy to code equivalent templates in PHP. Yes, you're right. But then it shoul

Re: [PHP] Re: smarty

2004-04-14 Thread Tim Traver
Enrico, Actually, you can use smarty in a way that solves those issues. Simply do not include the logic features of smarty in your templates. That way, the only thing included in the templates is html, and {$variables}. Then your web designers don't need to learn anything. The problem that you

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 11:33:56 -0400]: > Naww... I'd been using Smarty for several weeks now because I thought the > only alternative to spaghetti code was Smarty, but recently I realized > that it's not, and that simple example shows it. I didn't realize I had > anoth

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Enrico Weigelt said: > I really don't like smarty. The idea is simply not right. It's a good idea; in fact, PHP was originally supposed to be a templating engine. You can easily separate business and presentation logic in either PHP or Smarty. > + does not separate (imperative) code from layout.

Re: [PHP] smarty

2004-04-14 Thread Vicente Werner
mmm some points: 1st. Clarity. It's much more clear to me to take a look at a template and identify a subsituing variable when it's marked as something different like: {$var} than the uglyness of -and if you follo the recommended way: 2nd. As other users pointed, error handling. 3th. Lac

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Peter Morgan said: >>>We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That >>>stuff then gets coded. >> >>I agree, and I'm saying you can also do that with native PHP. >>I plan on doing that with the next site I build. Then if I see that it >>makes sense to use Smarty I will, b

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Tim Traver <[EMAIL PROTECTED]> [2004-04-14 09:00:24 -0700]: >Actually, you can use smarty in a way that solves those issues. Not without putting much code around smarty. > Simply not include the logic features of smarty in your templates. But how can I really prevent the one who writes t

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Vicente Werner said: > mmm some points: > > 1st. Clarity. It's much more clear to me to take a look at a template and > identify a subsituing variable when it's marked as something different > like: > {$var} than the uglyness of -and if you follo the recommended > way: > Tomay-toe, toh-mah-toe.

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 12:11:31 -0400]: > Hey PHP/Smarty templates aren't for everyone. No one said they were. But > for my next project I believe I'll be using native PHP as a template > engine. Well, I'm a little bit "unpolite" against smarty, since it seems that p

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
>> + bound to the php-interpreter and cannot be used w/ other languages. this point is completely invalid... Haame me any other templating system that can be used across diffeerent languages ?? + content rendering process cannot be separated from the application > server. ITS NOT AN APPLICATION

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Enrico Weigelt said: > Well, I'm a little bit "unpolite" against smarty, since it seems > that people tend to see it as "the best" (tm) and ignore other, > probably better solutions. (its the same thing w/ mysql or mailman) I'm "unpolite" against Smarty because I used to think PHP couldn't *easily

[PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
Any help with this would be appreciated. the p and v lnames are posted from a form. In the form, the user seperates last names with a "/". What I can't understand is why Test1 shows as nothing, while Test2 shows the value I wanted. Thanks a lot! $p_lnames= explode("/", $p_lnames); $_SESSION['el

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 9:40 AM said: > What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! [snip] > $_SESSION['element_countp'] = count($p_lnames); > echo "TEST 1".$element_countp; > > $element_co

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Ford, Mike [LSS]
On 14 April 2004 17:40, BOOT wrote: > Any help with this would be appreciated. the p and v lnames are > posted from a form. In the form, the user seperates last names with a > "/". What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! > > >

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Paul Fine
Thanks guys but I have register globals ON so once the session variable is defined I should be able to address it without specifying $_SESSION ? -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 11:48 AM To: BOOT; [EMAIL PROTECTED] Subject: RE: [PHP]

[PHP] quickie survey

2004-04-14 Thread Dennis Gearon
I am doing a site where some of the pages will show various hours of some businesses. To make life easier for searching for open businesses PER DAY, I have pretty much decided to make an arbitrary dat-to-day boundary, instead of the usual midnight boundary. Some businesses that this applies to

Re: Re[2]: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* John W. Holmes <[EMAIL PROTECTED]> [2004-04-14 11:57:00 -0400]: > You're relying on web-server writable directories when you use Smarty. > It's all a trade-off. This gets problematic in multi-user environments. You cant use mod_php anylonger, instead you have to switch to slow cgi+suexec. Ok

[PHP] Mail Functions on File

2004-04-14 Thread Daryl Meese
Hello all, Is it possible to use the imap functions on a file instead of opening a mail box via imap_open? I have create virtual users and am having a large amount of difficulty getting authentication to work. Since they will be checking their email through our software, and have already auth

Re: [PHP] smarty

2004-04-14 Thread Curt Zirzow
:0 * ^Subject: Re: smarty /dev/null Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] smarty

2004-04-14 Thread Richard Davey
Hello John, Wednesday, April 14, 2004, 4:57:00 PM, you wrote: JWH> Only if you have error_reporting() set high. If you have a PHP templating JWH> solution, you'd turn error_reporting() down when you included the PHP JWH> templates so you didn't get a warning. John I'm shocked - of all people I w

Re: [PHP] smarty

2004-04-14 Thread pete M
Curt Zirzow wrote: :0 * ^Subject: Re: smarty /dev/null Curt agreed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php and mysql help

2004-04-14 Thread webmaster
Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you.

Re: [PHP] php and mysql help

2004-04-14 Thread Curt Zirzow
* Thus wrote webmaster ([EMAIL PROTECTED]): > Hello i need help with mysql_create_db i found the solution once but cant remember > what it was if someone could tell me the proper way to create a database with php > and mysql i would be greatly thankfull. You just need to issue a create database

RE: [PHP] php and mysql help

2004-04-14 Thread Jay Blanchard
[snip] Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you. [/snip] http://www.php.net/mysql_create_db You're welcome. -- PHP General

[PHP] setcookie statements are giving me error

2004-04-14 Thread Ryan Schefke
I'm trying to set multiple cookies and getting the error below. I removed all of the white spaces and extra lines before and after my , so, that shouldn't be an issue. I get the error for each cookie and it echoes back as "...cookie not set" like I coded. This is the code chunk I'm trying to r

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Dennis Gearon
"'Chris W. Parker'" <[EMAIL PROTECTED]> elucidated: Thanks guys but I have register globals ON so once the session variable is defined I should be able to address it without specifying $_SESSION ? WHERE do you have it on? Most sites now have it turned off for VERY valid security reasons. If you

[PHP] WIERD list behavior

2004-04-14 Thread Dennis Gearon
When I make a posting to this list, I get an email like below: --- Subject: Thank you From: "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> Date: Wed, 14 Apr 2004 12:03:35 -0700 To: Dennis Gearon <[EMAIL PROTECTED]> ADVANCE CREDIT SUISSE

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
Yes in php.ini. I never bothered turning off as (a) I did not take the time to understand the implications and (b) my project is only for internal network use anyway. So I went and turned them off. Now of course my pages don't work properly. I guess I have to go through all my code and address the

[PHP] Junk characters in e-mail

2004-04-14 Thread Anders Norrbring
Hi! First of all, I have no idea if my problem is php or Postfix related, thus the cross-post. Every e-mail sent out from my server by a php script ends with a string of junk characters, they're not the same from different scripts and of course not to be found anywhere in the code. Example:

Re: [PHP] setcookie statements are giving me error

2004-04-14 Thread Curt Zirzow
* Thus wrote Ryan Schefke ([EMAIL PROTECTED]): > > cannot modify header errors, which tells me there's nothing wrong with my > main script. Am I doing something wrong with cookies here? > > "Warning: Cannot modify header information - headers already sent by." You're missing the most import

RE: [PHP] Junk characters in e-mail

2004-04-14 Thread Jay Blanchard
[snip] First of all, I have no idea if my problem is php or Postfix related, thus the cross-post. Every e-mail sent out from my server by a php script ends with a string of junk characters, they're not the same from different scripts and of course not to be found anywhere in the code. Example:

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:17 PM said: > So I went and turned them off. Now of course my pages don't work > properly. I guess I have to go through all my code and address the > variables properly ie. $_POST and $_SESSION? no. just assign them at the begin

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
But if I want to use $username accross many pages then I will have to make it a session variable and call it as such on each page like "$_SESSION['username']" Thanks again! "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] BOOT on Wedne

RE: [PHP] Junk characters in e-mail

2004-04-14 Thread Anders Norrbring
> [snip] > First of all, I have no idea if my problem is php or Postfix related, thus > the cross-post. > > Every e-mail sent out from my server by a php script ends with a string of > junk characters, they're not the same from different scripts and of course > not to be found anywhere in the code

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:37 PM said: > But if I want to use $username accross many pages then I will have to > make it a session variable and call it as such on each page like > "$_SESSION['username']" correct. c. -- PHP General Mailing List (http://

RE: [PHP] WIERD list behavior

2004-04-14 Thread Chris W. Parker
Dennis Gearon on Wednesday, April 14, 2004 12:08 PM said: > When I make a posting to this list, I get an email like below: just ignore it. this list seems to be plagued with illegitimate auto-replys. but i guess that's sort of an oxymoron isn't it? chris. -- PH

RE: [PHP] setcookie statements are giving me error

2004-04-14 Thread Ryan Schefke
Curt, Thanks. That was the issue. Am I allowed to redirect directly below the setcookie functions using "header ('Location" Thanks, Ryan == -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Wednesda

[PHP] patTemplate

2004-04-14 Thread Enrico Weigelt
BTW: is there anyone (beside me) who uses patTemplate ? cu -- - Enrico Weigelt== metux IT services phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: [

[PHP] unexpected $ in ... WTF?

2004-04-14 Thread Brian V Bonini
Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 146: 147: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread John Nichel
Brian V Bonini wrote: Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 146: 147: Your error is going to be somewhere above that in the script. Forgot a semi-colon, closing bracket/brace/etc, etc. -- ***

[PHP] Re: Command line include path?

2004-04-14 Thread Justin Patrin
Mike Zornek wrote: I'm getting started with PEAR's DB_DataObject and am trying to follow along with the tutorial: http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.p hp It tells me to create the ini file (which I did) and then run createTables.php from the command line to

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread Daniel Clark
What about line 148 the "{" ... supposed to be there? > Brian V Bonini wrote: >> Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 >> >> 146: >> 147: > 148: } >> 149: include "foobar.inc.php4"; >> 150: ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread John W. Holmes
From: "Brian V Bonini" <[EMAIL PROTECTED]> > Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 > > 146: > 147: 148: } > 149: include "foobar.inc.php4"; > 150: ?> You missed a closing bracket or quote somewhere. ---John Holmes... -- PHP General Mailing List (http://www.

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread Curt Zirzow
* Thus wrote Brian V Bonini ([EMAIL PROTECTED]): > Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 You're missing a } somewhere. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] patTemplate

2004-04-14 Thread Adrian Madrid
Enrico Weigelt wrote: BTW: is there anyone (beside me) who uses patTemplate ? cu I'm not currenlty using pattemplate but I would like to test it. What's the status? Looking at the website it shows 2.5 as unstable and CVS looks like is a full rewrite. Should I test 2.4, 2.5 or 3.0 (CVS)? Tha

Re: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread -{ Rene Brehmer }-
At 15:02 14-04-2004, Tom Rogers wrote: Hi, Thursday, April 15, 2004, 12:51:20 AM, you wrote: RB> Never mind y'all ... me stupid ... RB> obviously the ( has meaning, and needs to be escaped ... was starting to RB> think it could only do 2 ereg's in 1 script *sigh* RB> Sorry for wasting time and ban

[PHP] Re: php and mysql help

2004-04-14 Thread Eric Bolikowski
"Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you. -- PHP

[PHP] Looking for good Mail List Manager

2004-04-14 Thread James Marcinek
Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th

Re: [PHP] Looking for good Mail List Manager

2004-04-14 Thread Joshua D. Drake
Mailman James Marcinek wrote: Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center -

[PHP] Re: Looking for good Mail List Manager

2004-04-14 Thread Justin Patrin
James Marcinek wrote: Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center - File onl

[PHP] PHP and Oracle RAC

2004-04-14 Thread Kevin O'Brien
Has anyone succesfully got PHP and Oracle Real Application Cluster (RAC) working together? -=Kevin=- - Do you Yahoo!? Yahoo! Tax Center - File online by April 15th

  1   2   >