RE: [PHP] removing lines from array

2001-07-23 Thread Adrian Ciutureanu
? $recordsarray = file (../auto/records); $remove = schopf.net ; while(list($i, $line) = each($recordsarray)) { if(ereg($remove, $line)) { unset($recordsarray[$i]); } } $newFileContent = implode('',

[PHP] Re: removing lines from array

2001-07-23 Thread elias
$recordsarray = file(records); $remove = schopf.net; $temp = array(); for ($i=0;$icount($recordsarray);$i++) { if (!strstr($recordsarray[$i], $remove)) { $temp[] = $recordsarray[$i]; } } $recordsarray = $temp; $lines = join($recordsarray, '\n'); $fp = fopen(records, w); fwrite($fp,

[PHP] Re: HTTP Authentication and PHP

2001-07-23 Thread elias
Try this when you want to logout: ? header( 'WWW-Authenticate: Basic realm=Private'); header( 'HTTP/1.0 401 Unauthorized' ); ? //elias Jason Rennie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I've been playing around with PHP authentication via

Re: [PHP] Re: need help w/ variables

2001-07-23 Thread Van Tate Jr.
Ah! But never forget...the code in some books have bugs too. Van At 12:47 AM 7/23/01, you wrote: it was my error reporting along i copied that script dtraight from the text book so i knew it wasnt the variables themselves -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] question about forum

2001-07-23 Thread Jason Wang
Dear all, I want to set up an online forum by using PHP. But I don't have a clue. Could somebody kind enough tell me where to start? thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Re: need help w/ variables

2001-07-23 Thread ReDucTor
that error is because the php error checking had been changed from the default...but still some do have problems... :D - Original Message - From: Van Tate Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 5:01 PM Subject: Re: [PHP] Re: need help w/ variables Ah!

Re: [PHP] question about forum

2001-07-23 Thread ReDucTor
This is my suggestion Start with making your user management...setup design and layout management, then do the browsing, then your viewing, then different catagories, then do other little bits... - Original Message - From: Jason Wang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

[PHP] RECOMENDED WEBSITE ..by CN YEONG

2001-07-23 Thread CN YEONG
Sure u will like this website!!! It can send SMS message to any handphone in MALAYSIA, include 016,012,013,017,019...Good leh. *** GOOD THINGS WE SHARE TOGEHTER! http://sms.ac __ Do You Yahoo!? Make international calls for as low as

[PHP] Re: HTTP Authentication and PHP

2001-07-23 Thread Balaji Ankem
Hi, I am attaching one example program. I hope this will help you a lot. Regards -Balaji Hi all, I've been playing around with PHP authentication via HTTP. I'm using apache, and when i use the header('WWW_Auth...) headers i get a username/password dialog pop up (as i wanted). How do i

[PHP] Destroy object

2001-07-23 Thread ROsen
Hi, how can I destroy an object created with new ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Modssl php 4 fears

2001-07-23 Thread Jason Rennie
Hi again all, I recompiled apache with modssl and it works. (Well the snake oil inc cert's work ;) But i get a warning on apache load about, loading a standard module (php4.so) and how this may crash becasue it isn't compiled to work with EAPI. Please comile with -DEAPI Now the question is,

[PHP] When did this become the advertising Mailing List

2001-07-23 Thread ReDucTor
When?!? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] date

2001-07-23 Thread Yamin Prabudy
Hi, how do i check that the current date is the end of month ? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] date HELP !!!!!

2001-07-23 Thread Yamin Prabudy
hi, how do i check that the current date is the end of month Thanks in Advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] date HELP !!!!!

2001-07-23 Thread ReDucTor
$todaydate = date(m); $tomorrowdate = date(m,time() + 86400); if($todaydate != $tomorrowdate){ echo Tomorrow is a new month; } - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 5:27 PM Subject: [PHP] date HELP ! hi,

Re: [PHP] date HELP !!!!!

2001-07-23 Thread Daniel Rezny
Hello Yamin, Monday, July 23, 2001, 9:27:46 AM, you wrote: YP hi, YP how do i check that the current date is the end of month YP Thanks in Advance If you want to check how long is current month and use this value later you can use this: $month=(m); //can be like this depend on if you

Re: [PHP] date HELP !!!!!

2001-07-23 Thread Henrik Hansen
[EMAIL PROTECTED] (Reductor) wrote: $todaydate = date(m); $tomorrowdate = date(m,time() + 86400); if($todaydate != $tomorrowdate){ echo Tomorrow is a new month; } or if (date(d) == date(j)) echo last day; or something else :) - Original Message - From:

Re: [PHP] date HELP !!!!!

2001-07-23 Thread James Holloway
Better still, use the date(t); to find out how many days are in the given month. This part of the date function is a blessing, given the varying days in months, and the fact that we've a leap year every four years. James Daniel Rezny [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] php 4.0.6

2001-07-23 Thread Adrian D'Costa
Hi, It works now. I did a stupid mistake instead of putting --enable-sockets I put --with-sockets g Adrian On Sat, 21 Jul 2001, E. Peter K. Chan wrote: Hi Try going to the source directory ie where you unzipped the tarball for php. May as well upgrade to php4.0.6 - that could save you

[PHP] Re: reg exp help

2001-07-23 Thread James Holloway
Hi Justin, for the username, you can use: if (!preg_match(/^[a-z0-9]*$/, $username)) { // error } else { // ok } The ^ means start of the string, the characters between the [ and ] are ones that we want, the * means however many times, and the $ means the end of the line / string. So

[PHP] Re: Replace ANYTHING between TAG /TAG

2001-07-23 Thread James Holloway
Hi Dan, maybe something like: $newvariablethatwewantbetweenthetags = Long variable!; $string = preg_replace(/(TAG)(.*?)(\/TAG)/i, \\1$newvariablethatwewantbetweenthetags\\2, $string)); There should be a after and before the second part of that statement, but my email proggy strips them.

[PHP] number generator

2001-07-23 Thread Yamin Prabudy
Hi there I would like to generate numbers (random) like a credit card number and can be check is the number valid or not how can i do that.. yamin prabudy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] limit items per page

2001-07-23 Thread Steph
Ive got an image gallery, and rather than having one really long page of thumbnails, I'd like to have around 25 thumbnails (5 rows of 5 thumbs) per page. Can you guys point me in the right direction?? Steph

[PHP] Re: limit items per page

2001-07-23 Thread James Holloway
Hi Steph, as the name suggests, use LIMIT ;) Ie, SELECT * FROM TABLE LIMIT 0,25 The 0 (or other number) is optional, and tells the table which row to start limiting from, the secon number is the number of rows to limit to.. So: SELECT * FROM TABLE LIMIT 25,25 Would bring out 25 rows,

Re: [PHP] limit items per page

2001-07-23 Thread ReDucTor
What sort of database do you have, and what is your current source?!? - Original Message - From: Steph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 6:52 PM Subject: [PHP] limit items per page Ive got an image gallery, and rather than having one really long page of

[PHP] Re: regex for cleaning up username

2001-07-23 Thread maatt
thinking it may be easier to parse for only allowed characters. *much* better idea. Try: preg_match('/[^\w]/', $string) to find all non-alphanumeric+underscore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] question about forum

2001-07-23 Thread Sandeep Hundal
have a look at other people's codes. you can start by looking at my forum, which is pretty simple to install and work with : http://www.wde.org/me/php/ /sunny -Original Message- From: Jason Wang [mailto:[EMAIL PROTECTED]] Sent: 23 July 2001 08:06 To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Re: limit items per page

2001-07-23 Thread Henrik Hansen
[EMAIL PROTECTED] (James Holloway) wrote: Hi Steph, as the name suggests, use LIMIT ;) AFAIK it's mysql specific (at least it does not work with mssql) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] number generat {Luhn algorithm}

2001-07-23 Thread Yamin Prabudy
anybody know about the Luhn algorithm ?? how can i do that in php yamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: limit items per page

2001-07-23 Thread James Holloway
Perhaps I shouldn't have made the assumption that steph was using mysql :) Henrik Hansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [EMAIL PROTECTED] (James Holloway) wrote: Hi Steph, as the name suggests, use LIMIT ;) AFAIK it's mysql specific

[PHP] Re: number generat {Luhn algorithm}

2001-07-23 Thread Henrik Hansen
[EMAIL PROTECTED] (Yamin Prabudy) wrote: anybody know about the Luhn algorithm ?? how can i do that in php google is your friend http://px.sklar.com/code-pretty.html?code_id=234 http://perl.about.com/library/weekly/aa073000a.htm http://www.phpbuilder.com/mail/php3-list/199807/2939.php and

[PHP] holding values in a select list on a form

2001-07-23 Thread Mark Bayfield
Some help please... I am creating a select list from a database, and I am trying to hold the value of what has been selected by a user, while I do some error checking. It is searching a mysql db to pull out the list. It will then need to pass values back into the database. The code I am using is

[PHP] MySQL PRIVILEGES problem

2001-07-23 Thread Manu Verhaegen
Dear all, I have the following problem : I want change te root password for mysql and we receive the following error message ERROR 1064: parse error near 'FLUSH PRIVILEGES' at line 1 I login to my MySQL server and type the following commands shell mysql -u root mysql mysql UPDATE

Re: [PHP] PHP MySQL

2001-07-23 Thread Steve Brett
'order by text asc' will sort in alphabetical order A-Z .. and your query should be select [campo] from table where campo like 'A%' ... seems like an expensive way of sorting ... i think mysql has natural order sorting functions in there somewhere ... Steve Marisol díaz e. [EMAIL PROTECTED]

[PHP] mail with html

2001-07-23 Thread Adrian D'Costa
Hi, I know this subject had been discussed here before. Tried searching in list.php.net, I get a message search not setup (or something). I want to send html mails thru php using mail(). Could someone tell me where I can study some scripts or tutorials. TIA Adrian -- PHP General Mailing

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
here's a script i wrote a while back. copied and pasted. - ? if ($submit) { $headers .= From: $myemail \n; $headers .= cc:$cc \n; $headers .= bcc:$bcc \n; // $headers .= Content-Type: text/html; charset=iso-8859-1\n; $message =

[PHP] Re: One2Many Logic Problem - phpMySQL bibliography

2001-07-23 Thread Steve Brett
wouldn't the structure of the database be determined by the fact you have a many to many relationship ? i.e. the two tables would decompose into three with a 'link' table defining the many to may part ? steve Mike Gifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
oh yeah, you might want to tidy up the code a bit... the email has put in line breaks. and replace [EMAIL PROTECTED] with your own email... the mail() command does all the work... the header command redirects the page.. you might want to change the address or remove it. /sunny -Original

Re: [PHP] MySQL PRIVILEGES problem

2001-07-23 Thread Balaji Ankem
Hi, u have to change the database first and then try to update. Plz do the following. shell mysql -u root mysql mysqluse mysql; mysql UPDATE user SET Password=PASSWORD('new_password') where user='root';mysql FLUSH PRIVILEGES; Regards -Balaji - Original Message - From:

[PHP] Networking

2001-07-23 Thread ReDucTor
Hey does any one know if it is possible to do something like read stuff thro file and printer sharing on a remote pc, i tried \\computer\dir for the dirs but that didn't work any suggestions(btw i did addslashes :D ) so ne ideas...please -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: limit items per page

2001-07-23 Thread Martin Cameron
Here's a Quick Dirty script that I ran up to get a display of 10 items per page with each click on a hyper-linked page returning a new page .. if you know what I mean. I've even included the headers so that any newbies can see the complete script and not just bits. The theory is that the

Re: [PHP] User ID's

2001-07-23 Thread Martin Cameron
Try Sessions, bud. That's what they're there for. On Mon, 23 Jul 2001 21:46, you wrote: Hi all, I need store all the userid's connected to my site, in a database. the database, if the user has closed his browser a php script will check after intervals of a few minutes, if the user is

[PHP] Re: mail with html

2001-07-23 Thread Henrik Hansen
[EMAIL PROTECTED] (Adrian D'Costa) wrote: Hi, I know this subject had been discussed here before. Tried searching in list.php.net, I get a message search not setup (or something). I want to send html mails thru php using mail(). Could someone tell me where I can study some

[PHP] Check for exist function

2001-07-23 Thread ROsen
Hi, How can I check, thath some function is declared and to do not declare it second time ( with require ) ? Thanks, Rosen Marinov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] mail with html

2001-07-23 Thread Adrian D'Costa
Hi Sandeep, Thanks for your mail but I was looking at something else. This is what I need. I have a table that I will be selecting certian records and mailing to clients that have signed up. The result should be in html and plain text. The plain text is working now but I want to put into a

RE: [PHP] Check for exist function

2001-07-23 Thread Adrian Ciutureanu
http://php.net/require_once -Original Message- From: ROsen [mailto:[EMAIL PROTECTED]] Sent: 23 iulie 2001 14:17 To: [EMAIL PROTECTED] Subject: [PHP] Check for exist function Hi, How can I check, thath some function is declared and to do not declare it second time ( with

[PHP] Re: holding values in a select list on a form

2001-07-23 Thread Mark Bayfield
I worked it out by doing something like this... ? if (!$WR_COUNTRY ==) { $topic = $WR_COUNTRY; }; echo select name=\WR_COUNTRY\; $toplist = mysql_query(select * from wr_country where wr_country_enabled = 1 ); echo option value=\\Select/option\n; while(list($topicid, $topics) =

[PHP] Re: Check for exist function

2001-07-23 Thread Henrik Hansen
[EMAIL PROTECTED] (Rosen) wrote: Hi, How can I check, thath some function is declared and to do not declare it second time ( with require ) ? http://dk.php.net/manual/en/function.function-exists.php -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
well all you need to do is use part of the script i sent you.. and in the header variable, uncomment the bit which says text/html and then you can send html email instead of text email... i'm assuming you've already written the script to sent plain text email. i thought you needed that. /sunny

RE: [PHP] mail with html

2001-07-23 Thread Adrian D'Costa
The question is how do I declare the html coding in the message part. Any samples Adrian On Mon, 23 Jul 2001, Sandeep Hundal wrote: well all you need to do is use part of the script i sent you.. and in the header variable, uncomment the bit which says text/html and then you can send html

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
you don't. as far as I know, you just put the code in the message like such : $message = table tr td$name/tdtdareacode/td /tr /table ; and then send off $message using mail(). You might want to stripslashes() as I did. /sunny -Original Message- From: Adrian D'Costa

[PHP] RE: holding values in a select list on a form

2001-07-23 Thread Tim Ward
? echo select name='FIELDNAME'; print option value=''Select/option; if($result = mysql_db_query($db, $query)) while($row = mysql_fetch_row($result)) print option value={$row[1]}{$row[1]}/option; echo /select; ? although

Re: [PHP] mail with html

2001-07-23 Thread Jome
Here is an example that I use myself for sending HTML code via email. ? function qp_encode($str) { $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); foreach ($chars as $char) { if (ord($char) 127 || ord($char) == 61) $result .= sprintf(=%X, ord($char));

[PHP] New User - Problem with php and pop3-class...

2001-07-23 Thread Stephan Hübner
Hi all, I'm new to this ML as well as to php, so I have a problem that someone might have a solution for. What I have to do is to get mails from a mail-account and get them into a flash-movie. The latter thing is not the problem, probably. I downloaded the pop3-class from Manuel Lemos. What I

Re: [PHP] php vs Filemaker

2001-07-23 Thread Daniel Rezny
Hello Christian, Monday, July 23, 2001, 3:39:14 PM, you wrote: CSP This might sound a little strange but I'd like to query a Filmeker CSP database using CSP Php. I read in the Filemaker manual that ODBC drivers let us be able to CSP query the CSP database using basic SQL calls. Meanwhile, I

Re: [PHP] Unlink Woes

2001-07-23 Thread Sheridan Saint-Michel
Ok that didn't give any output... and I checked in phpinfo() and found safe_mode off. Any other ideas? Sheridan - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: 'Sheridan Saint-Michel' [EMAIL PROTECTED] Sent: Friday, July 20, 2001 12:12 PM Subject: RE: [PHP] Unlink Woes

[PHP] Speeding up MySQL querys

2001-07-23 Thread Jome
Hello, for the moment I'm trying to write searchengine kind-of-thing in PHP using MySQL, however MySQL tend to be very slow when searching. My table is about 100 mb and the query is SELECT * FROM search WHERE search.content LIKE '%$keyword%' OR search.filnamn LIKE '%$keyword%' I've tried

Re: [PHP] Speeding up MySQL querys

2001-07-23 Thread Miles Thompson
The key to speed with SQL databases is INDEX. You are doing sequential reads of the contents of each of these fields; no matter what database you used performance would be atrocious. Can you break some keywords out of your text, and assign them to fields like keywd1, keywd2, etc.? How often

Re: [PHP] mail with html

2001-07-23 Thread Sheridan Saint-Michel
You just need to have the proper MIME information deopending on what exactly you are trying to do. Also, the HTML must be in Quoted Printable Format. If you have PHP configured with imap you can just run your message through the imap_8bit function (or so I am told... I didn't have that luxury =P

[PHP] session on win32

2001-07-23 Thread Dieter Stolpmann
Hi, I can't get session_register() to work on a win2k system with IIS4. After creating the session 'session_start()' and registering a variable 'session_register(counter)' which is set a a non zero value, the only thing, the session data file contains is: !counter| The value never gets stored!

[PHP] Send variables from php to dll and back.

2001-07-23 Thread Ryan Marrs
I'm trying to call a VB DLL to run validation checks on user input. I know nothing of VB, or even how to call a DLL for something like this, so I'm going to need to be shown like a newbie. I've already read over Luiz Fernando's request and responses, and they didn't seem to help me. For

[PHP] templates

2001-07-23 Thread Kurth Bemis
i've been looking for a template site that i used and never bookmarked. I'll tell you what i remember about the site and hopefully someone will know what site i'm talking about. I've spend the last 5 hours looking for this siteso this is my final stab in the dark. The site had 4

Re: [PHP] templates

2001-07-23 Thread Jack Sasportas
Your web browser should have a history option, and you can sift through the list of domains you surfed that approximate time frame ago...Also you can search in some applications like netscape the history file, and look for key things like templates... Good Luck Kurth Bemis wrote: i've been

[PHP] Another how do i question

2001-07-23 Thread Kyle Smith
I made this code for a simple for (the end of it) but what do i change in the $message variable so there is a new line between each other variable in $message (ive tried $name. br. $last_name and. happens) ?php $email = [EMAIL PROTECTED]; $subject = Mini survey; $message = $name.

Re: [PHP] templates

2001-07-23 Thread Kurth Bemis
At 11:29 AM 7/23/2001, Jack Sasportas wrote: I last visited this site about 2 months ago...too long for any history :-( Your web browser should have a history option, and you can sift through the list of domains you surfed that approximate time frame ago...Also you can search in some

Re: [PHP] Another how do i question

2001-07-23 Thread Matt Greer
on 7/23/01 6:25 PM, Kyle Smith at [EMAIL PROTECTED] wrote: I made this code for a simple for (the end of it) but what do i change in the $message variable so there is a new line between each other variable in $message (ive tried $name. br. $last_name and. happens) Did you try

Re: [PHP] Another how do i question

2001-07-23 Thread Matt Greer
on 7/23/01 10:49 AM, Matt Greer at [EMAIL PROTECTED] wrote: on 7/23/01 6:25 PM, Kyle Smith at [EMAIL PROTECTED] wrote: I made this code for a simple for (the end of it) but what do i change in the $message variable so there is a new line between each other variable in $message (ive tried

[PHP] Resolution

2001-07-23 Thread Kyle Smith
is there a code to show a users screen resolution and/or make a webpage go to a certain page of the site depending on the users screen resolution? -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

Re: [PHP] Resolution

2001-07-23 Thread Tyler Longren
I don't believe you can get screen resolution with PHP. You'd need to use something client side, such as Javascript. Tyler - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 6:45 PM Subject: [PHP] Resolution is there a code to

Re: [PHP] templates

2001-07-23 Thread Jack Sasportas
For future purposes you should set your history to expire some ridiculous time in the future. I still reference sites from as far back as 2 years ago... It's really nice to be able to do that. I use netscape and my setting is 999 days.. Jack Kurth Bemis wrote: At 11:29 AM 7/23/2001, Jack

Re: [PHP] Keeping fields out of URL

2001-07-23 Thread Tyler Longren
You forgot to put method=POST in your form action=blah.php should be: form action=blah.php method=POST Tyler - Original Message - From: Shrout, Ryan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 10:55 AM Subject: [PHP] Keeping fields out of URL How can I keep

RE: [PHP] Resolution

2001-07-23 Thread Gonyou, Austin
If you want to see what you can get from the client, serverside. Please run the following: ? phpinfo(); ? Put that into some php file, and it will tell you what PHP will allow you to get be default. I feel that the JS answer is about as correct as your going to get. -- Austin Gonyou Systems

Re: [PHP] Keeping fields out of URL

2001-07-23 Thread Matt Greer
on 7/23/01 10:55 AM, Shrout, Ryan at [EMAIL PROTECTED] wrote: How can I keep fields in a form out of the URL? I am writing a basic PHP/login script to password protect a directory of the web site (if anyone knows of something pre-made, please do let me know). If you're on a unix server

RE: [PHP] Resolution

2001-07-23 Thread Rudolf Visagie
Hi Kyle, I use the following: script language=JavaScript !-- hide from none JavaScript Browsers function PassScreenWidth(what) { document.login_frm.screen_width.value=what } function GetScreenSize() { var screen_width =

Re: [PHP] Email Software

2001-07-23 Thread Gregor Welters
Am Mittwoch, 18. Juli 2001 14:50 schrieb Wee Chua: Hi all, I need a little help from you guys. Can anyone tell what is the best software for sending million emails at a time or something like that? sendmail -- mfg Gregor Welters -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Send variables from php to dll and back.

2001-07-23 Thread Patrick Lynch
What you are probably looking for is: http://www.php.net/manual/en/class.com.php Make a COM object out of your VB DLL (more info on this is available on a VB faq). You can use the functions on the page above to access the functionality of the COM object. Best Regards, Patrick Lynch.

Re: [PHP] Resolution

2001-07-23 Thread Daniel Rezny
Hello Kyle, Tuesday, July 24, 2001, 1:45:00 AM, you wrote: KS is there a code to show a users screen resolution and/or make a webpage go to a certain page of the site depending on the users screen resolution? KS -legokiller666- KS http://www.StupeedStudios.f2s.com KS New address new site

[PHP] REPOST: Image color quality problems

2001-07-23 Thread Kurt Lieber
I need to learn to stop posting things over the weekend since they rarely get a response. Can anyone help with the below?: I have the following code that takes an existing image, creates a new one from it and writes some white text on top of that image: ?php header(Content-type: image/png);

RE: [PHP] Another how do i question

2001-07-23 Thread Patrick Lynch
Unless you are sending HTML mail, you need to use newline - not BR ?php $email = [EMAIL PROTECTED]; $subject = Mini survey; $message = $name . \n . $last_name . \n . $age . \n . $system . \n . $res . \n . $cpu . \n . $comments; mail($email, $subject, $message); ? Best Regards, Patrick Lynch.

[PHP] Add system user using php

2001-07-23 Thread Mark Lo
HI, I would like to know how to add a system user using php. etc. adduser mark..and then passwd mark --password -- password. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Why wont this work?

2001-07-23 Thread Dan Krumlauf
news_publish.php *** ?php function DoTemplate() { $filedir = func_get_arg(0); $filename = func_get_arg(1); $news = func_get_arg(2); $tempfile = fopen ($filedir . / . $filename . .html, r) or die (Failed to open template file $filename); while($templine=fgets($tempfile, 4096) ) {

RE: [PHP] Why wont this work?

2001-07-23 Thread Mark Roedel
-Original Message- From: Dan Krumlauf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 11:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Why wont this work? news_publish.php *** [snip] $templine = preg_replace(/(NEWS)(.*?)(\/NEWS)/i,\\1$news\\2,

Re: [PHP] Why wont this work?

2001-07-23 Thread PatlsSoda
Your line in in news_publish.php is: while($templine=fgets($tempfile, 4096) ) { if you want to test if $templine is equal to fgets($tempfile, 4096) then you should use 2 equal signs. So, while($templine==fgets($tempfile, 4096) ) { 1 equal sign sets the value of the right side to the left.

RE: [PHP] sleep() function question

2001-07-23 Thread Patrick Lynch
Is output_buffering = On set in the php.ini file? If it is set to on, no content or headers are sent back to the browser until the whole page has been processed by PHP. Best Regards, Patrick Lynch. Eirco Web: http://www.eirco.com -Original Message- From: Andrew Brampton

Re: [PHP] number generat {Luhn algorithm}

2001-07-23 Thread Christopher Ostmo
Yamin Prabudy pressed the little lettered thingies in this order... anybody know about the Luhn algorithm ?? how can i do that in php yamin http://www.zend.com/codex.php?id=31single=1 Christopher Ostmo a.k.a. [EMAIL PROTECTED] AppIdeas.com Innovative Application Ideas Meeting cutting

[PHP] D d d d database?

2001-07-23 Thread Kyle Smith
ok i dont know the first thing about data bases so could someone please guide me through the process of making a score board for a flash game i have made with the variables $name and $score?? (note: i have hosting at f2s.com so i have to use myADMIN) -legokiller666-

[PHP] Zip Code Locator?

2001-07-23 Thread Vincent P. Cocciolone
Hi, Does anyone know where can I find documentation or example scripts for a zip code locator. I'm looking for something that will list other zip codes within a number of miles radius of the zip specified. Thanks! Vince -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Single Digit in Double digit column

2001-07-23 Thread Rehuel Lobato de Mesquita
guys, I don't know If this is the rigth place to ask this question, but please help me! I have a mySQL table, where the ID field is an auto increment number (INT(2)). I have a query that selects 2 colunms in the table and the lists them But only the items with a double digit id are displayd. it

[PHP] Re: Another how do i question

2001-07-23 Thread Rehuel Lobato de Mesquita
Hey Kyle... Try \r\n instead of \n I had the same problem, and this fixed it for me! (someone on the net tipped me on this one!) Stretsh Kyle Smith [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I made this code for a simple for (the end of it) but what do i

[PHP] Author.class - Does it exist?

2001-07-23 Thread Mike Gifford
Hello, Does anyone know if there's a GPL author class out there? There are online book stores bibliographies all need to manage author names in a similar way (I would think), and I'd just like to not recreate the wheel if I don't have to. Mike -- Mike Gifford, OpenConcept Consulting,

[PHP] Re: One2Many Logic Problem - phpMySQL bibliography

2001-07-23 Thread Mike Gifford
Hello Steve, Thanks for the response. I tried to reply to this earlier, but seems like Mozilla ate it. :( Steve Brett wrote: wouldn't the structure of the database be determined by the fact you have a many to many relationship ? i.e. the two tables would decompose into three with a

RE: [PHP] REPOST: Image color quality problems

2001-07-23 Thread SED
I had the same problem when using JPEG, but having a white pixel in the picture solved it. But that did obviosly not solve your problem. Perhabs this is due to bug-version of GD library, have you tried a newer one? Does this also happen if you use JPEG and GIF files? Let us know if you find

[PHP] PHP Uploads - Sorry!!!

2001-07-23 Thread Corin Rathbone
Sorry to again bring up the subject, but could somebody please help me with file uploads. I have written the script below, but it doesn't work properly. please help. Alternatively, could somebody give me a simple upload script. My system is Win 98, Apache 1.3.17, php 4.0.5, IE5. The code is

[PHP] Using $$ to access a variable

2001-07-23 Thread usenet5
Please forgive my probably newbie question... I am cycling thru my database using a SQL describe statement and then am getting values from a form based upon the field name I find. This is working up 'til I try to read the form data. I have defined a variable like this: $var =

[PHP] javascript ?

2001-07-23 Thread Angel Behar
Hi !!! I know maybe this is not the right place to make this question but I have been a PHP user for long time and this list had been very helpful. I want to create a form which once you select a radio button or a drop down menu display the proper fields according to the selection. Let say

[PHP] Re: [PHP-DEV] Re: IMAP/POP3 Administration API?

2001-07-23 Thread Vlad Krupin
...None of them will. This is not a part of IMAP protocol; it is part of the mail server, and each server does that in its own way. On a brighter note - if you use qmail, there is a very nice patch for it that will allow to store users in a mysql database, so you can use php to add/delete users

[PHP]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo
hey- I have a piece of code which does a simply INSERT query into an mp3 table. I've tested it out, and it completes the query, however there is one bug that I just have no clue about. this code does not work when i try to connect to the db: include(lib/db_config.php); $connection =

[PHP] Re: Why wont this work?

2001-07-23 Thread James, Yz
Hi Dan, try changing: $tempfile = fopen ($filedir . / . $filename . .html, r) or die To: $tempfile = fopen ($filedir . / . $filename . .html, r) or die for starters ;) James. Dan Krumlauf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... news_publish.php

[PHP] PHP, Excel, .CSV's, and Regular Expressions Help Needed!

2001-07-23 Thread Jeff Lacy
Hello Everyone, A client of mine is working with excel, and I need to move the data from excel to something php can deal with a little better. Naturally, I figured using .csv would be easiest, but I am running into several problems.I can get around them, but I need a regular expression (and

RE: [PHP] Networking

2001-07-23 Thread Matthew Loff
I don't see why you wouldn't be able to access that share... Did you try escaping the path? e.g. chdir(computer\\dir); -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 6:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Networking Hey does any

  1   2   >