[PHP] Found the Answer!

2004-01-26 Thread Jonathan Hilgeman
I found the answer (I'm 90% sure, at least) !!! Thanks to this very small user comment: Jonathan Hilgeman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm running into some weird trouble here. I'm a very experienced PHP programmer, but I rarely ever deal with framed sites. A

[PHP] Re: Found the Answer!

2004-01-26 Thread Jonathan Hilgeman
Oops. Hit the post shortcut accidentally. Here's the post that led me to the answer: - orion at dr-alliance dot com 08-Aug-2003 03:52 Session ID's wont be carried over through meta refreshes, so make sure you add the variables (in GET format) to the URL. IE ) meta http-equiv=\refresh\

[PHP] syntax error

2004-01-26 Thread John Taylor-Johnston
Hi, I'm getting: Warning: main(): Failed opening '2003' for inclusion (include_path='.:/usr/local/share/pear') in /home/users/q/qx04t9mu/www/glq2-test/english/test.php on line 117 Obviously, I'm screwing up my syntax trying to add 2003.php to the end. How should I express this line please :)

Re: [PHP] syntax error

2004-01-26 Thread Phil Driscoll
On Monday 26 January 2004 07:37, John Taylor-Johnston wrote: Obviously, I'm screwing up my syntax trying to add 2003.php to the end. How should I express this line please :) ? ?php include (/home/users/q/qx04t9mu/www/glq2-test/calendars/+strtolower(date(F))+200 3.htm); ? replace the + symbols

[PHP] Help me with this please???

2004-01-26 Thread Radwan Aladdin
Hi.. I'm trying to make a PHP code that do the following : Inserts the server time to the database (When login). and then insert it again (When logout). Now I want to compare the two values to know the defference between them by minutes.. so for example : if the defference was 2880 minutes

[PHP] date(F) +1

2004-01-26 Thread John Taylor-Johnston
Did I miss something at the FAQ? date(F); gives me this month. Can I get it to give me next month? These combinations don't work: ?php echo date(F)+1; ? ?php echo date(F+1); ? What is the minimum version for this to work? Or is this my problem? It echoes 1 in the html.

Re: [PHP] syntax error

2004-01-26 Thread John Taylor-Johnston
Thanks. Duh :) replace the + symbols with . and also date(F) should be date('F'). Sleepy time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date(F) +1

2004-01-26 Thread Martin Luethi
try ?= date(F, strtotime(+1 month)); ? g. martin luethi Mon, 26 Jan 2004 03:08:30 -0500 John Taylor-Johnston [EMAIL PROTECTED]: Did I miss something at the FAQ? date(F); gives me this month. Can I get it to give me next month? These combinations don't work: ?php echo date(F)+1; ? ?php echo

[PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
Thanks!! :) Getting tired at this hour. Is there a way to detect the language of the browser and echo the name of the month in that language? ?= date(F, strtotime(+1 month)); ? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help me with this please???

2004-01-26 Thread De Greef Sébastien
HI, Use a cookie to store the time the user is already logged on in each session that cookie will contain the number of minutes the user has been logged. When your page load it sets another cookie to 10:00 witch is the user start time. on logout just add the time difference between 10:00 and 11:00

RE: [PHP] Re: XSL

2004-01-26 Thread electroteque
ok obviously you would need to store the content in the database, how else can you make it easy to edit for a user ? -Original Message- From: Aidan Lister [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: XSL I'll tell you the

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
the variable $_SERVER[HTTP_ACCEPT_LANGUAGE] contains the Accept-Language- Header from the browser - http://ch2.php.net/reserved.variables with setlocale() you can set locale-informations - http://ch2.php.net/function.setlocale finally strftime() formats a date with the current locale-informations

[PHP] How to prevent duplicated values?

2004-01-26 Thread Radwan Aladdin
Hello.. I want to prevent mySQL from storing the same value in a specified field (Username).. so how can I do it? Regards..

Re: [PHP] How to prevent duplicated values?

2004-01-26 Thread BAO RuiXian
Radwan Aladdin wrote: Hello.. I want to prevent mySQL from storing the same value in a specified field (Username).. so how can I do it? Regards.. Make it field UNIQUE. Best Bao -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to prevent duplicated values?

2004-01-26 Thread Mario
Run a select first to check whether you have that value stored and by using an if statement add the new value or show an error. - Original Message - From: BAO RuiXian [EMAIL PROTECTED] To: Radwan Aladdin [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 26, 2004 11:35 AM

[PHP] PHP Auto-Diagramming

2004-01-26 Thread Burhan Khalid
Greetings All : Is there an application that can load php files and create a flow diagram for the application? Something like Visio but for PHP applications only. Thanks for any pointers, Burhan | phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Message rejected

2004-01-26 Thread Piers Lauder
Hi! Your have sent me a message from an address marked as being primarily a source of SPAM (also known as unsolicited commercial e-mail), and the message has been discarded. If in fact this was a genuine non-SPAM message and you still wish to contact me, then you need to re-send the message from

[PHP] cron problem

2004-01-26 Thread Mario
Hi all there is a bit of a problem with running cron scripts on our server and i would appreciate any help from the unix gurus. The story: I have created a script in the cron dir that runs a php file that sends auto emails. (The script is working fine when we run it through the command line, so

Re: [PHP] cron problem

2004-01-26 Thread BAO RuiXian
Hmm, this is a bit off topic, but... Mario wrote: [snip...] The story: I have created a script in the cron dir that runs a php file that sends auto emails. (The script is working fine when we run it through the command line, so it's working fine). The problem is that when the time comes and the

[PHP] Re: RewriteRule REGEX ?

2004-01-26 Thread Daniel Pupius
I don't think you need to escape the full-stop (period) that could cause problems. I've used the following rule with no problem: RewriteRule ^learning/(.*).htm$ _rewriteHandler.php?query=$1/ Monty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My server runs Apache 2.0. I am

[PHP] Fwd: Re: session start

2004-01-26 Thread Loh Tuck Yong
Note: forwarded message attached. __ Do You Yahoo!? Get clicking with thousands of local singles today! http://asia.yahoo.com/lavalife---BeginMessage--- Please ask support questions at [EMAIL PROTECTED] didou Loh tuck yong wrote: Hi, i have a

Re: [PHP] Fwd: Re: session start

2004-01-26 Thread Martin Luethi
edit php.ini and define a session.save_path e.g. on windows: session.save_path = c:\winnt\temp - http://ch.php.net/en/session g. martin luethi Loh tuck yong wrote: Hi, i have a problem with the method session_start() this is the warning message generated, and for the php, i have only 1 line

Re: [PHP] Return-Path header and sending email with php

2004-01-26 Thread Marek Kilimajer
You can use a class that sends mails by connecting directly to smtp server, e.g. http://www.phpclasses.org/mimemessage Chris Balay wrote: Good Day Coders - I have built a newsletter program with php. It sends out an e-mail to a couple thousand subcribers every day. All works well. My problem

[PHP] Add a bgcolor - regular expressions

2004-01-26 Thread Sheni R. Meledath
Hi, I am looking for a pattern/function which can be used to insert a background color for a word in a string. I want to use this for a keyword search application where the words entered are highlighted in the results display. If I do a direct replace the case of the text in the string cannot

[PHP] preg_match_all : not all regular expressions ?

2004-01-26 Thread Jean-Jacques Méric
[newbie, please help] I'm trying to extract all URLs mentionning sound files from blocks of texts. I first tried with ereg and the following code works fine : $texte='TEST FINDbr\net voici un fichier son http://serveur/repertoire/fichier.gig ou ftp://serveur/repertoire/fichier.snd et

Re: [PHP] Threading PHP

2004-01-26 Thread Mark Charette
On Sun, 25 Jan 2004, Galen wrote: I'm not 100% sure what you're talking about, to be honest. I think I'm in the second half of the people... :) As far as I can tell, Apache runs as many processes (httpd) as needed on my local machine. As far as my server, I haven't seen this behavior,

Re: [PHP] preg_match_all : not all regular expressions ?

2004-01-26 Thread Tom Rogers
Hi, Saturday, January 24, 2004, 1:00:10 AM, you wrote: JJM [newbie, please help] JJM I'm trying to extract all URLs mentionning sound files from blocks of texts. JJM I first tried with ereg and the following code works fine : JJM $texte='TEST FINDbr\net voici un fichier son JJM

[PHP] jgraph and php

2004-01-26 Thread Annazaraah
Hi All, How does one go about integrating jgraphs into a html page, so that I can have the tables containing the data on one side and the corresponding graphs on the other? Any suggestions much appreciated! Anna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] jgraph with php

2004-01-26 Thread Annazaraah
all sorted for the graphs! - just include the script as an img src ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add a bgcolor - regular expressions

2004-01-26 Thread Hidayet Dogan
$string = PHP core developers Php Programmers. $result = span style='background:#DD'PHP/span core developers span style='background:#DD'Php/span Programmers. $key = php; $string = PHP core developers Php Programmers.; $result = preg_replace(#($key)#si, span style='background-color:

[PHP] question PHP - HTML

2004-01-26 Thread Viviane Hu
Hi, Je try to use PHP. Je wrote to this code ?php echo hello \n; echo viviane \n; ? I expect a print out like : hello viviane but the print out (IE) is hello viviane Could you help please thinks. Viviane

[PHP] send a POST to a URL from within PHP code

2004-01-26 Thread Vincent DUPONT
Hi all, I would like to simulate sending a form in POST to a specified URL through PHP. I knwo how to do this from a HTML form : form method=post action=http://url.com/query; blablabla /form I would just like to simulate this because I have some processes that will change the values of the

Re: [PHP] send a POST to a URL from within PHP code

2004-01-26 Thread Matt Matijevich
snip With a GET, the fields would be included into the query strinbg, so this is quite easy. What happens in a POST? /snip take a look at http://pear.php.net/package/HTTP_Request -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: question PHP - HTML

2004-01-26 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you View Source in IE, you'll see it printed in the expected way. The browser, though, will not show it as you expect it. This is because the browser needs a br tag for a newline and will not read a \n as a br. So, use br instead of \n. Viviane Hu

[PHP] Re: send a POST to a URL from within PHP code

2004-01-26 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I answered a question similar to this yesterday. There is a user-submitted function listed in the PHP manual under HTTP functions that will POST to another page from within a PHP script and return the value of the POST back to the PHP script without

[PHP] Re: send a POST to a URL from within PHP code

2004-01-26 Thread Daniel Pupius
You need to open a socket: http://uk.php.net/manual/en/function.fsockopen.php Think there's a demo in the comments lower down the page. Yup, here it is: function httpPost($host, $path, $referer, $data) { $fp = fsockopen($host, 80); fputs($fp, POST .$path. HTTP/1.0\r\n); fputs($fp,

[PHP] Re: question PHP - HTML

2004-01-26 Thread Matt Matijevich
snip If you View Source in IE, you'll see it printed in the expected way. The browser, though, will not show it as you expect it. This is because the browser needs a br tag for a newline and will not read a \n as a br. So, use br instead of \n. /snip you could also wrap the text in pre tags.

Re: [PHP] question PHP - HTML

2004-01-26 Thread Toby Irmer
? echo hellobr; echo vivianebr; ? hth toby - Original Message - From: Viviane Hu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 26, 2004 2:13 PM Subject: [PHP] question PHP - HTML Hi, Je try to use PHP. Je wrote to this code ?php echo hello \n;

[PHP] An array curiosity....

2004-01-26 Thread Jay Blanchard
Out of curiosity, and because I have never noted this in other languages, why doesn't an 'open' comma at the end of an array throw any kind of error? Is it because the comma denotes another element in the array even if nothing is their? For example $arrBadInfo = array( 'stuff ',

Re: [PHP] An array curiosity....

2004-01-26 Thread joel boonstra
On Mon, Jan 26, 2004 at 08:50:51AM -0600, Jay Blanchard wrote: Out of curiosity, and because I have never noted this in other languages, why doesn't an 'open' comma at the end of an array throw any kind of error? Is it because the comma denotes another element in the array even if nothing is

Re: [PHP] Script halts inside imap_fetchstructure()

2004-01-26 Thread Raditha Dissanayake
Hi, Can you actually retrieve the very same message from your home computer? if so this is very strange, one possibility is that your server has an older version of the imap client library installed. Please see if your client library and the servers client libraries are the same. all the best

Re: [PHP] question PHP - HTML

2004-01-26 Thread Brian V Bonini
On Mon, 2004-01-26 at 08:13, Viviane Hu wrote: Hi, Je try to use PHP. Je wrote to this code ?php echo hello \n; echo viviane \n; ? I expect a print out like : hello viviane but the print out (IE) is hello viviane ?php echo hello br /\n; echo viviane; ?

[PHP] getting content with fput, SESSIONS and frames

2004-01-26 Thread Jack Bauer
Hi Guys, i wanna get some content from an other website with a sessionid and a frameset. my starting code looks like this: ?PHP $fp = @fopen(http://domain.tld/frameset.php?q=string;, r); if($fp){ while($in = fread($fp, 1024)) $reply .= $in; echo ($fp\n\n);

[PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
I'm sure how to frame the question. Here's the problem. I would like to store PHP code in a database. Then I would like to while-loop through the array executing the code something like this: ? while($RS=mysql_fetch_array($RR)) { execute $RS[php_code]; } ? This would require something like the

Re: [PHP] Conditional code execution

2004-01-26 Thread John W. Holmes
From: Craig Jackson [EMAIL PROTECTED] This would require something like the equivalent of eval in javascript. Does PHP have that capability? Yes. Oddly enough it's called eval(). Imagine that... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: how to check the form filled all

2004-01-26 Thread jsWalter
You might want to think about client side validation as well. This infomrs the user of any probelms *before* it hits your server. Now, this does *not* remove the step of form value checking on the server. Check out... http://groups.yahoo.com/group/javascript_validation/ A nice little

Re: [PHP] Conditional code execution

2004-01-26 Thread Chris Hayes
At 17:03 26-1-04, you wrote: I'm sure how to frame the question. Here's the problem. I would like to store PHP code in a database. Then I would like to while-loop through the array executing the code something like this: ? while($RS=mysql_fetch_array($RR)) { execute $RS[php_code]; } ? This would

[PHP] create a file

2004-01-26 Thread Viviane Hu
hi, How can I create a file (txt) in client-side? Thanks a lot for you help. viviane

Re: [PHP] getting content with fput, SESSIONS and frames

2004-01-26 Thread Matt Matijevich
snip HTTP/1.1 302 Found Date: Mon, 26 Jan 2004 11:38:51 GMT Server: Apache X-Powered-By: PHP/4.3.1 Location: http://domain.tld/c17c340a3e6a2cb268451f3eda5930ce/frameset.php?q=string Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0,

Re: [PHP] create a file

2004-01-26 Thread Raditha Dissanayake
Hi, Certainly not with PHP! you will need to use a signed java applet or an activex all the best Viviane Hu wrote: hi, How can I create a file (txt) in client-side? Thanks a lot for you help. viviane -- Raditha Dissanayake.

[PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
I have these lines of code, that I thought was simple enough, but it doesn't work how I thought. The Variable $Balance is set to 1 in the database, and I thought it would be outputed as purple or the be found true of the else part of the code. It comes out as red or the elseif part of the

Re: [PHP] create a file

2004-01-26 Thread Matt Matijevich
snip How can I create a file (txt) in client-side? /snip I dont think there is a way unless you are using some kind of java applet. You can create the text on the server and give the user a link to save the text file on their computer. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: jgraph and php

2004-01-26 Thread Christopher J. Crane
I do a lot of this. Go to http://designpile.net/stocks I use a file called charts.php as the image file..so like http://designpile.net/stocks/images/lchart.php?sym=IKN This way you can pass varibles to the php code. As you might have guessed this is not an image but instead a PHP code creating the

Re: [PHP] Seems Simple enough

2004-01-26 Thread Stuart
Christopher J. Crane wrote: if($Balance = 10001) { echo font color=\green\\$$Balance/fontbr\n; } elseif($Balance = ) { echo font color=\red\\$$Balance/fontbr\n; } else { echo font color=\purple\\$$Balance/fontbr\n; } Works fine here. The elseif condition will be true if $Balance is

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:09, John W. Holmes wrote: From: Craig Jackson [EMAIL PROTECTED] This would require something like the equivalent of eval in javascript. Does PHP have that capability? Yes. Oddly enough it's called eval(). Imagine that... ---John Holmes... -- PHP General

Re: [PHP] cron problem

2004-01-26 Thread dread
On 26-Jan-2004 Mario wrote: Hi all there is a bit of a problem with running cron scripts on our server and i would appreciate any help from the unix gurus. The story: I have created a script in the cron dir that runs a php file that sends auto emails. (The script is working fine when we

Re: [PHP] Challenge: Sessions Frames

2004-01-26 Thread Chris Shiflett
--- Jonathan Hilgeman [EMAIL PROTECTED] wrote: I -do- use Javascript, client-side scripting to refresh the top frame when some data has changed and I want the top frame to re-read it. But SOMETIMES refreshing it will just cause the shared session to split (which is the main problem I'm

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:11, Chris Hayes wrote: At 17:03 26-1-04, you wrote: I'm sure how to frame the question. Here's the problem. I would like to store PHP code in a database. Then I would like to while-loop through the array executing the code something like this: ?

Re: [PHP] send a POST to a URL from within PHP code

2004-01-26 Thread Chris Shiflett
--- Vincent DUPONT [EMAIL PROTECTED] wrote: I would like to simulate sending a form in POST to a specified URL through PHP. You can do this with a number of PEAR classes (search on http://pear.php.net/), the cURL extension (if you have it), or manually with PHP (if you have the allow_url_fopen

RE: [PHP] Seems Simple enough

2004-01-26 Thread Larry Brown
you need one of the to if's to be either $Balance =1 elseif($Balance 1000) or $Balance 1 elseif($Balance = 1). Yours has the first saying everything equal to or greater than 10001 which 1 is not else everything less than or equal to which 1 is not. =) Larry

Re: [PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
Ok here is the wierd thing. I pasted more code, it seems to not work because of me changing the number format. This works ... if($Balance = 10001) { $Balance = number_format($Balance,2,'.',','); echo font color=\green\\$$Balance/fontbr\n; } if($Balance = ) { $Balance =

Re: [PHP] Seems Simple enough

2004-01-26 Thread Stuart
Christopher J. Crane wrote: This does not ... $SummaryResults = mysql_query(SELECT * FROM Accounting WHERE UserID='$UserID' LIMIT 1) or die(Invalid query); while($SummaryField = mysql_fetch_array($SummaryResults)) { $Balance = number_format($SummaryField[Balance],2,'.',','); } Display

Re: [PHP] Function for crypt and decript.

2004-01-26 Thread Jon Bennett
http://uk.php.net/md5 Thanks, Jon jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ On 23 Jan 2004, at 09:55,

[PHP] Naming Files

2004-01-26 Thread Paul Furman
It doesn't matter what I name my files apparently, I don't need any extension or anything once I get the first script going and that can be index.php, index.htm or anything if I pont to it specifically. To me it makes sense to call them xx.php 'cause I'm on a windows machine it's just

Re: [PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
Good Question on the looking though all rows. I never wrote code looking at just that one code and getting the variable from the column. That is why I limited the query to one LIMIT 1. I guess it is just me pasting code from my other applications and not checking it out. To the original problem,

Re: [PHP] Seems Simple enough

2004-01-26 Thread Stuart
Christopher J. Crane wrote: To the original problem, it all hinges on me changing the format of $Balance. If I remove the line $Balance = number_format($SummaryField[Balance],2,'.',','); and replace it with $Balance = $SummaryField[Balance]; it works fine. Well, duh! If you add periods and

[PHP] Regex Help

2004-01-26 Thread karthikeyan
Sorry last time I forgot to put subject on my mail. So here I am putting appropriate subject and sending it. Hi All, Just wondering if somebody can help me with this small regex search. The information I wanted to capture is the one in the Square Bracket. i.e Date : 1/21/04, Race Type: 5-16,

Re: [PHP] Seems Simple enough

2004-01-26 Thread Christopher J. Crane
Ok the problem seems to me, the format. I think that once I have the format changed to include a comma seperation for thousands. I think at that point, it is no longer a true number, so PHP deals with it differently. Christopher J. Crane [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] An array curiosity....

2004-01-26 Thread Robert Cummings
On Mon, 2004-01-26 at 09:57, joel boonstra wrote: On Mon, Jan 26, 2004 at 08:50:51AM -0600, Jay Blanchard wrote: Out of curiosity, and because I have never noted this in other languages, why doesn't an 'open' comma at the end of an array throw any kind of error? Is it because the comma

[PHP] create_function() and anonymous methods

2004-01-26 Thread Marco
Hi again... I'm still curious about the question below, already posted several days ago... Marco Hi all, Is it possible to use create_function() to define anonymous methods (like in Java) ? I mean something like: class Listener { function listen () { return 'I am an abstract method';

[PHP] Difference between --with-... and --enable-... in config.m4 [php-4.3.1]

2004-01-26 Thread Bruce Bailey
Hi I created a new extension in php-4.3.1 using the ext_skel script. When I edit the config.m4 file, I see a comment that says 'If your extension references something external, use with' seems rather ambiguous. It’s not clear if ‘something external’ is the UNIX file system, a socket

RE: [PHP] can't figure out this mysql error

2004-01-26 Thread Chris W. Parker
Jason Wong mailto:[EMAIL PROTECTED] on Friday, January 23, 2004 10:03 PM said: Time to put the php debugger in action -- echo all your variables to see that contain what you expect them to contain. 'echo $this-Result;' prints Resource id #2 'print_r($this-Result);' prints Resource id #2

[PHP] Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Murray @ PlanetThoughtful.org
Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field in my test table, in which I'm storing the

[PHP] Re: Regex Help

2004-01-26 Thread Ben Ramsey
Check the PHP manual for preg_match() (http://us3.php.net/manual/en/function.preg-match.php). I did play around with it a little bit, and I think I've got a starting point for you to work with. Try out this code and then play around with it to get the results you need. $matches[2][0] will

Re: [PHP] Script halts inside imap_fetchstructure()

2004-01-26 Thread Mike Gollub
Good question. Both machines show: IMAP c-Client Version 2001 One possibly interesting difference in the configurations, though. Hosting company: --with-imap=/usr/local/4admin/src/imap-2002.RC10 My machine: --with-imap=shared (OK, obviously I'm grasping at straws here) Both machines' IMAP

[PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Jas
Murray @ Planetthoughtful.Org wrote: Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field in my test

Re: [PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
I see what you are doing, But don't see where to create fr or fr-ca, for my example? John Martin Luethi wrote: the variable $_SERVER[HTTP_ACCEPT_LANGUAGE] contains the Accept-Language- Header from the browser - http://ch2.php.net/reserved.variables with setlocale() you can set

Re: [PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
But even if I change my browser language to de-ch, I stll get February when I run it. http://www.glquebec.org/glq2-test/english/testlanguage.php ? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to prevent duplicated values?

2004-01-26 Thread Thomas Svenson
BAO RuiXian wrote: Radwan Aladdin wrote: I want to prevent mySQL from storing the same value in a specified field (Username).. so how can I do it? Make it field UNIQUE. That's the easy method, but usually not very smart. It only causes MySQL to generate an error which you then have to take

[PHP] content management

2004-01-26 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anybody know of an extremely simple CMS (to serve pages, documents, not news based like most of them) that can store pages in various languages and comes with interface in various languages (or that it is translatable) ? - -- Pupeno: [EMAIL

[PHP] odbc functions - not binary safe?

2004-01-26 Thread C C
Hi, I'm trying to insert binary data into a MS SQL Server database. Text files are added fine, but binary files with null bytes are not. The field I'm adding the binary data to is image type. I get an error about unclosed quotation marks at the null byte, but I've replaced ' with ''. I tried

Re: [PHP] content management

2004-01-26 Thread joel boonstra
On Mon, Jan 26, 2004 at 08:07:21PM -0300, Pupeno wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anybody know of an extremely simple CMS (to serve pages, documents, not news based like most of them) that can store pages in various languages and comes with interface in various

[PHP] Xml documents to html

2004-01-26 Thread John
Hi, How can I show xml files which have been created in MS Word, in a browser as ie Html. Is this posible and what would it take. Thanks John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread memoimyself
Hello CC, On 26 Jan 2004 at 12:47, C C wrote: Hi, I'm trying to insert binary data into a MS SQL Server database. Text files are added fine, but binary files with null bytes are not. The field I'm adding the binary data to is image type. I get an error about unclosed quotation marks at

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread John Nichel
[EMAIL PROTECTED] wrote: Hello CC, On 26 Jan 2004 at 12:47, C C wrote: Hi, I'm trying to insert binary data into a MS SQL Server database. Text files are added fine, but binary files with null bytes are not. The field I'm adding the binary data to is image type. I get an error about unclosed

RE: [PHP] Xml documents to html

2004-01-26 Thread Jay Blanchard
[snip] How can I show xml files which have been created in MS Word, in a browser as ie Html. Is this posible and what would it take. [/snip] Yes, it is possible. See the XSLT reference at http://www.w3c.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Can I run it on any OS?

2004-01-26 Thread Radwan Aladdin
Hi all.. Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. So must I run it on Linux? or I can run it on any OS? Can you please tell me what are the OS that I can run my project on? Waiting your replies..

Re: [PHP] Can I run it on any OS?

2004-01-26 Thread John Nichel
Radwan Aladdin wrote: Hi all.. Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. So must I run it on Linux? or I can run it on any OS? Can you please tell me what are the OS that I can run my project on?

RE: [PHP] Can I run it on any OS?

2004-01-26 Thread Jay Blanchard
[snip] Can I run my PHP project on any server and OS? I used the timetamp, random string, UNIQUE fields and many many other feaures for PHP.. So must I run it on Linux? or I can run it on any OS? Can you please tell me what are the OS that I can run my project on? [/snip] PHP can be installed

[PHP] How to prevent - Page has expired

2004-01-26 Thread Steen Rabøl
Hi I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' Thanks in advance. Steen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to prevent - Page has expired

2004-01-26 Thread Jay Blanchard
[snip] I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' [/snip] Session variables http://us2.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about PEAR::raiseError use in XML_RPC client

2004-01-26 Thread Luis Cruz
Greetings; I recently grabbed the latest source for XML_RPC from CVS for use with a project I am working on. I grabbed the latest source rather than the stable build mainly because it includes a handy base class that defines a raiseError method. However, I am puzzled by own thing.

Re: [PHP] How to prevent - Page has expired

2004-01-26 Thread Steen Rabøl
Hi Sorry, my fault, I did not explain myself correctly Let's say that you have a search functions, then the user press the search button brows the result, and then press the 'Back' button of the browser, then you can get this 'Page has expired' warning Is there some trick to prevent this,

Re: [PHP] How to prevent - Page has expired

2004-01-26 Thread Matt Matijevich
snip I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' /snip post to a page that does nothing but process the form post. When it is done, it redirects to another page. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Xml documents to html

2004-01-26 Thread memoimyself
Hi John, On 26 Jan 2004 at 21:42, John wrote: How can I show xml files which have been created in MS Word, in a browser as ie Html. Is this posible and what would it take. The short answer to your question is Yes, it's possible. As for what it would take, the answer is a little longer.

[PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-26 Thread Jas
Jas wrote: Murray @ Planetthoughtful.Org wrote: Hi All, I'm trying to implement encryption on certain data fields in my MySQL database and I'm experiencing ongoing problems. I seem to be able to encrypt the data without issues, but can't figure out how to decrypt the data. My field

Re: [PHP] odbc functions - not binary safe?

2004-01-26 Thread memoimyself
Check out the message below, which a user added to the online version of the PHP manual. Could this have anything to do with your problem? ** FROM http://br2.php.net/manual/en/function.mysql-escape-string.php ** sp4m_only at hotmail dot com 02-Apr-2003 10:07 I found out another very

[PHP] variable container?

2004-01-26 Thread Jake McHenry
Is there some global variable container that I can print_r out to show me all the variables that are being used on a page? In my efforts of converting from globals over to sessions, I've been getting a little mis organized with my code, and would like to know of all variables that are in use on

[PHP] Re: variable container?

2004-01-26 Thread Jas
http://us4.php.net/manual/en/function.var-dump.php HTH Jas Jake McHenry wrote: Is there some global variable container that I can print_r out to show me all the variables that are being used on a page? In my efforts of converting from globals over to sessions, I've been getting a little mis

Re: [PHP] Re: variable container?

2004-01-26 Thread Jake McHenry
- Original Message - From: Jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 26, 2004 5:43 PM Subject: [PHP] Re: variable container? http://us4.php.net/manual/en/function.var-dump.php HTH Jas Jake McHenry wrote: Is there some global variable container that I can

  1   2   >