Re: [PHP] Image Header Problems

2004-01-13 Thread Bob Eldred
- Original Message - > function showpix($picture_id) > { > $sql="SELECT ug.group_name, p.name from usenet_groups as ug, > pictures as p WHERE p.id='$picture_id' AND ug.id=p.group_id"; > $result=mysql_query($sql) or die(mysql_error()); > $row=mysql_fetch_ar

[PHP] class functions where the function name == class name

2004-01-13 Thread Glenn Yonemitsu
Hey there guys I just started trying out with writing classes. I've been looking at a lot of PEAR class files and noticed this: class classname { function classname() { } } I know that "$object = new classname;" will automatically run $object->classname();. But is it neccessary for every c

Re: [PHP] class functions where the function name == class name

2004-01-13 Thread Richard Davey
Hello Glenn, Tuesday, January 13, 2004, 7:36:18 AM, you wrote: GY> I know that "$object = new classname;" will automatically run $object->>classname();. But is it neccessary for every class to have this GY> function? I read all these scripts and they all have them. I made one GY> simple database

[PHP] Sending session ID without cookie

2004-01-13 Thread Børge Strand
Hi, I'm trying to send my session ID using POST/GET auto-inserted by PHP. This works like a charm in a .php file. But in a .cgi file, a new PHPSSID appears in the Address field of my browser every time I follow the link from the file to itself. What may be causing this? I have had some big prob

[PHP] Accessing a website from within a php script

2004-01-13 Thread Børge Strand
Hi, In my php code, how can I fetch the input from another website and parse its output without sending it to the client? What I want to do is this: My php program uses sends send some information to a .cgi file possibly on a different site. That file uses GET to fetch the information and print

Re: [PHP] Sending session ID without cookie

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 9:54:27 AM, you wrote: BS> I'm trying to send my session ID using POST/GET auto-inserted by PHP. BS> This works like a charm in a .php file. But in a .cgi file, a new BS> PHPSSID appears in the Address field of my browser every time I follow BS> the link fr

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Burhan Khalid
Børge Strand wrote: Hi, In my php code, how can I fetch the input from another website and parse its output without sending it to the client? What I want to do is this: My php program uses sends send some information to a .cgi file possibly on a different site. That file uses GET to fetch the in

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 10:05:10 AM, you wrote: BS> My php program uses sends send some information to a .cgi file BS> possibly on a different site. That file uses GET to fetch the BS> information and prints it out as it would if accessed through a BS> browser. But instead I want

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Børge Strand
Thanks Richard, > BS> My php program uses sends send some information to a .cgi file > BS> possibly on a different site. That file uses GET to fetch the > BS> information and prints it out as it would if accessed through a > BS> browser. But instead I want my php program to intercept this and par

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 10:32:08 AM, you wrote: BS> Do you see something that it obviously wrong here? You need to loop through the data as it comes back from the fopen function. ' . "\n"; print 'test6.php'; $fp = fopen("http://www.boggle.no/message.txt";, "rb");

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Stuart
Børge Strand wrote: Here's what I do next with it. Only now this file (www.boggle.no/test6.php) times out in the brower. Do you see something that it obviously wrong here? ' . "\n"; print 'test6.php'; $fp = fopen("http://www.boggle.no/message.txt";, "r"); $contents = fread($fp); pr

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Børge Strand
Hi Richard, thaks for clarifying that to me. The only problem now is that I get a timeout in my script because fopen() failed to open the stream. I have checked that the address is okay. I manage to open another site, but not this file which is on my ISP. Actually, manual telnet to port 80 of m

[PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
Hi List, I have a self-made function that uses a MySql statement something like this: Function MyFunc(){ sql = mysql_query("select * from table where somefield=\"somevar\""){ while(blah blah){ $var ="blah blah"; } } return $blah; } This works ok but if I add a bit to the sql then I ge

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 12:19:24 PM, you wrote: BS> thaks for clarifying that to me. The only problem now is that I get a BS> timeout in my script because fopen() failed to open the stream. You can increase the timeout limit of a script. If you cannot be sure the other web site

Re: [PHP] session expires

2004-01-13 Thread Andreas Magnusson
"John W. Holmes" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Andreas Magnusson wrote: > > > Hi, I wonder if anyone knows of a way to detect if a session has expired > > (when your session.cookie_lifetime != 0). > > I've tried to see if the session-vars are unset, but that does

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC> sql = mysql_query("select *, count(id) as cnt from table where DC> somefield=\"somevar\""){ It's nothing to do with your function, simply that your SQL is invalid. -- Best regards, Richardmailto:[E

[PHP] Re: Function Problem (Long-ish)

2004-01-13 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi List, > > I have a self-made function that uses a MySql statement something like this: > > Function MyFunc(){ > sql = mysql_query("select * from table where somefield=\"somevar\""){ > while(blah blah){ > $var ="blah blah"; >

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread CPT John W. Holmes
From: "Dave Carrera" <[EMAIL PROTECTED]> > I get a Warning: > mysql_fetch_array(): supplied argument is not a valid MySQL result resource Whenever you get this warning it's because your query failed for some reason and you're trying to use a result that's not valid. Use mysql_error() to see wha

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Jason Wong
On Tuesday 13 January 2004 20:34, Dave Carrera wrote: [snip] > My Question is Why ? > > Any help is a appreciated and I thank you fully in advance. You're not checking for errors. Incorporate error checking code and make use of mysql_error(). -- Jason Wong -> Gremlins Associates -> www.gremli

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
Thanks for the reply Richard. If I use this sql in my func: $sql = mysql_query("select count(fieldtocount) as cnt, sum(fieldforsum) as total from $tab3 where fieldtocompare =\"$varcomparedwith\""); Then all is fine and works as expected. If I then add: $sql = mysql_query("select fieldtoselect,

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Vincent Jansen
I doubt that... MySQL says: Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause --- Vincent Jansen -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: dinsdag 13 januari 2004 13:58 To: 'Richard Davey' Cc: [E

[PHP] Week calculating

2004-01-13 Thread nabil
Greetings; I need a help here ... I want to make function that return the dates of Tuesdays in a given year Example:: Calc_Tuesdays (2004); //and it should return or echo 2004-01-06 2004-01-13 2004-01-20 2004-01-27 2004-02-03 . . etc ofcourse it should echo 5 Tuesdays in March by example

Re[2]: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:57:35 PM, you wrote: DC> If I use this sql in my func: DC> $sql = mysql_query("select count(fieldtocount) as cnt, sum(fieldforsum) as DC> total from $tab3 where fieldtocompare =\"$varcomparedwith\""); DC> Then all is fine and works as expected. Is this

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
I think this a lesson to me and anyone else to make more use of mysql_error() in sql statements. I soon as I saw the Engishized explanation via mysql_error() it was obvious and easy to fix. Note to self: Use mysql_error() as standard ;-) I humbly thank you all for you help. Dave C -Origin

[PHP] Re: Week calculating

2004-01-13 Thread nabil
sorry but what do u think about this ? ".$daterest.""; } } } ?> the problem that it outputs 6 weeks in March ... why ? "Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings; > > I need a help here ... I want to make function that return the dates of > Tu

Re: [PHP] Week calculating

2004-01-13 Thread Tom Rogers
Hi, Tuesday, January 13, 2004, 11:07:05 PM, you wrote: n> Greetings; n> I need a help here ... I want to make function that return the dates of n> Tuesdays in a given year n> Example:: n> Calc_Tuesdays (2004); n> //and it should return or echo n> 2004-01-06 n> 2004-01-13 n> 2004-01-20 n> 2004-

Re: [PHP] Re: Week calculating

2004-01-13 Thread Jason Wong
On Tuesday 13 January 2004 21:29, nabil wrote: > sorry but what do u think about this ? > > for ($j=1;$j<13;$j++) { >for ($i=1;$i<32;$i++) { >$mk = mktime(0, 0, 0, $j, $i, 2004); >$datex = date ("l", $mk); >$daterest = date ("j/n/Y", $mk); >if ($datex == "Tuesda

[PHP] Re: Week calculating

2004-01-13 Thread memoimyself
A quick idea that can probably be perfected: 2050 ) { return false; } $ini_date = mktime(0, 0, 0, 1, 1, $year); // Jan. 1 $end_date = mktime(0, 0, 0, 12, 31, $year); // Dec. 31 // The array to be returned.

[PHP] Re: session expires

2004-01-13 Thread Manuel Vázquez Acosta
A tricky way to achive this is: 1. Start the session when the user request the login page 2. Send a hidden field with the PHPSESSID 3. When receiving the post compare the current session id with the submitted by the form, if they match it's likely the session has not expired. Other sol

[PHP] Re: Image Header Problems

2004-01-13 Thread Bogdan Stancescu
Bob Eldred wrote: I'm wanting to serve images outside the docroot of apache, so that the images can't be so easily hijacked. However, I appear to be running into a problem with (I think) the headers not being sent properly. IE (v6) will only save the images as BMPs, not as JPGs, even though they

Re: [PHP] Re: session expires

2004-01-13 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: A tricky way to achive this is: 1. Start the session when the user request the login page 2. Send a hidden field with the PHPSESSID 3. When receiving the post compare the current session id with the submitted by the form, if they match it's likely the sessi

[PHP] problem with preg_replace

2004-01-13 Thread Gregor Jaksa
hello, i need to replace some words in file with [tag]word[/tag] and other words with [sample]word[/sample]. i have a list of words which i need to replace with [sample] tags declared like $words = 'word1|word2|word3|word4'; replacing those words is easy i just use preg_replace('/\b( ' . $words .

Re: [PHP] Re: session expires

2004-01-13 Thread Manuel Vázquez Acosta
>"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Manuel Vázquez Acosta wrote: > >> A tricky way to achive this is: >> 1. Start the session when the user request the login page >> 2. Send a hidden field with the PHPSESSID >> 3. When receiving the post compa

RE: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Mike R
> On Mon, 12 Jan 2004, Mike R wrote: > > > i had a problem like the one you descriped. The problem was quite > > > simple. In my case everything worked fine with Windows-Web-Browsers > > > but not with MAC-Browsers. Check the value of the filetype variable. > > > There might be differences betwe

[PHP] Empty Reference to an Object

2004-01-13 Thread Sebastian Ossio
Hi, I´m trying to give an empty reference as a parameter, in a function. Or rather make a parameter that is a reference optional. I have a function that should react differently if it is given an object or not. It works, but it gives me a warning that the second argument is not being given obv

[PHP] Empty reference parameter

2004-01-13 Thread Sebastian Ossio
Hi, I´m trying to give an empty reference as a parameter of a function. Or rather, make a parameter that is a reference optional. I have a function that should react differently if it is given an object or not. It works, but it gives me a warning that the second argument is not being given obv

Re[2]: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Richard Davey
Hello Mike, Tuesday, January 13, 2004, 2:55:44 PM, you wrote: >> In PHP you would set the Content-type header like so: >> header("Content-type: image/jpeg"); MR> So, should I write that header to the actual image file prior to the image MR> itself? You should output it to the browser prior to t

Re: [PHP] Empty Reference to an Object

2004-01-13 Thread Richard Davey
Hello Sebastian, Tuesday, January 13, 2004, 3:09:39 PM, you wrote: SO> I cannot believe that there is no way of making an object parameter SO> optional. function ($parameter1, $parameter2 = NULL) { // etc } If passed to your function, $parameter2 will be your object (or string or whatever you

Re: [PHP] Empty Reference to an Object

2004-01-13 Thread Jimmy Lantz
At 16:14 2004-01-13, you wrote: Hello Sebastian, Tuesday, January 13, 2004, 3:09:39 PM, you wrote: SO> I cannot believe that there is no way of making an object parameter SO> optional. function ($parameter1, $parameter2 = NULL) { // etc } If passed to your function, $parameter2 will be your obje

Re: [PHP] Empty reference parameter

2004-01-13 Thread Tom Rogers
Hi, Wednesday, January 14, 2004, 1:10:53 AM, you wrote: SO> Hi, SO> I´m trying to give an empty reference as a parameter of a function. Or SO> rather, make a parameter that is a reference optional. SO> I have a function that should react differently if it is given an object SO> or not. It works,

[PHP] Pattern Capture

2004-01-13 Thread Cameron B. Prince
Ok, I feel really lame for asking this, but I can I do this in PHP: $userid =~ /([\D]+)/; $baseName = $1; It seems like "Pattern Capture" is not the right term for the similar function in PHP. I'm not sure what to search for. Thanks, Cameron -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Pattern Capture

2004-01-13 Thread Chris Boget
> Ok, I feel really lame for asking this, but I can I do this in PHP: > $userid =~ /([\D]+)/; > $baseName = $1; > It seems like "Pattern Capture" is not the right term for the similar > function in PHP. I'm not sure what to search for. Look at the third argument for the preg_match() function. I b

Re: [PHP] Pattern Capture

2004-01-13 Thread Jason Wong
On Tuesday 13 January 2004 23:27, Cameron B. Prince wrote: > Ok, I feel really lame for asking this, but I can I do this in PHP: > > $userid =~ /([\D]+)/; > $baseName = $1; > > It seems like "Pattern Capture" is not the right term for the similar > function in PHP. I'm not sure what to search for.

[PHP] Newbie question

2004-01-13 Thread James Marcinek
Hello Everyone, I'm new to this so forgive my ignorance. I'm trying to use php with MySQL as a database. I'm using apache 2.0 in addition to Mysql 4.1. I created a simple page (using book to learn) and when I try to go to a simple php script I recieve the following error: Call to undefined func

Re: [PHP] Newbie question

2004-01-13 Thread Richard Davey
Hello James, Tuesday, January 13, 2004, 3:37:17 PM, you wrote: JM> The book I'm learning from had some simple examples pages that I created JM> early on and they work; however this is the first attempt at trying to use JM> php to connect. Post your code (if it's from a book I'm guessing it isn't

RE: [PHP] Newbie question

2004-01-13 Thread Sam Masiello
It appears as if you don't have MySQL support compiled in with your PHP build. If you installed it from source you will want to recompile PHP with the --with-mysql option. I have never installed PHP from RPM though so if you installed it that way, perhaps someone else in the group can provide so

Re: [PHP] permissions with bash scripts in php?

2004-01-13 Thread Jas
Jason Wong wrote: > On Tuesday 13 January 2004 06:46, Jas wrote: > > [Please trim your posts!] > > >>Just tried that and I am getting the same error. I guess what I am >>really looking for is a way to have apache restart the service without >>adding the apache user in the 'sudoers' file. > >

[PHP] Destroy all session data...

2004-01-13 Thread Tristan . Pretty
I've just asked my host to set my session time limit to 30 days... From 0 I'm now running into problems, and I think that destroying all session data sill help... Until I get this sorted, can I kill everyones stored session data? *

Re: [PHP] Destroy all session data...

2004-01-13 Thread Matt Matijevich
[snip] Until I get this sorted, can I kill everyones stored session data? [/snip] How is the session data saved? It is to files, you could just delete all of the session files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroy all session data...

2004-01-13 Thread Tristan . Pretty
I do't know to be honest, how do I find out? (I'm on a unix server) "Matt Matijevich" <[EMAIL PROTECTED]> 13/01/2004 16:11 To <[EMAIL PROTECTED]> cc Subject Re: [PHP] Destroy all session data... [snip] Until I get this sorted, can I kill everyones stored session data? [/snip] How is t

[PHP] PHP sleeps forever

2004-01-13 Thread Michael Koppelman
We are having a weird problem and we are stumped. We have a php script that is executed by cron. It uses PEAR's mail stuff to send out email messages. (This is not spam.) When we execute the script PHP hangs with this: sigsuspend(0xFFBEA8C0) (sleeping...) signotifywait()

Re: [PHP] Destroy all session data...

2004-01-13 Thread Richard Davey
Hello Tristan, Tuesday, January 13, 2004, 3:59:05 PM, you wrote: TPrsc> I've just asked my host to set my session time limit to 30 days... From 0 TPrsc> I'm now running into problems, and I think that destroying all session TPrsc> data sill help... TPrsc> Until I get this sorted, can I kill ever

Re: [PHP] Destroy all session data...

2004-01-13 Thread Matt Matijevich
[snip] I do't know to be honest, how do I find out? (I'm on a unix server) [/snip] you could use the phpinfo() function and check the value of session.save_handler, if it is "files" the session data is in files in the session.save_path directory. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Storing PHP code in a database

2004-01-13 Thread Justin Patrin
John W. Holmes wrote: Justin French wrote: Is there much I need to know about storing mixed PHP/HTML text in a mysql database table, and then using eval() to execute it? All I managed to find so far is that I should store it in a blob. A TEXT or BLOB column will do. Only difference is BLOB is

[PHP] PHP/Postgresql problem

2004-01-13 Thread Ken Harris
I am trying to get PHP to work with an instance of postgresql on a server. There is already one, 'proprietary' postgresql running with its own user, own group and own (not default) port. The postgresql I am installing will be used for several database projects. following are my config/makes a

[PHP] PHP/Postgresql problem

2004-01-13 Thread Ken Harris
I am trying to get PHP to work with an instance of postgresql on a server. There is already one, 'proprietary' postgresql running with its own user, own group and own (not default) port. The postgresql I am installing will be used for several database projects. following are my config/makes a

[PHP] Re: class functions where the function name == class name

2004-01-13 Thread Justin Patrin
Glenn Yonemitsu wrote: Hey there guys I just started trying out with writing classes. I've been looking at a lot of PEAR class files and noticed this: class classname { function classname() { } } I know that "$object = new classname;" will automatically run $object->classname();. But is i

RE: [PHP] Empty Reference to an Object

2004-01-13 Thread Ford, Mike [LSS]
On 13 January 2004 15:10, Sebastian Ossio wrote: > Hi, > > I´m trying to give an empty reference as a parameter, in a > function. Or > rather make a parameter that is a reference optional. > > I have a function that should react differently if it is > given an object > or not. It works, but it g

RE: Re[2]: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Mike R
> Hello Mike, > > Tuesday, January 13, 2004, 2:55:44 PM, you wrote: > > >> In PHP you would set the Content-type header like so: > >> header("Content-type: image/jpeg"); > > MR> So, should I write that header to the actual image file prior > to the image > MR> itself? > > You should output it to t

[PHP] payflowpro problem

2004-01-13 Thread Mike R
Does anyone know if there are particular settings in php 4.3.4 that prevent payflowpro from responding properly? I'm getting 'Amount mismatch' when I run my function - which runs on other sites and ips just fine (i.e. I can move the exact code over there and it works fine) - but it doesn't seem t

[PHP] stdin/stdout/etc

2004-01-13 Thread William Astle
There are a couple of things I'm trying to do and I can't find anything in the documentation that indicates if its possible or not. This is all using the CLI version. First, I would like to close all file descriptors, including stdin, stdout, and stderr. But I can't find any way of doing so. This

Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Richard Davey
Hello Mike, Tuesday, January 13, 2004, 5:31:47 PM, you wrote: MR> That's what I kind of thought, but this is a case where the browser is MR> opening the image directly - there is no html code or placement in an html MR> page. It doesn't matter, it's still being served via HTTP and that's what yo

Re: [PHP] problem with preg_replace

2004-01-13 Thread memoimyself
Hello Gregor, On 13 Jan 2004 at 15:08, Gregor Jaksa wrote: > hello, i need to replace some words in file with [tag]word[/tag] and other > words with [sample]word[/sample]. > > i have a list of words which i need to replace with [sample] tags declared > like > $words = 'word1|word2|word3|word4';

[PHP] Classified Ads scripts with session authentication

2004-01-13 Thread Miles Thompson
I have googled, and there are scores of them. We have our own database (MySQL) which we use to authenticate subscribers for out news site; does anyone know of a classified ads script that uses a session (or a cookie) to maintain authentication info? If so, we could provide our own front end and

[PHP] tutor found

2004-01-13 Thread Bill Freeburg
Thanks for the great responses. I've found some help, and they're even in my area. Bill Freeburg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-13 Thread Mike R
Sinc the link goes directly to the picture, how do I apply the header first? Should I apply it in the html page the link is on? :) Thanks! -Mike > > Hello Mike, > > Tuesday, January 13, 2004, 5:31:47 PM, you wrote: > > MR> That's what I kind of thought, but this is a case where the browser i

[PHP] Newbie question... date.

2004-01-13 Thread DL
Hi all, I was wondering how you get the year, month, and day from a timestamp. (mySQL timestamp, Eg: 20040113130137) What PHP function(s) do I use? An example would be great Cheers, David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question... date.

2004-01-13 Thread Chris Boget
> I was wondering how you get the year, month, and day from a timestamp. > (mySQL timestamp, Eg: 20040113130137) What PHP function(s) do I use? An > example would be great I *believe* you can use strtotime(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Newbie question... date.

2004-01-13 Thread Ray
On Tuesday 13 January 2004 13:57, DL wrote: > Hi all, > > I was wondering how you get the year, month, and day from a > timestamp. (mySQL timestamp, Eg: 20040113130137) What PHP > function(s) do I use? An example would be great > > Cheers, > David http://www.php.net/manual/en/function.strtot

[PHP] Installing PHP on 2nd Windows Drive

2004-01-13 Thread Freedomware
I got a preconfigured package - Apache 2.0/PHP/MySQL - up and running, then I installed Apache 1.3. Everything seems to be working fine, and I'm ready to start tweaking it. In the meantime, I bought a book about Apache, PHP and MySQL, which includes tutorials on downloading the programs individ

[PHP] Upload and PullPicture???

2004-01-13 Thread Matt Hedges
Hello... I'm trying to upload a picture along with other information. I have several fields to input, such as name, address, etc. (and I get those to go to the MySQL database with no problem). But on the same page I want the user to be able to pick a picture of themself from their harddrive and u

Re: [PHP] problem with preg_replace

2004-01-13 Thread Gregor Jaksa
Thx Erik, it works great except for one detail. It matches numbers too. Can you fix it so it matches only words please ? For example: $file = 'this is a number 1231 test.'; $words = 'test|number'; Result: [tag]this[/tag] [tag]is[/tag] [tag]a[/tag] [tag]nu[/tag] [sample]number[/sample] [tag]1231[/t

[PHP] Documentation on features not in current release (SimpleXML PHP5 Beta 3)

2004-01-13 Thread Jonathan
Where would I be able to find a function reference or documentation on new features that are not documented in the official manual? Preferably in a format that can be read/browsed offline. Thanks, Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] problem with preg_replace

2004-01-13 Thread Manuel Vázquez Acosta
> > $new_file = > preg_replace('/\b(? > ' [tag]$1[/tag] ', $new_file); > > Replace the \w+ by [a-bA-Z]+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] libphp4.so for Roxen

2004-01-13 Thread Dan Egli
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey folks. I'm new to the list and am hoping someone can help me out here. I use Roxen Challenger as my web server. I'd like to get PHP functionality like mod_php for apache. I downloaded the 4.2.2 tarball that my Linux distro uses (RedHat 9) and compil

[PHP] Re: Installing PHP on 2nd Windows Drive

2004-01-13 Thread DvDmanDT
I have one Apache installed (well, 8 or 9, but one that I really use all day), 4 PHP installs.. I have PHP 4 at C:\php, Apache at D:\Apache, PHP3 at D:\php3, PHP5 at D:\PHP5, mysql at D:\mysql4, my webdocuments in c:\www, D:\www2, G:\document..\\my documents and so on.. No problems at all..

Re: [PHP] Upload and PullPicture???

2004-01-13 Thread Lowell Allen
> Hello... I'm trying to upload a picture along with other information. > > I have several fields to input, such as name, address, etc. (and I get those > to go to the MySQL database with no problem). But on the same page I want > the user to be able to pick a picture of themself from their hardd

Re: [PHP] file writing question

2004-01-13 Thread Jason Wong
On Tuesday 13 January 2004 06:47, Timmy wrote: > Since the incremented number is at 3, there should be 3 timestamps in a > "stack" order. Overwriting the sole number for incrementing or > decrementing is no problem. However, inserting a new timestamp is where I > get stuck. The current timestamp

[PHP] Re: Installing PHP on 2nd Windows Drive

2004-01-13 Thread Freedomware
OK, thanks. Dvdmandt wrote: I have one Apache installed (well, 8 or 9, but one that I really use all day), 4 PHP installs.. I have PHP 4 at C:\php, Apache at D:\Apache, PHP3 at D:\php3, PHP5 at D:\PHP5, mysql at D:\mysql4, my webdocuments in c:\www, D:\www2, G:\document..\\my documents an

[PHP] Renaming and Moving php.ini and php4ts.dll Files

2004-01-13 Thread Freedomware
I have PHP installed on Windows XP Pro as part of a preconfigured package (XAMPP). I'm reading a book about installing and configuring PHP which says I should rename the php.ini-dist file to php.ini and move it to the Windows directory and move the php4ts.dll file to Windows\System\ I found php

RE: [PHP] libphp4.so for Roxen

2004-01-13 Thread Thomas Svenson
Dan Egli wrote: > Hey folks. I'm new to the list and am hoping someone can help me out > here. I use Roxen Challenger as my web server. I'd like to get PHP > functionality like mod_php for apache. I downloaded the 4.2.2 tarball > that my Linux distro uses (RedHat 9) and compiled it. It seemed to >

[PHP] Re: Renaming and Moving php.ini and php4ts.dll Files

2004-01-13 Thread DvDmanDT
Depends on how you/they install it... If you run PHP as Apache/Isapi module, php.ini should be located in \windows, and php4ts.dll should be placed \windows\system32 (nt/2k/xp) or \windows\system (9x/me), however, I suggest you only copy it there, and leave a copy where you found it... Accutually,

[PHP] Re: Installing PHP on 2nd Windows Drive

2004-01-13 Thread Freedomware
Dvdmandt wrote: I have one Apache installed (well, 8 or 9, but one that I really use all day), 4 PHP installs.. I have PHP 4 at C:\php, Apache at D:\Apache, PHP3 at D:\php3, PHP5 at D:\PHP5, mysql at D:\mysql4, my webdocuments in c:\www, D:\www2, G:\document..\\my documents and so on.. So

[PHP] PHP, MySQL problem

2004-01-13 Thread Nicolai Elmqvist
Hi I have just started working with PHP and MySQL and have gone through 3 tutorials on how to add and delete records from a database. Nearly everything is working, as it should except for the communication between HTML and PHP. If I try to add a record to my database by pushing a "submit" the tex

[PHP] Re: Installing PHP on 2nd Windows Drive

2004-01-13 Thread DvDmanDT
You could have several installs on the same drive, yes... C:\wampp2 and c:\www\Apache, c:\www\php, C.\www\mysql and so on for example.. Or, try this.. Create a folder names just testing123 in your C: (C:\testing123), and create a .txt file in that directory... Start->run, type 'cmd.exe' In the con

[PHP] TMP directory problem

2004-01-13 Thread Ryan A
Hi, I'm using a class to write some values to a file on our serverit used to work fine but not anymore since i moved servers... This is the code I am using: if (!copy($filename, $tempfile)) { $this->error("FATAL cannot create backup file [$tempfile] [$php_errormsg]",1); exit; // Just in c

[PHP] Re: Upload and PullPicture???

2004-01-13 Thread Matt Hedges
I figured it out... You can put everything in one file... http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/ "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello... I'm trying to upload a picture along with other informatio

[PHP] how to display a font with two words???

2004-01-13 Thread Matt Hedges
Howdy, I'm trying to specify in my php document... but can't b/c it's two words... if it was html I could just put "", but since I can't do that in php, does anyone know what to do? prob. a stupid question, thanks a lot, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: how to display a font with two words???

2004-01-13 Thread DvDmanDT
Rename the font... I think that's the only solution... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Matt Hedges" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Howdy, > > I'm trying to specify in my php document... but > can't b/c it's two words... if it w

[PHP] Re: how to display a font with two words???

2004-01-13 Thread Matt Hedges
you can use single quotes ' ' (I didn't think it would work, but it does) around the font. matt "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Howdy, > > I'm trying to specify in my php document... but > can't b/c it's two words... if it was html I could just put ""

Re: [PHP] how to display a font with two words???

2004-01-13 Thread Richard Davey
Hello Matt, Wednesday, January 14, 2004, 12:59:50 AM, you wrote: MH> I'm trying to specify in my php document... but MH> can't b/c it's two words... if it was html I could just put "", but since I MH> can't do that in php, does anyone know what to do? I guess you're echo'ing it out? The followi

Re: [PHP] how to display a font with two words???

2004-01-13 Thread Tom Rogers
Hi, Wednesday, January 14, 2004, 10:59:50 AM, you wrote: MH> Howdy, MH> I'm trying to specify in my php document... but MH> can't b/c it's two words... if it was html I could just put "", but since I MH> can't do that in php, does anyone know what to do? MH> prob. a stupid question, MH> thanks

[PHP] Can php select which ini file to use?

2004-01-13 Thread Richard Davey
Hi all, I've been playing around installing PHP5 (b3) tonight. I managed to get it running on my Windows XP Pro box as a Module, bar one thing. I have Zend Studio 3 installed which uses the Debugger and Profiler which adds a whole host of extra stuff to the php.ini file in the Windows directory.

[PHP] Re: Can php select which ini file to use?

2004-01-13 Thread Greg Beaver
You can do things the hard way, or write a batch file that resembles this one: "C:\Program Files\Apache Group\Apache\Apache.exe" -w -n "Apache" -k stop if '%1' == '4.x' ( copy C:\php4\php.ini C:\winnt\php.ini copy C:\php4\dlls\iconv.dll C:\winnt\system32 copy C:\php4\dlls\php4ts.dll C

Re: [PHP] Re: Can php select which ini file to use?

2004-01-13 Thread Richard Davey
Hello Greg, Wednesday, January 14, 2004, 1:52:38 AM, you wrote: GB> You can do things the hard way, or write a batch file that resembles GB> this one: Thanks Greg, I figured if there wasn't a way to do it from the conf file itself then it'd have to be done like this and you just confirmed that f

[PHP] Re: Newbie question

2004-01-13 Thread Luke
it sounds like maybe you dont have the mysql php extension turned on in the php ini file, or your php doesnt have mysql support? Luke "James Marcinek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Everyone, > > I'm new to this so forgive my ignorance. I'm trying to use php w

Re: [PHP] Can php select which ini file to use?

2004-01-13 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > I need PHP4 and 5 on the same machine This can't happen. You'll have to pick one or the other. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ --

Re: [PHP] libphp4.so for Roxen

2004-01-13 Thread Dan Egli
Hi Dan, It is not recommended to run PHP as a module with Roxen. Due to some incompatibility PHP can kill Roxen for you. Running it as CGI works fine though. /Thomas Except that a lot of software, including the Webmail system I have(SquirrelMail), requires "mod_php". If it was a simple decision

Re[2]: [PHP] Can php select which ini file to use?

2004-01-13 Thread Richard Davey
Hello Chris, Wednesday, January 14, 2004, 2:59:44 AM, you wrote: >> I need PHP4 and 5 on the same machine CS> This can't happen. You'll have to pick one or the other. Only on Unix it would appear, working fine here on Windows XP giving me a multi-platform development environment, which is what I

Re: [PHP] Can php select which ini file to use?

2004-01-13 Thread Tom Rogers
Hi, Wednesday, January 14, 2004, 11:37:40 AM, you wrote: RD> Hi all, RD> I've been playing around installing PHP5 (b3) tonight. I managed to RD> get it running on my Windows XP Pro box as a Module, bar one thing. RD> I have Zend Studio 3 installed which uses the Debugger and Profiler RD> which a

  1   2   >