[PHP] Array_search wildcard

2003-03-21 Thread Liam Gibbs
Is there such a thing as an array_search wildcard? Say I want to find anything beginning with RE and having zero or more characters following it, how would I do that?

Re: [PHP] RE: templating question

2003-03-21 Thread Jason Wong
On Friday 21 March 2003 15:55, Dan Rossi wrote: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all

Re: [PHP] $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made.

2003-03-21 Thread Ernest E Vogelsinger
At 04:43 21.03.2003, Philip J. Newman said: [snip] MY ERROR: Warning: mkdir(/home/newmanpj/public_html/galleries/philip/20030320223553) [function.mkdir]: Permission denied in /home/crushme/public_html/siteadmin/upload_set_step3.php on line 72 MY PROBLEM:

Re: [PHP] Select email addresses from MySQL

2003-03-21 Thread olinux
You probably have other fields in the same table that the client can use to select these people. find out exactly what he wants. It may be something like I want to be able to send to a specific state or profession so build a form that allows him to select the approriate filter. You might also

Re: [PHP] function for $array

2003-03-21 Thread Marek Kilimajer
I would use foreach instead of for, your function does not guarantie checking all elements and also checks elements that might not have been set. pei_world wrote: I want to use the following function the test the array elements, if all element is number return true, otherwise false; but the

[PHP] last modification date of remote files

2003-03-21 Thread Christian Rosentreter
Hello, Is there a way to get the last modification date of a remote file? fstat() seems not to work on remote files. Also filemtime() not work. Thanks for help. -- christian rosentreter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to prevent re-entry of data upon page refresh?

2003-03-21 Thread WMB
Am using dreamweaver and hv an entry form on a page, which works fine, unfortunately upon page refresh the data gets entered another time and another time again on refresh. Any solutions on this? Thanks, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mysql_close();

2003-03-21 Thread shaun
hi, I include a file called bottom.php which goes at the bottom of all my pages and looks like this: tdnbsp;/td /tr /table /body /html ?php if ($connection = @mysql_connect($host, $username, $password)){ @mysql_close($connection); } ? I use this to make sure that I haven't left a

Re: [PHP] last modification date of remote files

2003-03-21 Thread Marek Kilimajer
If it is a http, you can use HEAD request and check Last-Modified header, if it is ftp, use ftp functions, namely ftp_mdtm() Christian Rosentreter wrote: Hello, Is there a way to get the last modification date of a remote file? fstat() seems not to work on remote files. Also filemtime() not

Re: [PHP] How to prevent re-entry of data upon page refresh?

2003-03-21 Thread Marek Kilimajer
use redirect - after inserting the data into the database redirect the user to another page WMB wrote: Am using dreamweaver and hv an entry form on a page, which works fine, unfortunately upon page refresh the data gets entered another time and another time again on refresh. Any solutions on

RE: [PHP] RE: templating question

2003-03-21 Thread Dan Rossi
apologies , sometimes i get lazy :D -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 7:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] RE: templating question On Friday 21 March 2003 15:55, Dan Rossi wrote: You have started a new thread by

Re: [PHP] Array_search wildcard

2003-03-21 Thread Marek Kilimajer
$found=array(); foreach($array as $key = $value) { if(ereg('RE.+',$value)) { // optionaly use eregi for case insensitiveness $found[$key]=$value; } } Liam Gibbs wrote: Is there such a thing as an array_search wildcard? Say I want to find anything beginning with RE and having zero

Re: [PHP] How to prevent re-entry of data upon page refresh?

2003-03-21 Thread Justin French
Hi, Instead of the usual flow chart of form.php - process.php, where process.php displays a thankyou message afterwards, change it to: from.php - process.php - thanks.php process.php doesn't echo anything out to the browser at all... it validates your form data, and depending on what happens

[PHP] Re: PHP Devel Environments???

2003-03-21 Thread Alexandru COSTIN
Hello, It seems that you are not very well informed about the support for PHP in Dreamweaver MX. Actually, starting with the MX version, the PHP support is included in the DWMX core (only for MySQL connectivity, though), but you can visually create websites with ease. That means that you can

[PHP] Re: Super Globals

2003-03-21 Thread ng
Hi, If I turn register_global on and print $QUERY_STRING it works, but it wont if I print $_SERVER['QUERY_STRING']. I'm on XP/PHP 4.0.6. the super globals arrays are availables from PHP 4.1.0 i think, no ? before this version your should use $HTTP_SERVER_VARS['QUERY_STRING'] upgrade your PHP

RE: [PHP] Banner ad solution?

2003-03-21 Thread Adrian Portsmouth
Hi Mike, Try my web site www.phpscriptsearch.com there are a couple of Banner Management utilities under the Ad Management Category. HTH Ade -Original Message- From: MIKE YRABEDRA [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 17:00 To: PHP List Subject: [PHP] Banner ad solution?

Re: [PHP] Is there a way to access all the variables in my script?

2003-03-21 Thread Marek Kilimajer
$GLOBALS Daevid Vincent wrote: Is there some global array or something that contains all the variable names (not even values per se) that are used in my script. Here's the scenario. Like most of you, I do a lot of mySQL db work. So I tend to use this: if (mysql_num_rows($result) 0) { $row =

[PHP] Re: mysql_close();

2003-03-21 Thread Michiel van Heusden
I've been told (in this newsgroup as well :) that PHP automatically closes the MySQL connections on closing the file or session.. probably when you ended your last '?' PHP closed the MySQL connection a way to solve it is to insert the closing-command right after you finished using the connection

RE: [PHP] Select email addresses from MySQL

2003-03-21 Thread Adrian Portsmouth
Hi Tim, I did something similar recently but I had a bit more info stored than just an e-mail address, so I set-up a search system for the client whereby he could e-mail all of the people in the search result set. Just a thought that might give you some ideas for your situation. HTH Ade

[PHP] onchange, post and page refreshing

2003-03-21 Thread Dan Rossi
hi there in my form i have a function to output a number of upload form boxes , this function will post the ammount function number_upload_boxes($num_boxes){ echo 'form name=count_form method=post action='.$_SERVER['PHP_SELF'].?.$this-url(action, action=addphotos).''.\n;

[PHP] How can I upload(copy) a file if the opendir is activated on my ISPs server?

2003-03-21 Thread Brandon Saccone
Hi all, I am a sort of newbie on php but my ISP has the opendir restrictions activated and i would like to have a script to be able to upload files using an online form. How can I upload(copy) a file if the opendir is activated on my ISPs server? Thanks Brandon [EMAIL PROTECTED] -- PHP

[PHP] Sending e-mail digitally signed

2003-03-21 Thread Bernardo de Barros Franco
Fellow PHP'ers, Does anyone know how can I send an digitally signed e-mail using PHP? I need to get a Verisign or Thawte e-mail certificate and use it to sign the messages I send from PHP. I am not quite sure but I think those certificates are x509. PGP or GPG aren't options and I need the

[PHP] Re: mysql_close();

2003-03-21 Thread Cranky
?php if ($connection = @mysql_connect($host, $username, $password)){ @mysql_close($connection); } ? By this way, you always reopne a new connection at the end of all of your page You just have to use somthing like this... if($connection) @mysql_close($connection); But as it was said,

[PHP] ob_start problem

2003-03-21 Thread Mr Percival
Hi, I have a page that has an include at the top of the page and an include at the bottom of the page. in the top include file I have added the command: ob_start(ob_gzhandler); in the bottom include I have added: ob_end_flush(); -- i thought this was supposed to be run to clean up at the

Re: [PHP] web services

2003-03-21 Thread David Otton
On Fri, 21 Mar 2003 22:49:05 +0100, you wrote: I am currently trying to understand how to place content on a different site without giving away my code. SOAP seems to be the solution. I am absolutly First off, I have to say this is a social problem, not a technical one. If you're worried about

[PHP] Re: web services

2003-03-21 Thread Alexandru COSTIN
Hello, You will find our open source Krysalis platform interesting for PHP web services. http://www.interakt.ro/products/Krysalis/ You can also read my chapter for the Wrox (it's bancrupcy is a major losss..) Professional PHP Web Services at

[PHP] Built in source encode function..

2003-03-21 Thread Awlad Hussain
I think PHP should have a built in ability tp encode source code, so if someone wish to protect their source code they should be able to. I hear lot of people worried about other people nicking their codes. But i also think this could kill the idea of open source. What do you guys think? -awlad

[PHP] array - and eval

2003-03-21 Thread Wilbert Enserink
Hi all, I'm making a bulk send mail program script. In this script I use an array: now this works fine: $send_vars = array( 'recipients' = array('[EMAIL PROTECTED]','[EMAIL PROTECTED]','[EMAIL PROTECTED]')

Re: [PHP] Built in source encode function..

2003-03-21 Thread CPT John W. Holmes
There are programs out there that do this for you. Buy/use them if you feel you need to. I don't. ---John Holmes... - Original Message - From: Awlad Hussain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 21, 2003 8:58 AM Subject: [PHP] Built in source encode function.. I

[PHP] GD Version 2.0.11 vs 1.8.4 and TrueColor images

2003-03-21 Thread Oleg SH
Hi all! I currently have PHP Version 4.3.1 and GD Version 2.0.11 up and runing. When I'm rtying to ImageCreateFromJPEG and creatre a PNG thumbnail of that image I get result in 256 colors (I guess) - it looks ugly. When I roll back to GD Version 1.8.4 everything works fine - thumbnails are

RES: [PHP] Built in source encode function..

2003-03-21 Thread Piero B. Contezini
Use Zend Encoder/Engine, thats how zend makes money Piero -Mensagem original- De: Awlad Hussain [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 21 de março de 2003 10:59 Para: [EMAIL PROTECTED] Assunto: [PHP] Built in source encode function.. I think PHP should have a built in

[PHP] php script execution by linux automated task

2003-03-21 Thread Nenad Djordjevic
Hello, I have some web application which is on some rented server. I have not root privilege just FTP access to application web folder. OS is Linux, web server Apache/1.3.27 and PHP version is 4.3.1 I need to define Linux task which will, in defined time, execute some PHP

Re: [PHP] Array_search wildcard

2003-03-21 Thread Liam Gibbs
$found=array(); foreach($array as $key = $value) { if(ereg('RE.+',$value)) { // optionaly use eregi for case insensitiveness $found[$key]=$value; } } Thanks, Marek. With some minor adjustments, this worked out fine! -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] web services

2003-03-21 Thread Steve Magruder
David Otton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 21 Mar 2003 22:49:05 +0100, you wrote: I am currently trying to understand how to place content on a different site without giving away my code. SOAP seems to be the solution. I am absolutly First off, I have to

RE: [PHP] web services

2003-03-21 Thread Darren Young
I seem to remember reading somewhere about compiling PHP pages to 'bytecode' thus removing the need to distribute the source PHP pages. I'm going to have the need down the road to distribute a PHP based app to others and am curious about the same hiding code issues. I'm not all that worried about

[PHP] Re: php script execution by linux automated task

2003-03-21 Thread Brian McGarvie
look up cron Nenad Djordjevic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have some web application which is on some rented server. I have not root privilege just FTP access to application web folder. OS is Linux, web server Apache/1.3.27 and PHP version is

[PHP] Carriage returns in e-mail

2003-03-21 Thread Liam Gibbs
I think I might have had this problem a long time ago, but it wasn't resolved, because here it is again. My carriage returns (\r\n) aren't getting e-mailed. I have some text: The quick brown fox\r\n\r\n jumped over the whateverwhateverwhatever\r\n\r\n yadda yadda yadda. I want to create

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
What about cookies - someone said if you put no time limit on a cookie it dies when you leave the site - I'm not sure about this, but any help is appreciated. - Original Message - From: Justin French [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED]; PHP General [EMAIL PROTECTED]

[PHP] Detailed error message?

2003-03-21 Thread CF High
Hey all. I'm having a difficult time adjusting my php.ini file to display detailed error messages in my local testing environment. For example, when a query returns an error, I do not get the line # where the error occurred or really any info other than: Query not executed. Unknown column

Re: [PHP] Sessions question

2003-03-21 Thread Justin French
I think it's defined as when the browser is closed, not when the browser is no longer in your domain -- but you'd have to ask an expert or read the specs to be sure. Justin on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote: What about cookies - someone said if you put no time limit

RE: [PHP] web services

2003-03-21 Thread Jason Sheets
There are several, probably the most talked about is Zend Encoder (http://www.zend.com). Zend also has a pretty attractive small business program. The APC (Alternative PHP Cache) also has a script that will enable you to write out bytecode PHP scripts that can be run on any PHP server with APC

Re: [PHP] Anyone connect to a FileMaker DB?

2003-03-21 Thread Brent Baisley
You want to look into fxphp. Its shareware or freeware plug-in, I forget. I've downloaded it and read the instructions, but haven't played with it. It hasn't been tested with FM v4.1, which I am still using. Accessing FileMaker is kind of convoluted because of all the layers you have to go

Re: [PHP] ob_start problem

2003-03-21 Thread Justin French
*guess* you're including the footer twice, or are calling ob_end_flush() more than once. not anywhere near sure though!! Justin 21/03/03 11:33 PM, Mr Percival ([EMAIL PROTECTED]) wrote: Hi, I have a page that has an include at the top of the page and an include at the bottom of the

[PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
Managing user login Whats the best option to use.. cookie?? or session?? Currently i am using cookies and sometime user complain they can't login, what would you suggest? -awlad

RE: [PHP] Sessions question

2003-03-21 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 15:59 on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote: What about cookies - someone said if you put no time limit on a cookie it dies when you leave the site - I'm not sure about

RE: [PHP] Detailed error message?

2003-03-21 Thread Darren Young
I use the set_error_handler and have a local function that dumps that stuff. I then redirect all of that to a log file on disk so the user doesn't have to see it. Check http://www.php.net/manual/en/function.set-error-handler.php There's a whole section in the manual that deals with error

RE: [PHP] Sessions question

2003-03-21 Thread Darren Young
It's a session cookie, the browser clears it when it's closed. IIRC you set the time to 0 to turn the cookie into a session one. Not sure how it'll work with sessions though. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 9:59 AM To:

Re: [PHP] templating question

2003-03-21 Thread Brent Baisley
You can always roll your own, it's not that hard at all. Here is an example: ob_start(); include(templateFile); $tpl_file = ob_get_contents(); ob_end_clean(); The contents of your template file are now in the variable $tpl_file and you can you str_replace to input the data. Remember that

[PHP] PHP preg_match_all()

2003-03-21 Thread Jay Fitzgerald
I am having to edit a php script that one of our previous employees had written and I am having a problem understanding the preg_match_all function. preg_match_all(|img src=/news/(.*)|U, $read, $result2); here is what I THINK I know: The | at the beginning signifies the start of the text to

RE: [PHP] Cookie or Session??

2003-03-21 Thread Mike Brum
It really depends on what you want to do. Cookies are client-side information and thus you can run into issues where clients don't allow cookies, have cookie-blocking apps or have outdated software that doesn't support them (though the latter continues to become less of an option as time passes).

Re: [PHP] PHP preg_match_all()

2003-03-21 Thread Marek Kilimajer
It's in the manual: /U/ (PCRE_UNGREEDY) This modifier inverts the greediness of the quantifiers so that they are not greedy by default, but become greedy if followed by ?. It is not compatible with Perl. It can also be set by a (?U) modifier setting within the pattern. Jay

Re: [PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
Thanks Mike, I think using session will solve the problem of some user having difficulties in loign. - Original Message - From: Mike Brum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 21, 2003 4:12 PM Subject: RE: [PHP] Cookie or Session?? It really depends on what you

[PHP] Simon Lusted/MCSD/SSSG/LONDON/ONS is out of the office.

2003-03-21 Thread Simon Lusted
I will be out of the office starting 21/03/2003 and will not return until 14/04/2003. I will respond to your message when I return. For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk

[PHP] where is cookie limitation on php ?

2003-03-21 Thread Hatem Ben
Greetings all, Can someone tell me where is the limitation on the number/size of cookies that could be used ? Assuming we have : ?php $table = array(a,b,c,d); $table = array_pad($table, 20,e); while (list($key, $value) = each ($table)) { setcookie( DX_A[$key], $value ); } setcookie( DX_B, test

[PHP] Session Data

2003-03-21 Thread Tony Bibbs
I'm wrapping up an MVC implementation for PHP. Everything is working splendidly except that redirects seem to be loosing session data. Here is the basic logic 1) on a form, user enters data hits submit 2) data validates OK, data is saved and $_SESSION['MVC_message'] is set to 'Save was

Re: [PHP] Cookie or Session??

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 00:18, Awlad Hussain wrote: I think using session will solve the problem of some user having difficulties in loign. Sessions still require that the browser accept a session cookie (temporary cookie that is not (or should not be) stored on disk). Some browsers allow

Re: [PHP] Session Data

2003-03-21 Thread Pete James
If your session id is not stored in a cookie (if url rewriting is on), then the $url page may not be getting your session id, and thus is starting a new, empty one? Tony Bibbs wrote: I'm wrapping up an MVC implementation for PHP. Everything is working splendidly except that redirects seem to

Re: [PHP] Detailed error message?

2003-03-21 Thread CF High
Thanks Darren. I'll look into it, when I get a spare moment, --Noah Darren Young [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I use the set_error_handler and have a local function that dumps that stuff. I then redirect all of that to a log file on disk so the user doesn't have

[PHP] Need help with HTML2Pdf

2003-03-21 Thread Anthony
I need a lot of help trying to get HTML 2pdf to work. If anyone here has done it before, please drop me a line and help me out. I have some questions about capability and I simply can't seem to get it working. Thanks. - Anthony -- PHP General Mailing List (http://www.php.net/) To

[PHP] Sessions

2003-03-21 Thread Adam -
Hi, Just a thought about sessions, they still rely on cookies working, unless you pass the session id with every link on the page. If you set your php.ini file to automatically put the session id in ever link on your page, that's great, but what if you don't have access to the php.ini file

[PHP] Re: Session Data

2003-03-21 Thread Anthony
Are you using something like $_SERVER['HTTP_HOST'] or $_SERVER['PHP_SELF'] to get the base URL for the app when doing the redirect? If you have the whole URL typed in and switch from something like www.mydomain.com to mydomain.com, the browser may think it's a different site and loose the cookie

Re: [PHP] where is cookie limitation on php ?

2003-03-21 Thread Jim Lucas
Look up the specs on the limitation of cookies and you will then know the limitation of php when it comes to cookies. Jim - Original Message - From: Hatem Ben [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 21, 2003 9:10 AM Subject: [PHP] where is cookie limitation on php ?

[PHP] Code Design || Functions vs. Switch Statements

2003-03-21 Thread CF High
Hey all. I'm looking for guidance from any PHP Gurus, or gurus in the making re: whether to use a function based design or a switch statement based design for a multi-sport data driven sport report. Alright, here's the deal: Last year I developed a data driven hockey report for a friend -- the

[PHP] fast template class

2003-03-21 Thread Gilberto Garcia Jr.
I´m a newbie on this class. But i´m getting this error. if I define a constant using define('',''); I get template as just if doesnt has parsed anithing. all constants name´s are showed without changing the name per values. So, when i define the constant as a variable $x = ''; it works fine.

[PHP] problem with ODBC

2003-03-21 Thread Frank
Hi, I'm Frank I have problem when I use conection odbc, give me a error: PHP Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:\php\includes\adodb\drivers\adodb-odbc.inc.php on line 166 the DSN

[PHP] Isset

2003-03-21 Thread Liam Gibbs
Is isset() better than $ != ? Often, I may have a 0 as values. While $ != doesn't recognize 0s (as in, that if would be false), isset() seems to work. Should I change all my $ != to isset()s, or are there other factors I should check?

[PHP] Search engine

2003-03-21 Thread Davíð Örn Jóhannsson
Dose any one have any tips on making a very simple search engine, that only searches in two fields of a mysql table. I just need some pointers to know where to begin. Thanks, David

Re: [PHP] Isset

2003-03-21 Thread Liam Gibbs
Responding to myself: Is isset() better than $ != ? Often, I may have a 0 as values. While $ != doesn't recognize 0s (as in, that if would be false), isset() seems to work. Should I change all my $ != to isset()s, or are there other factors I should check? Conversely, what about empty(). Is

Re: [PHP] Isset

2003-03-21 Thread Michael Sweeney
It depends on what you're trying to test. If you want to find out if a variable is explicitly set to an empty string, then isset() is not your answer. If you want find out if a variable exists or is set to a non-null value, isset() will work. However, it is not always going to give you the

[PHP] problem with page loading

2003-03-21 Thread Amanda McComb
Hello! I am working on a site that I thought was working just fine - I tested it in Netscape 7 and IE. However, several people trying to access it using Netscape 4.7 have been having problems. Specifically, there is a search that returns linked results. The link transfers the result's id to

[PHP] php and javascript

2003-03-21 Thread shaun
Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to enable me to select all of the checkboxes on my form. SCRIPT LANGUAGE=JavaScript !-- Begin var checkflag = false; function check(field) { if (checkflag == false) { for (i = 0; i field.length;

Re: [PHP] problem with page loading

2003-03-21 Thread Kevin Stone
- Original Message - From: Amanda McComb [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 21, 2003 12:11 PM Subject: [PHP] problem with page loading Hello! I am working on a site that I thought was working just fine - I tested it in Netscape 7 and IE. However, several

Re: [PHP] php and javascript

2003-03-21 Thread Mike
Try radio buttons. You can't have lots of checkboxes like that. Or try one of those lists that you can select multiple parts. I don't remember what they're called. On Fri, 2003-03-21 at 10:25, shaun wrote: Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the

Fw: [PHP] php and javascript

2003-03-21 Thread Kevin Stone
- Original Message - From: shaun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 21, 2003 12:25 PM Subject: [PHP] php and javascript Hi, I'm not sure if this is a PHP or a JavaScript question but I have found the following code to enable me to select all of the

Re: [PHP] php and javascript

2003-03-21 Thread John Nichel
Put square brackets after the name of your checkboxes. input type=checkbox name=list[] value=1Homebr input type=checkbox name=list[] value=2Officebr etc Then you will be able to access all the boxes checked on your post page in an array $_POST['list'] shaun wrote: Hi, I'm not sure

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
So is there anyway to do this - perl, javascript, voodo? - Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Justin French' [EMAIL PROTECTED]; Beauford.2002 [EMAIL PROTECTED]; PHP General [EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:04 AM Subject: RE: [PHP] Sessions

RE: [PHP] Search engine

2003-03-21 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1047 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3570 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3094 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1340

RE: [PHP] Increase a month

2003-03-21 Thread Boaz Yahav
This can help : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3541 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: shaun [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:00 PM To:

Re: [PHP] php and javascript

2003-03-21 Thread John Nichel
For what code to work, the JavaScript? In php, the only way you'll be able to get all the checkboxes that have been checked is to put the square brackets behind the name. For it to work in JavaScript, you have to reference the element such as

Re: [PHP] Increase a month

2003-03-21 Thread Kevin Stone
echo date(F); // prints March echo date(F, strtotime(month + 1)); // prints April - Kevin - Original Message - From: Boaz Yahav [EMAIL PROTECTED] To: shaun [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 21, 2003 1:44 PM Subject: RE: [PHP] Increase a month This can help :

Re: [PHP] Increase a month

2003-03-21 Thread Sebastian
i think strtotime() doesn't understand the $month variable, Since you are adding $month + 1 the function strtotime needs the + and the variable is not passing the + sign .. hope that makes sense .. instead of putting a variable in strtotime try just doing strtotime(+1 month); and see if it works.

Re: [PHP] Sessions question

2003-03-21 Thread Kevin Stone
This is one of those rare things in programming that can only be done one way. Absolutely the only way to kill the session when a user leaves your site is to go through a script and then redirect after the session has been destroyed. For this to work every outgoing link on your website will have

[PHP] Session Not Working

2003-03-21 Thread Guru Geek
Hello, I'm trying to use sessions for the first time. I have a log in script that gets the user to enter their name and password. Then the script compares the entered data to a database. If the entered data matches whats in the database then the user is granted access to the main php script.

Re: [PHP] Session Not Working

2003-03-21 Thread Mike
you forgot session_start at the beginning of the login script On Fri, 2003-03-21 at 12:31, Guru Geek wrote: Hello, I'm trying to use sessions for the first time. I have a log in script that gets the user to enter their name and password. Then the script compares the entered data to a

Re: [PHP] Session Not Working

2003-03-21 Thread Guru Geek
ok, I tried this: session_start(); if ($user_data = = $database_data) { $_SESSION['verified_user']=1; header(Location:http://www.myserver.com/main.php;); exit; and it still doesn't work...hehe anymore suggestions? Thanks, Roger Mike wrote: you forgot session_start at the beginning of the

Re: [PHP] Session Not Working

2003-03-21 Thread Kevin Stone
Why is there a space between = = ? And where is $user_data and $database_data coming form? First thing I would recommend you do is print out those variables to make sure they actually contain the information you're expecting. - Kevin - Original Message - From: Guru Geek [EMAIL

[PHP] detecting end of line - php 4.1.2

2003-03-21 Thread Paul Godard
Hi I am trying to get php 4.1.2 to read a Mac file (exported from FileMaker Pro) and split it into different lines using the following but php does not recognize the end of line. For some tech reason I cannot upgrade php now but I need to be able to read my Mac files now. What is the

Re: [PHP] detecting end of line - php 4.1.2

2003-03-21 Thread CPT John W. Holmes
I am trying to get php 4.1.2 to read a Mac file (exported from FileMaker Pro) and split it into different lines using the following but php does not recognize the end of line. For some tech reason I cannot upgrade php now but I need to be able to read my Mac files now. What is the easiest

Re: [PHP] detecting end of line - php 4.1.2

2003-03-21 Thread Kevin Stone
- Original Message - From: Paul Godard [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, March 21, 2003 3:53 PM Subject: [PHP] detecting end of line - php 4.1.2 Hi I am trying to get php 4.1.2 to read a Mac file (exported from FileMaker Pro) and split it into different lines

[PHP] How can I get info from an XML document

2003-03-21 Thread user
Hi, I can't get the clue. My php page receives an XML document from which I need to get the contents and attributes into php variables. I obvious have missed something important. Could someone help me with the following script (while watching the Bagdad bombings on CNN): ? $xml=?xml

[PHP] help with assignment

2003-03-21 Thread Karl James
My code: http://nopaste.php-q.net/8594 My site: http://66.12.3.67/webdb/webdb13/assignment_1a.php My goal: http://66.12.3.67/webdb/webdb19/assign01/index.php = Can anyone try to help me with this. For some reason im not able to

[PHP] How to detect if a cookie is set?

2003-03-21 Thread Webmaster MBT
Hi I'm trying to make a script that first figures out if a cookie is set, if not,do this, if so, do that. Can I use: Isset($HTTP_COOKIE_VARS['nick'] or what should I use? EJB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to delay a header( Location: )

2003-03-21 Thread Webmaster MBT
Hi I need to delay the jump of a page that uses header(location: ) to jump. Ive tried adding a , after the file name (that's how we do it on html) but it doesn't work Any Ideas? EJB

[PHP] How can I get info from an XML document

2003-03-21 Thread Mike
Hi, I can't get the clue. My php page receives an XML document from which I need to get the contents and attributes into php variables. I obvious have missed something important. Could someone help me with the following script (while watching the Bagdad bombings on CNN): ? $xml=?xml

RE: [PHP] How to detect if a cookie is set?

2003-03-21 Thread Johnson, Kirk
Hi I'm trying to make a script that first figures out if a cookie is set, if not,do this, if so, do that. Can I use: Isset($HTTP_COOKIE_VARS['nick'] or what should I use? Yes. If you have PHP 4.1.0 or higher, you can also use the recommended $_COOKIES['nick']. Kirk -- PHP General

[PHP] md5 cookies

2003-03-21 Thread Sebastian
hello all, Cookie noob here :s how do I add md5 hash so it encrypts the password only in the cookie? and how do I increase the expire time to 30 days? Here's the snip: setcookie(pass,$HTTP_POST_VARS[password],time()+(3600*24*7)); Thanks in advanced. cheers, - Sebastian

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
I don't quite understand this. If a user is on my site and then decides to go into his favourites and go to yahoo.com - this won't work. I think you are assuming the user is going to click on something I have set up - I want this to be invisible - however this user decides to leave my site. It

[PHP] Resume PHP Sockets?

2003-03-21 Thread Richard Mikalsen
Is it possible to resume persistent sockets opened with pfsockopen? I really need to know if it's possible to resume a socket from another script, like if I've saved the socket into a session variable. Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to delay a header( Location: )

2003-03-21 Thread Richard Mikalsen
You can use sleep? Like: sleep(2); Header(Location: blah); Webmaster Mbt [EMAIL PROTECTED] skrev i melding news:[EMAIL PROTECTED] Hi I need to delay the jump of a page that uses header(location: ) to jump. Ive tried adding a , after the file name (that's how we do it on html) but it doesn't

[PHP] Re: detecting end of line - php 4.1.2

2003-03-21 Thread Travers Carter
Paul Godard wrote: Hi I am trying to get php 4.1.2 to read a Mac file (exported from FileMaker Pro) and split it into different lines using the following but php does not recognize the end of line. For some tech reason I cannot upgrade php now but I need to be able to read my Mac files

  1   2   >