Re: [PHP] problem with $_POST

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 20:57, schreef Adam Williams: Does anyone know why it is not working with $_POST but works fine with $_GET? I don't know, but maybe you has to put around POST, method=POST. It works then with GET, cause that's default. Maybe something else is wrong, so method

[PHP] sessions

2002-08-14 Thread apollo
hi, after submit i use: if (isset($submit)) header (Location: url?.sid); i want continue my session in next page, but SID (my session's unique id) is lost in nex page, so i can't. What's wrong ? Any ideas ? apollo, just me -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: ADVANCED PHP (SOCKETS)

2002-08-14 Thread Philip Hallstrom
Take a look at the pcntl functions. In particular the pcntl_fork() function. On Wed, 14 Aug 2002, Gustavo Almeida wrote: I would like to know, what I have to do to make my application handle multiple connections? My current application only handle one user per time. Sorry about my

Re: [PHP] sessions

2002-08-14 Thread Adam Williams
I think you'll need to use header (Location: url?.print SID); Adam On Wed, 14 Aug 2002, apollo wrote: hi, after submit i use: if (isset($submit)) header (Location: url?.sid); i want continue my session in next page, but SID (my session's unique id) is lost in

[PHP] apache seg fault (sig 11)

2002-08-14 Thread Pete James
Wondering if any of the gurus out there have any insight... I'm running a set of php scripts using nested output buffering + sessions and I'm getting sporadic seg faults. If I turn off output buffering it seems to work fine, which would be great if I didn't need it. I'd post code, but there's

[PHP] mysql statement (still a semi newbie)

2002-08-14 Thread Alexander Ross
What is wrong with the statement below? Am I using DEFAULT incorrectly? That first column is an auto_incrementing column so i don't want any data to get inserted there. Thanks for you help. INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart', 'male'); Thanks! Alex --

[PHP] [Class] global again, not working?

2002-08-14 Thread Tim Stoop
Hi people, Again, a problem with global. Maybe you can shed a light on this one... Consider this part of a class (with [...] I marks things I left out, which aren't important for the problem, FAFAIK): class FotoView { [...] var $fotos; var $cats; var $start;

[PHP] Simple Mail

2002-08-14 Thread Dave Leather
Something is VERY weird with trying to send mail. I am running Apache for windows and trying to send mail... using a line such as mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); But I get an error of Warning: Failed to Connect in c:\program files\apache

[PHP] Re: PHP AND JAVA

2002-08-14 Thread Tim Stoop
Alexandra Aguiar wrote: may i use php with JAVA (note. not JAVASCRIPT , but JAVA APPLETS) !?! Depends on what you want to achieve. As long as the final embed is correct (i.e. the one that is sent to the client, after php-parsing), no problem at all. -- Kind regards, Tim -- PHP General

RE: [PHP] mysql statement (still a semi newbie)

2002-08-14 Thread vic
U must write: mysql_query(INSERT INTO cast SET Rick='$Rick', Blaine='$Blaine', Humphrey='$Humphrey', Bogart='$Bogart', male='$male'); The stuff with the $ before them are variable that contain the info u want to put into the word that don't have the $ those words are the cells in your database.

[PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Tim Stoop
Alexander Ross wrote: That first column is an auto_incrementing column so i don't want any data INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart', 'male'); I think you need to use NULL instead of DEFAULT... I'm not 100% sure. Just try it :) -- Kind regards, Tim --

[PHP] Re: Simple Mail

2002-08-14 Thread Tim Stoop
Dave Leather wrote: Something is VERY weird with trying to send mail. I am running Apache for windows and trying to send mail... using a line such as I think you need a local SMTP-server, or at least your SMTP-server configured in PHP (don't know exactly what you need to change in php.ini

[PHP] html parsing from html file through php

2002-08-14 Thread victor
Hello, I am making an app that read from an html file outputted by MS word (ya its for those people that need to make webpages but don't know how o write html) anyway, using MS word is a requirement; After the user saves their .doc file as a web page (now and htm file) the php will take that html

[PHP] Re: ADVANCED PHP (SOCKETS)

2002-08-14 Thread J Smith
Although pcntl and fork() were mentioned, you might want to look at socket_select() as an alternative. Using socket_select(), you can set up a multiplexer to handle multiple sockets at the same time. (Or roughly the same time...) J Gustavo Almeida wrote: I would like to know, what I

RE: [PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread César Aracena
Tim's right about NULL. You can either specify what exactly are the fields of the row you want to update/insert using SET before VALUE (seek the manual at www.mysql.com for more info) or you can just write NULL (without any quotes) where the fields are automatic like *auto_increment* or like

[PHP] Re: html parsing from html file through php

2002-08-14 Thread JJ Harrison
Hello, I am making an app that read from an html file outputted by MS word (ya its for those people that need to make webpages but don't know how o write html) anyway, using MS word is a requirement; After the user saves their .doc file as a web page (now and htm file) the php will take

[PHP] P.S. html parsing from html file through php

2002-08-14 Thread victor
Actually I think there is even less work to be done, the paragraph spacing problem I talked about earlier can be avoided if I leave all that foobar tags and erase only: html xmlns:o=urn:schemas-microsoft-com:office:office xmlns:w=urn:schemas-microsoft-com:office:word

[PHP] PHP and Samba

2002-08-14 Thread Erich Kolb
Is there any way to determine if someone is logged in to a Samba Domain using PHP? If so, how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Class] global again, not working?

2002-08-14 Thread Bas Jobsen
Hi, do -- echo $data[0]*$data[1]); return ($data[0]*$data[1]); -- i think its empty. In the first place, i thought it was maybe impossible to call a class-functions in your constructor. (Cause the class function don't exists at the moment you call your constructor). But the code below showed

RE: [PHP] Re: html parsing from html file through php

2002-08-14 Thread vic
Thanks, I will try to adapt this to my needs. - Vic -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: html parsing from html file through php Hello, I am making an app that read from an

[PHP] file_get_contents ( string filename [, int use_include_path])

2002-08-14 Thread victor
Can someone explain me more abou the usage of this code: file_get_contents ( string filename [, int use_include_path]) I just got it from the annual, and I still don't get what they mean by string filename and int use_include_path Thanks, This has to do with the other question I posted

Re: [PHP] file_get_contents ( string filename [, int use_include_path])

2002-08-14 Thread Bas Jobsen
string filename The name of the file. b.e test.html or $_SERVER['DOCUMENT_ROOT'].'test.html' int use_include_path Optional 1 true or 0 (or nothing) false the file above is in my default include path. Manual: you can use the optional second parameter and set it to 1, if you want to search for

Re: [PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Sascha Braun
I'm always making my inserts like this: $Insert = INSERT INTO basket_db (name, image_id, customer_id, session_id) ; $Insert .= VALUES ('$name', '$image_id', '$customer_id', '$PHPSESSID'); ...and I'm using the SET Field = '$Value' in the Update Querys like this: $UpdateQuery = UPDATE produkt ;

[PHP] SESSION Security

2002-08-14 Thread Sascha Braun
Is it possible that someone from outside can read the session stored on my webserver for getting unencrypted password and usernames? Schura

Re: [PHP] Two version of php in the same system

2002-08-14 Thread Breno Cardoso Perucchi
I did all things that you talked. I put below in my httpd.conf those lines. Thanks AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Action application/x-httpd-php403 /ver403/php ScriptAlias /ver403/ /usr/local/php/ver403/bin AddType

Re: [PHP] SESSION Security

2002-08-14 Thread Ilia A.
If a person 'somehow' gains read access to the directory where the sessions are stored on your server, then yes it is possible for them to get the session id. Ilia On August 14, 2002 06:41 pm, Sascha Braun wrote: Is it possible that someone from outside can read the session stored on my

Re: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun
So, if somebody gets an ftp account somehow, he will be able to get session vars via a system() command? - Original Message - From: Ilia A. [EMAIL PROTECTED] To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 1:27 AM Subject: Re: [PHP]

Re: [PHP] SESSION Security

2002-08-14 Thread Ilia A.
On August 14, 2002 07:03 pm, Sascha Braun wrote: So, if somebody gets an ftp account somehow, he will be able to get session vars via a system() command? If their FTP client allows them to go into the directory where session ids are stored, then that user will be able to see current session

Re: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun
So, the system() command allows a user only to start services in his own home direktory? - Original Message - From: Ilia A. [EMAIL PROTECTED] To: Sascha Braun [EMAIL PROTECTED]; PHP Mailingliste [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 1:36 AM Subject: Re: [PHP] SESSION

Re: [PHP] SESSION Security

2002-08-14 Thread Ilia A.
On August 14, 2002 07:12 pm, Sascha Braun wrote: So, the system() command allows a user only to start services in his own home direktory? Uhm... I am a little confused, how does system() command relate to FTP access? Ilia - Original Message - From: Ilia A. [EMAIL PROTECTED]

[PHP] mysql_num_rows($Result)

2002-08-14 Thread Sascha Braun
Mh, right yet I have another problem. I want to select a username an a = password from a database. The Values for tghe select are stored in a = session variable. And my problem is, that when I run the Query there is no difference in = the mysql_num_rows($Result) it both time (When the User is

Re: [PHP] SESSION Security

2002-08-14 Thread Bas Jobsen
Op donderdag 15 augustus 2002 01:03, schreef u: So, if somebody gets an ftp account somehow, he will be able to get session vars via a system() command? You holds him in its own dir by the chroot setting of you ftpserver. via a system(); you mean if they upload a php file? prevent that with

Fw: [PHP] SESSION Security

2002-08-14 Thread Sascha Braun
Yeah, I guess I meant that! - The Attacker just needs to upload a nice PHP Script wich is able to spy all serverpathes, maybe via phpinfo() and then open each file stored in the session tmp path via dir_list() funktion, hope this was the right funktion, but there are some, with php it's

Re: [PHP] mysql_num_rows($Result)

2002-08-14 Thread Bas Jobsen
In your database design you need the following every username/pass comb is unique. so a query like ... WHERE username='$testvalue' AND password='$testvalue2' Have to give you one row for a good user/passcombination ALWAYS. And 0 rows for a wrong combination. If NOT your design doesn;t fit

[PHP] Include/require and the HTML Code

2002-08-14 Thread Mike Eales
Hi, Can anybody tell me why I get a Parse error: parse error, unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line 17 for the following code: Appreciate any help. Using PHP 4.2.2 and Apache 1.3.26 on Redhat 7.3 x86 (The stuff is not part of the code.

[PHP] mysql_num_rows();

2002-08-14 Thread Sascha Braun
This is my query with some dummy loginformations: SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = 'hals' and this is the code i use for the database transaction: $Query = SELECT * FROM benutzer_db where Benutzername = '.$SESSION['nickname'].' ; $Query .= AND Passwort =

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Sascha Braun
Maybe something wrong with the return? I was thinking about return What?. (U understand me?) in Javascript a simple return does nothing. maybe you can just leave the return out of your script. - Original Message - From: Mike Eales [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Bas Jobsen
Can anybody tell me why I get a Parse error: parse error, unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line begin and end your include files with ? and ? ? function HtmlHeader() { ? bllaalla ? return; } ? -- PHP General Mailing List (http://www.php.net/)

[PHP] Batch E-Mail Problem

2002-08-14 Thread Daren Cotter
I have a PHP script that queries a MySQL database, retrieves email addresses, and sends an email to all members of a website. The problem is this: the PHP script times out after sending about 5,000 mailings, and I have to restart it 10 times in order to mail the entire list! This is an ongoing

[PHP] LIB PHP V4.0.3 - Construction of GIF that the versions recent PHP doesn't have

2002-08-14 Thread Breno Cardoso Perucchi
Hello, In the version 4.0.3 a library that made construction gif existed. You were able to to manipulate or to create a gif. In them version superiors that Lib stopped doing part of PHP. Somebody could tell me that could do to solve my problem with the version of most recent Php. thanks

RE: [PHP] P.S. html parsing from html file through php

2002-08-14 Thread vic
Why is this giving me no results? (blank page with this source: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=windows-1252/HEAD BODY/BODY/HTML this is the code --- ?php $path =

[PHP] Re: Session, error occurs

2002-08-14 Thread Daniel Canil
Per [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Daniel Canil wrote: I have jsut recently installed a php development kit on my windows platform. Im interested in using the session functions but I am recieving this error when I use session_start():

Re: [PHP] ldap_rename refused to work

2002-08-14 Thread Roger Thomas
--- Stig Venaas [EMAIL PROTECTED] wrote: But you're not doing what I wrote... :) or else i won't be asking hehehe The third parameter should be the new rdn (which is the same as the old), and the fourth should be new parent. So it should look like this: $r=ldap_rename($ds,

[PHP] CURLing to authorize.net

2002-08-14 Thread Mike Mannakee
The server I'm on has php compiled with curl and with ssl, so that's not an issue. I cannot seem to connect to authorize.net, however, using https://. If I use http://, it works fine. Below is the code I'm using. I know someone out there has tackled this problem before and I'm hoping you can

Re: [PHP] ADVANCED PHP (SOCKETS)

2002-08-14 Thread Ninety-Nine Ways To Die
I've got a fully functioning socket server that I use for monitoring written in PHP... email if you want the full script, too big to waste peoples time with here. --- /* Neunzig neun Möglichkeiten zu sterben // Ich bin nur ein anderer Zahn in der Maschine. */ On Wed, 14 Aug 2002 15:09:09

[PHP] Global asa

2002-08-14 Thread Cokis
Hi news, Is there any similarity global.asa in ASP at PHP ? thank's Hotma MS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Peter Houchin
Mike, i had no problems with this.. !-- index.php -- ? include('Functions.inc'); HtmlHeader(); ? # Do things ? HtmlFooter(); ? !-- Functions.inc-- ? function HtmlHeader() { ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN htmlhead

[PHP] PHP native session

2002-08-14 Thread Mattia
I'm looking for a way to have a list of the users logged in my site (with a session_start() ). Is it possible to do it with the php4 api? thanks Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_num_rows();

2002-08-14 Thread Jason Wong
On Thursday 15 August 2002 07:35, Sascha Braun wrote: This is my query with some dummy loginformations: SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = 'hals' and this is the code i use for the database transaction: $Query = SELECT * FROM benutzer_db where

[PHP] Strange session id problem - code is issuing a new one randomly

2002-08-14 Thread Thoenen, Peter Mr. EPS
# START CODE SNIPPET ... COMMENTS BELOW (and yes I am not a db guru by anymeans, might be easier ways to do this) ?php session_start(); $tsid=session_id(); echo $tsig; # debug $date=date(ymdHi); $connect=mysql_pconnect('localhost', 'user', 'pass'); mysql_select_db('db',

RE: [PHP] Strange session id problem - code is issuing a new one randomly

2002-08-14 Thread Dan Harrington
I'm having the same problem from time to time as well. Just straight up out of the blue it gives you a new SESSION id. --I'm interested to know what version of PHP you are using and what web server and its version too. Thanks Dan -Original Message- From: Thoenen, Peter Mr. EPS

[PHP] Php.ini on Solaris?

2002-08-14 Thread Randall Perry
Just compiled Apache 1.3.26 with latest php and discovered my form variables weren't getting thru to php scripts. Looked through archives and found ref to register_globals setting in php.ini. Only trouble is, I can't find php.ini on my server (except in the php source code folder). Where should

Re: [PHP] Php.ini on Solaris?

2002-08-14 Thread Justin French
Run a script with phpinfo() in it, and it should tell u the path to the php.ini file for your installation. It will be different for everyone. For what it's worth, you should look to having register globals OFF in your scripts as a short term goal, using the $_POST, $_GET, $_COOKIE, $_SESSION

Re: [PHP] Strange session id problem - code is issuing a new onerandomly

2002-08-14 Thread Chris Shiflett
Dan Harrington wrote: I'm having the same problem from time to time as well. Just straight up out of the blue it gives you a new SESSION id. As a general rule, the reason that you will find yourself with a new session ID is that the old session ID was not properly communicated back to the

RE: [PHP] Php.ini on Solaris?

2002-08-14 Thread Peter Houchin
is usually in /usr/local/lib -Original Message- From: Randall Perry [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 11:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Php.ini on Solaris? Just compiled Apache 1.3.26 with latest php and discovered my form variables weren't

RE: [PHP] CURLing to authorize.net

2002-08-14 Thread Jonathan Rosenberg
I bet that your copy of CURL was built without SSL support, despite the fact that PHP has SSL compiled in. To test this, see if you have the curl shell command installed try curl https://secure.authorize.net/gateway/transact.dll It will probably say something like curl built

[PHP] SSL and sessions: is same session valid across SSL and non-SSL

2002-08-14 Thread Jean-Christian Imbeault
I start a session under an SSL connection (https), do some work, and then register some variables. I then do a header(location: http:/somepage.php). the page is loated on the same server that was doing the SSL work. My question is are the session variable I registered under the SSL

Re[2]: [PHP] PHP - class question

2002-08-14 Thread Tom Rogers
Hi, Thursday, August 15, 2002, 5:17:00 AM, you wrote: MA Well, I actually have a full db class which has a connect and close method MA as well as query, fetch_array, etc... What I really want to know is how to MA use the methods in my db class from another class (myclass for example).. MA Do I

[PHP] how do i continue with ereg replace?

2002-08-14 Thread victor
I want to have the ereg_replace action happen many times before the result is echoed, how do I do this? The following is the code that I have that obviously is flawed because the later variable as afar as ai know cancels out the first one... $good = ereg_replace(o:p/o:p, , $str); $good =

Re: [PHP] how do i continue with ereg replace?

2002-08-14 Thread Rasmus Lerdorf
So pass $good into the second call instead of $str On Wed, 14 Aug 2002 [EMAIL PROTECTED] wrote: I want to have the ereg_replace action happen many times before the result is echoed, how do I do this? The following is the code that I have that obviously is flawed because the later variable as

[PHP] ereg_replace()

2002-08-14 Thread Liam MacKenzie
Hi guys, I'm looking to get a specific bit of data out of a slightly complex amount of data. Ok, I have this in a variable: User : [EMAIL PROTECTED] Dir : /home/eXtremail/mbox/i-redlands.net/3/1/liam Forward : Copy : Account mapping : User Disk Quota : 0 Disk Space

[PHP] stupid question

2002-08-14 Thread Liam MacKenzie
Ok, I'm having a blonde day... If $idx == 1, 4 or 9 I don't want it to echo $results. I have this, what's the syntax to put multiple values in there? if ($idx != 1) { echo$results; } Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] stupid question

2002-08-14 Thread César Aracena
Just usa an OR concatenator like: If ($idx != '1' OR $idx != '4' OR $idx != '9'){ echo $results; } Remember that if you are echoing just $result, it should not be enclosed into double quotes... just a tip. -Original Message- From: Liam MacKenzie [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] stupid question

2002-08-14 Thread Adam Williams
if ( ($idx != 1) || ($idx != 4) || ($idx != 9) ) { echo $results; } Adam On Thu, 15 Aug 2002, Liam MacKenzie wrote: Ok, I'm having a blonde day... If $idx == 1, 4 or 9 I don't want it to echo $results. I have this, what's the syntax to put multiple values in

Re: [PHP] stupid question

2002-08-14 Thread Chris Shiflett
There are other ways of doing this, but I think you might be looking for the logical AND operator (). if ($idx != 1 $idx != 4 $idx != 9) Happy hacking. Chris Liam MacKenzie wrote: Ok, I'm having a blonde day... If $idx == 1, 4 or 9 I don't want it to echo $results. I have this, what's

[PHP] Re: stupid question

2002-08-14 Thread Jean-Christian Imbeault
Liam, when you want to post a new message to the list don't just hit the reply button and change the subject. If you do that you message appears in the thread of the message you replied to. It really messes things up for people who follow message threads. And worse you might not get any

Re: [PHP] Re: stupid question

2002-08-14 Thread Liam MacKenzie
Ok, point taken. Sorry, I didn't know. Also, thanks for the help, I got it :-) - Original Message - From: Jean-Christian Imbeault [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 1:52 PM Subject: [PHP] Re: stupid question Liam, when you want to post a new

Re: [PHP] stupid question

2002-08-14 Thread Chris Shiflett
César Aracena wrote: Just usa an OR concatenator like: If ($idx != '1' OR $idx != '4' OR $idx != '9'){ echo $results; } Actually, this statement will always evaluate to true. I think you mean to use . Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Automatically send email on special day

2002-08-14 Thread NoWhErEMan
Hi all, My site maintain a list of members, which i knew their birthday, and i want to send a email greeting to them on their birthday, of course, automatically. How can i do that? Thanks in advance Nowhereman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Another stupid one...

2002-08-14 Thread Liam MacKenzie
Hey all, got another dumb question :-) Output text is as follows: User : [EMAIL PROTECTED] I do this: $results = ereg_replace(User :, '', $results); I get this: User : [EMAIL PROTECTED] But when I do this: $results = ereg_replace(User, '', $results); I get this: : [EMAIL PROTECTED] How

[PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Bogdan Stancescu
Ok, I'm not positive I'm right here, but have you thought about the browser timing out - and not PHP? You may try doing an echo( ); and a flush(); every 100 e-mails or so - and reset max exec time to a reasonable duration while you're at it - that *might* fix it. Please note that executing

RE: [PHP] stupid question

2002-08-14 Thread César Aracena
You got a point there... unless you change the operator from != to == right? Missed that. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:00 AM To: César Aracena Cc: 'Liam MacKenzie'; [EMAIL PROTECTED] Subject: Re: [PHP] stupid

[PHP] Re: Another stupid one...

2002-08-14 Thread Bogdan Stancescu
Just stop using ereg_replace where not needed and use str_replace instead - it's faster and you don't risk bumping into key-chars like you just did. While regexps are very useful when needed, people tend to use the same functions even when they don't need regexps just out of habit... There,

[PHP] md5() ...

2002-08-14 Thread Reymond
I have login = “sysdata” and password = “sysdata” on md5 function How to select md5 function mysql select COUNT(*) AS result from User where login = “sysdata and password = md5(sysdata); +---+ | result | +---+ | 0 | +---+ 1 row in set (0.00 sec) I wanna the result display

[PHP] Re: Another stupid one...

2002-08-14 Thread NoWhErEMan
? $text = User : [EMAIL PROTECTED]; $results = ereg_replace(User :, '', $text); echo $results; ? I get: [EMAIL PROTECTED] Liam Mackenzie [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :003a01c24410$358fd7a0$[EMAIL PROTECTED] Hey all, got another dumb question :-) Output text is as follows: User : [EMAIL

[PHP] Re: Automatically send email on special day

2002-08-14 Thread Bogdan Stancescu
I suppose you want to use PHP - just set a cron job to run wget or lynx on that page every day. Alternatively, set a cron job to run a command-line php every day (it's somewhat faster) - but I think there are a couple of restrictions on the configuration, so if that doesn't work, just fall

Re: [PHP] Re: Another stupid one...

2002-08-14 Thread Liam MacKenzie
Ahh, I just found the problem... This is the source of the output: td valign=top align=leftUser : [EMAIL PROTECTED] /td Whoops... Sorry guys. The reason I'm having troubles with all this stuff is that it's all being pulled out of a hard database using telnet. Yeah, it's the

RE: [PHP] Automatically send email on special day

2002-08-14 Thread César Aracena
This have been very much discussed in this list, and the only logical way of doing this through PHP would be to have a script that reads the actual date of the server's system once a day, but that would be just impossible without having that script (page) reloaded at least once a day. I think

Re: [PHP] md5() ...

2002-08-14 Thread Chris Shiflett
Show us the output of: select login, password from user where login='sysdata'; My guess is that the password is not 1b1c2457d12dd976d4cfa556ac6661f6 - the md5 of sysdata. Chris Reymond wrote: I have login = sysdata and password = sysdata on md5 function How to select md5 function

Re: [PHP] Automatically send email on special day

2002-08-14 Thread Liam MacKenzie
Hey, if you don't have access to CRON, you could try and include the page in your index.php. Set it so it only runs once though, per day. That means that as soon as someone visits your site they activate it for that day. It'd only work if you had the traffic though. Just an idea. Then again,

Re: [PHP] Another stupid one...

2002-08-14 Thread Justin French
For starters, use str_replace() because you've got nothing that needs the overhead of ereg. The : is a key character too, which is creating your problem. $results = str_replace('User :', '', $results); Justin French on 15/08/02 1:59 PM, Liam MacKenzie ([EMAIL PROTECTED]) wrote: Hey all,

RE: [PHP] md5() ...

2002-08-14 Thread Reymond
This is output... select login, password from User where login = 'sysdata'; +-+--+ | login | password | +-+--+ | sysdata | 1b1c2457d12dd976d4cf | +-+--+ 1 row in set (0.00 sec) Cause I just

RE: [PHP] md5() ...

2002-08-14 Thread Reymond
Upss sorry... My password's field Varchar(20) ... -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:17 AM To: Reymond Cc: [EMAIL PROTECTED] Subject: Re: [PHP] md5() ... Show us the output of: select login, password from user where

RE: [PHP] Automatically send email on special day

2002-08-14 Thread César Aracena
Not ignored Lian. That idea is great but only if you are 100% sure that your site is going to have at least one visitor per day. If you want to setup a script like that in your pet's dedicated page, which maybe will not have that many visitors at first, you will probably miss a lot of

[PHP] frames and variables

2002-08-14 Thread victor
Has anyone here designed php sites that use a combination of php pages and html pages? What I want to know is how to pass a variable from nav_frame.php (at the top) to itself, AND to the data.php frame (lower frame, main body) I can pass variables to itself, (with the ?page_name=content.htm

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Michael Eales
This did indeed fix the problem, thanks for the advise. A question though: Why is this necessary, the include/require is called from index.php while in PHP mode ? The functions work fine as if I remain in PHP mode within the functions. It is only when I go in and out of HTML mode within the

Re: [PHP] md5() ...

2002-08-14 Thread Chris Shiflett
Yeah, that's a little short for md5, plus you want to allow alphabetic characters, too. Try varchar(32). Happy hacking. Chris Reymond wrote: This is output... select login, password from User where login = 'sysdata'; +-+--+ | login | password |

Re: [PHP] frames and variables

2002-08-14 Thread Justin French
The only way to talk to multiple frames is with javascript. yuk. Justin French on 15/08/02 2:37 PM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Has anyone here designed php sites that use a combination of php pages and html pages? What I want to know is how to pass a variable from

RE: [PHP] md5() ...

2002-08-14 Thread Reymond
Thank you... I got it... :) -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:44 AM To: Reymond Cc: [EMAIL PROTECTED] Subject: Re: [PHP] md5() ... Yeah, that's a little short for md5, plus you want to allow alphabetic characters,

[PHP] crypt(): how to make it use blowfish?

2002-08-14 Thread Jean-Christian Imbeault
How can I make crypt() use blowfish encryption? Also it seems that my system (RH7.2 Linux) doesn't support Blowfish according to CRYPT_BLOWFISH: CRYPT_BLOWFISH = 0 How can I add blowfish support to my system if crypt() requires it? Jc PS I don't want to use mcrypt(). I just want to install

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Chris Shiflett
I'm not sure about others, but I am glad this behavior is like this. It is very nice for modules to stand on their own so to speak, so that you don't have to worry about what context they are used in. If the file you are including is plain HTML, would you want it to be parsed as if it were

RE: [PHP] frames and variables

2002-08-14 Thread vic
You gotta be kidding me! - Vic -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] frames and variables The only way to talk to multiple frames is with javascript. yuk.

Re: [PHP] Batch E-Mail Problem

2002-08-14 Thread Mirek Novak
Hi, I've solved this problem, if u have cgi version of PHP compiled on your box I can offer simple solution: All e-mails are completely stored into database (MySQL) and are sent using little daemon, also written in PHP, emails can be automaticaly generated or written through web interface,

Re: [PHP] Automatically send email on special day

2002-08-14 Thread NoWhErEMan
I can ensure ar least one visitor per day, that;s me!! Since my server in on my local windows mechine, i can load the page at start up. But i have a question, how can i ensure the script only runs once though, per day? I think it is related to coding Say, my index.php have a script to check

Re: [PHP] frames and variables

2002-08-14 Thread @ Edwin
I think one of the (if not THE) best implementation of frames with PHP/Javascript (HTML,CSS...) is phpmyadmin... http://www.phpmyadmin.net/ Of course, there could be a lot of others... - E The only way to talk to multiple frames is with javascript. yuk. Justin French on 15/08/02 2:37

[PHP] Re: Batch E-Mail Problem

2002-08-14 Thread Manuel Lemos
Hello, On 08/14/2002 08:54 PM, Daren Cotter wrote: I have a PHP script that queries a MySQL database, retrieves email addresses, and sends an email to all members of a website. The problem is this: the PHP script times out after sending about 5,000 mailings, and I have to restart it 10

Re: [PHP] Automatically send email on special day

2002-08-14 Thread Liam MacKenzie
when the function excecutes, it checks the current date, then looks in a little textfile, if it's a match, it stops the script, but if the text file says a different date, it processes the scripts then updates the text file. Follow me? You could also use a MySQL database. - Original

[PHP] Re: ereg_replace()

2002-08-14 Thread Philip Hallstrom
I'd do something like this: $str = User : [EMAIL PROTECTED] Dir : /home/eXtremail/mbox/i-redlands.net/3/1/liam Forward : Copy : Account mapping : User Disk Quota : 0 Disk Space Used : 0 Max In Mail Size : 0 Max Out Mail Size : 0 Autoreply : No Mailbox Access : POP,IMAP Created : Sat Jul 6

Re: [PHP] Automatically send email on special day

2002-08-14 Thread Chris Shiflett
if last_email_date != today { send email last_email_date = today } Happy hacking. Chris NoWhErEMan wrote: I can ensure ar least one visitor per day, that;s me!! Since my server in on my local windows mechine, i can load the page at start up. But i have a question, how can i ensure

[PHP] Got another ripper for you all ;-)

2002-08-14 Thread Liam MacKenzie
Hey guys, yep, another one... I do this: echo -.$dir.-; I get this: -/home/eXtremail/mbox/i-redlands.net/9/1/liam - Note the new line at the end. Is there a way to get rid of any new lines in a string? Because this is making my directory listing go whacko. Cheers, Liam -- PHP

<    1   2   3   >