[PHP] Form refresh problem

2001-01-20 Thread Lucas Young
Hi Guys I'm having a bit of a problem with form submission. I'm creating an opinion poll, and the user's vote is submitted as a form back to the originating page. I'm using !isset to see if the form has been submitted and if so, updating the database and showing the current results My problem is

[PHP] Fwd: Help - removal of trailing zeros from double integer field

2001-01-20 Thread ravi
Dear friends, I am accessing MySQL database using apache and php. I have to display a double integer field without trailing zeros. The number of digits after the decimal point varies. I have tried searching the archive and did not get any previous questions. Kindly help me in this regard.

Re: [PHP] Question about session_register()

2001-01-20 Thread Richard Lynch
My question is, when the user first visit, a session created, and I register the variable. On the second, or following hits, to use the session variable, I also need "session_start", but should I still need to call session_register() for each hit? No, once you register it, it's there unless

Re: [PHP] Session problem?

2001-01-20 Thread Richard Lynch
function add_toCart($id,$array) { session_register("OBJECT"); $c = new Configurator; $c-readConfig($id); $OBJECT = serialize($c); header("Location: Cart.php"); echo "Redirecting..." } Unfortunately, the session file (in /tmp) is always empty after this function executes. I'm using PHP

Re: [PHP] Using a variable in a variable or as the second part of an array?

2001-01-20 Thread Richard Lynch
I need to simulate this effect: $array[$i] or \$something . $i, and have it return $checkbox1 $checkbox2 etc. on up in a while loop. Just doing it doesn't seem to work, but does anyone know of any work arounds? Or just the keyword I should be looking for to search the manual? You could be

Re: [PHP] Image problem

2001-01-20 Thread Richard Lynch
Can anyone tell me how to display both jpg and gif images. Basically, what i've got is: img src="$filedir/$CUserName".jpg Now, I know I probably need slashes in there and I played around with it but no luck. Where do I put them? TIP: Use "View Source" in your browser to see what the IMG

Re: [PHP] PHP Parse MySQL Field???

2001-01-20 Thread Richard Lynch
I have a BLOB field in a MySQL database that I want to parse into my page using PHP. For instance, in this field might be the following: ? echo "test"; ? So when I access this field in PHP I want it to display "test". Is this possible? Yeah. That's called "eval" (short for 'evaluate')

Re: [PHP] Help, can't seem to get this write

2001-01-20 Thread Richard Lynch
function downloadfile($url, $imageDir) { if(!$file = fopen($url , "r")) { echo ("couldn't open $url\n"); } else { #fpassthru($file); if($file2 = fopen("/www/sinead/images/Full/Sinead200.jpg", "w")) { $content=fread($file, filesize("$file"));

Re: [PHP] ibase_num_fields() -a workaround ?

2001-01-20 Thread Richard Lynch
ibase_num_fields() isn't functional in php 4 - anyone have any ideas to work around this ? I'm checking the number of results for a query to check if a user/password is correct -I suppose I could just do a fetch_row() on the result and test if thats empty or not - but I'll only do that as

Re: [PHP] Form refresh problem

2001-01-20 Thread Richard Lynch
My problem is that a user, having voted once, can keel clicking refresh in their browser and the form data keeps getting sent, incrementing the poll results each time Is there a way to kill form data once it;s been posted, or is there a better way of doing what I am trying to accomplish?

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-01-20 Thread Sascha Schumann
sas Sat Jan 20 02:10:50 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: Revert last completely broken patch. Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.83 php4/ext/pgsql/pgsql.c:1.84 --- php4/ext/pgsql/pgsql.c:1.83 Thu Jan

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-01-20 Thread Sascha Schumann
+PHP_FUNCTION(pg_lolseek) { + val **pgsql_lofp, **seek_offset, **seek_whence; ^^^ + gLofp *pgsql; ^ + long int offset; .. + ffset = lo_tell((PGconn *)pgsql-conn, pgsql-lofd); ^ + ETURN_LONG (offset); ^ Derick, this patch is completely broken.

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-01-20 Thread Derick Rethans
On Sat, 20 Jan 2001, Sascha Schumann wrote: +PHP_FUNCTION(pg_lolseek) { + val **pgsql_lofp, **seek_offset, **seek_whence; ^^^ + gLofp *pgsql; ^ + long int offset; .. + ffset = lo_tell((PGconn *)pgsql-conn, pgsql-lofd); ^ + ETURN_LONG (offset); ^

Re: [PHP] Profanity Filter

2001-01-20 Thread Nik Gare
In article 94adfp$5le$[EMAIL PROTECTED], Stephan Ahonen [EMAIL PROTECTED] wrote: I'd make it an array: $filter = array(moron, idiot, pratt); foreach($filter as $badword) { if (strstr($name, $badword)) { do this if it contains one of the bad words } else { do this if it doesn't

Re: [PHP] Spell checker?

2001-01-20 Thread Nik Gare
In article [EMAIL PROTECTED], Brandon Orther [EMAIL PROTECTED] wrote: Check here, I have never messed with it just ran into it the other day. I hope it helps. http://www.php.net/manual/en/ref.pspell.php Sort of. Thanks go to Kristi as well for spotting this, PHP has so many bult in

[PHP] Re: PHP Parse MySQ: Field???

2001-01-20 Thread [ rswfire ]
Richard, THANK YOU!!! I agree -- this method provides many security vulnerabilities and I appreciate the warning. The database is definitely secure -- from web-surfers and others. Also, I intend to parse the information going into the database myself -- using a simple parse engine I will

[PHP] getting from PHP the vars that are in the memory during the execution of the script...

2001-01-20 Thread Romulo Roberto Pereira
Hey! Is it possible to get the names of the variables allocated in the memory? thank you, Rom

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-20 Thread Fraser MacKenzie
WAHO! It works! Thanks Alex!! Fraser On Fri, 19 Jan 2001, Alex Akilov wrote: Fraser, Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal, export

Re: [PHP] Pre-loading HTML form w/ mySQL data

2001-01-20 Thread Romulo Roberto Pereira
There you go: ?php // DB connection $dbconnection = mysql_connect ("IP ADDRESS OR HOST+DOMAIN NAME","USERNAME - DEFULT is root","") or die ("Couldn't connect to Database."); // Select DB $database = mysql_select_db ("NAME OF THE DATABASE", $dbconnection) or die ("Couldn't select Database.");

[PHP] Macromedia UltraDev 4 MySQL connection

2001-01-20 Thread Murph
Hi. I'm tearing my hair out trying to get UltraDev to talk to MySQL and I know there are some Dreamweaver and MySQL users here. I think I need some help installing a JDBC driver for this product. Any help or sympathy is greatly appreciated. Thanks, Murph

Re: [PHP] Profanity Filter

2001-01-20 Thread Website4S
Hi, I`m trying to use the code below for my profanity checker but it keeps returning a parse error on the second line 'while ((list etc' Can anyone see anything wrong?? TIA Ade $done=false; while ((list($key, $val)=each($words)) and $done===false) { $done=strpos(strtolower($name),

[PHP] Please: XTemplate help?

2001-01-20 Thread Jaxon
Hi Debreceni, I need to use a template parser, and XTemplate looks like it will do what I need, but I'm not sure how. I can use mysql_fetch_array to produce an array of field_name:value. If I use {field} names in the html template, can I use XTemplate to take the array and parse? This is what

Re: [PHP] Spell checker?

2001-01-20 Thread Kristi Russell
Plain Text Dictionary: http://www.mso.anu.edu.au/~ralph/OPTED/ Word list: http://www.antionline.com/archives/text/word-lists/ I just found these by searching through Google you may find better. Kristi - Original Message - From: "Nik Gare" [EMAIL PROTECTED] To: "PHP User Group"

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Team JUMP) wrote: $num=count($bannedwords); for($i=0;$i$num-1;$i++) { $string = eregi_replace("\b$bannedwords[$i]\b","[censored]",$string); } For whatever reason, no word in

Re: [PHP] HELP!. INstalling PHP4 on a Cobalt RAQ 2!

2001-01-20 Thread Rasmus Lerdorf
Can you install flex and bison? On Sat, 20 Jan 2001, Trunkz Santai wrote: Hi Im trying to isntall PHP4 on my Raq 2 but Im not having much luck. I was wondering if someone here could assist me. I uploaded apache and configured it and it worked fine. Its running in /usr/local/apache-x.x.x

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Romulo Roberto Pereira
try this; I am working on the last word... ereg replace is not finding the REGEX "\.$" - anyone has a clue? ? $bannedwords = array ("dadada", "dedede", "dididi"); $string = "Dadada in this world dadaDA is not permitedadada because this very deDede peoplededede that appears in our DIDIDi world

[PHP] Re: Fwd: Help - removal of trailing zeros from double integer field

2001-01-20 Thread Art Wells
This might help. $no_trailing_zeroes = preg_replace("/0+$/","",$trailing_zeroes); Dear friends, I am accessing MySQL database using apache and php. I have to display a double integer field without trailing zeros. The number of digits after the decimal point varies. I have tried

Re: [PHP] Re: PHP site on CD-ROM

2001-01-20 Thread Brian T. Allen
Just create it online in such a way that you can spider your whole site and burn it to CD. Granted you will lose the searchability of the DB, but the contents would all be there, and could easily be indexed so that you could still find what you are looking for. Create one page that has a link

[PHP-CVS] cvs: php4 /pear/Cache Function_Cache.php

2001-01-20 Thread Sebastian Bergmann
sbergmann Sat Jan 20 09:40:06 2001 EDT Modified files: /php4/pear/CacheFunction_Cache.php Log: Fixed two small glitches. Note: The Shared Memory version of Function_Cache does not work correctly at the moment, but I'm on it. Index:

[PHP-CVS] cvs: php4 /pear/Cache Function_Cache.php

2001-01-20 Thread Sebastian Bergmann
sbergmann Sat Jan 20 09:41:55 2001 EDT Modified files: /php4/pear/CacheFunction_Cache.php Log: Next time without the 'Oops!'. Index: php4/pear/Cache/Function_Cache.php diff -u php4/pear/Cache/Function_Cache.php:1.3

[PHP] What's wrong with this link?

2001-01-20 Thread Mike Yuen
I realize my slashes are most likely in the wrong spot and i'm new to this PHP stuff so a little help would be appreciated. I get a parse error print "a href=/"showpictures.php?id=PID/"Click Here/a"; Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] cookies - not working with Nutscrape

2001-01-20 Thread Brian V Bonini
The complete snippet is ? if (isset($ecb)) { if ($ecb = 5) { $val = 1; } else { $val = $ecb; $val++; } } else { $val = 1; } $expires = mktime(12, 00, 00, 12, 31, 2005); setcookie("ecb",$val,$expires,"/",".domain.com",0); ? I've gotten around it for the

Re: [PHP] Flash + PHP

2001-01-20 Thread Mike Tuller
www.thickbook.com is a good start. Last I looked it covered Flash 4, and Flash 5 is quite a bit different. Basically you have PHP print the variables in HTML and Have Flash parse that. Flash can't directly parse PHP variables. It's not difficult once you figure it out. Mike From: "Abe Asghar"

Re: [PHP] What's wrong with this link?

2001-01-20 Thread Philip Olson
Mike, Read and print this out : http://www.zend.com/zend/tut/using-strings.php It will increase your happiness. Philip On Sat, 20 Jan 2001, Mike Yuen wrote: I realize my slashes are most likely in the wrong spot and i'm new to this PHP stuff so a little help would be appreciated. I

[PHP] Verifying against a file

2001-01-20 Thread Website4S
Hi, I have used the following code to open a file $fd=fopen("words.txt", "r"); $words = fread($fd, 100); I then convert a string which is passed in a form to this script $FirstName=strtolower("$FirstName"); And now I check to see if the lowercase version of $FirstName contains any of

[PHP] Installing Php/Apache/Win98

2001-01-20 Thread Todd Cary
I have PHP working like a champ on my WIN 2K computer with IIS. Now I would like to have it on my notebook, so I loaded Apache and have following the instructions from Shanx; however, I get the message that Apache cannot load php4apache.dll. It shows the correct path. What is the best source

Re: [PHP] Spell checker?

2001-01-20 Thread John Hinsley
Nik Gare [EMAIL PROTECTED] wrote Does anyone know where I could find a text list of every word in the English language ;-) You could try (also) getting hold of ispell a search on www.google.com/linux or sunsite should get it. You'll need something capable of uncompressing tar archives to

[PHP] Compiling PHP with --with-apxs

2001-01-20 Thread Jero
Hello, I am trying to compile PHP with the option "--with-apxs" to be able to use both PHP 3 and PHP 4 on the same server.Unfortunately, if I try to use configure with that option ./configure --with-mysql=../mysql --with-ldap=/usr --with-apache=../apache --enable-track-var

Re: [PHP] simple math

2001-01-20 Thread Rasmus Lerdorf
11 % 3 On Sat, 20 Jan 2001 [EMAIL PROTECTED] wrote: Lets say I have 11 / 3 answer is 2.667 what if I want to get the remainder of it so 11 / 3 would be 2 is there a built in function for this in PHP? kinda like MOD in Visual Basic? - Thanks -- PHP General Mailing List

Re: [PHP] MailBomb Problem...

2001-01-20 Thread Rasmus Lerdorf
Edit your php.ini file and edit your sendmail_path directive. The default is "sendmail -t -i". Add the correct -o switch (don't remember it offhand) to have sendmail just queue the email instead of trying to deliver right away. Then set up sendmail to deliver the queue at regular intervals.

[PHP] Unique Session Question

2001-01-20 Thread Randy Johnson
Hello, I plan to use session variables to identify if a user is logged in... I know there is an option to set the life of the session but I am looking for a way to end the session five minutes after they have did there last "transaction" with my site... I don't want people that are actively

Re: [PHP] a text formating cpu question

2001-01-20 Thread Michael A. Peters
Christian Reiniger wrote: On Thursday 18 January 2001 23:05, Noel Akins wrote: Question 2: Is there a way for php to detect the cpu speed of a users computer? If you're on a Linux machine you can read /proc/cpuinfo and pick out the speed entry. Linux on the sun sparc64 architexture

[PHP-CVS] cvs: php4 /pear/HTTP Compress.php

2001-01-20 Thread Chuck Hagenbuch
chagenbuSat Jan 20 12:50:00 2001 EDT Modified files: /php4/pear/HTTP Compress.php Log: whitespace Index: php4/pear/HTTP/Compress.php diff -u php4/pear/HTTP/Compress.php:1.1 php4/pear/HTTP/Compress.php:1.2 --- php4/pear/HTTP/Compress.php:1.1

Re: [PHP] Mysql Array Question

2001-01-20 Thread Rasmus Lerdorf
while($row = mysql_fetch_array($id,MYSQL_ASSOC)) { foreach($row as $index=$value) { $z[$index][] = $value; } } For a table with 3 rows and fields abc and def in each row this would produce an array like this: $z[abc][0] $z[def][0] $z[abc][1] $z[def][1] $z[abc][2]

[PHP] date

2001-01-20 Thread Randy Johnson
I am wondering if it would be more efficient to store the integer value that the php function time() returns when a transaction is inserted into the database and then when querying the database to get certain transactions just use basic math functions to get the certain transactions. For example

[PHP] XOR data encryption

2001-01-20 Thread Steve Quezadas
I am trying to store some credit card numbers in a database, along with the rest of the data (dangerous, I know). Unforunately, I am using a provider that doesn't have the mcrypt functions compiled into PHP, so I guess I am stuck using the swiss-cheese like XOR method of encryption. My client

[PHP] opinion polling code

2001-01-20 Thread Lucas Young
Hi I'm looking for some free opinion polling code using PHP and MySQL. I've checked a number of scripts and they haven't been up to scratch - I'm just after a simple poll that allows a user to vote once (selecting yes or no) and then for the remainder of their session they can only view the poll

[PHP] Cookies...

2001-01-20 Thread WreckRman2
Currently my cookie expires in 1 hour, How can I make it expire in 1 day? setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */ setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1); WreckRman2 Combat Flight Center

Re: [PHP] Cookies...

2001-01-20 Thread Rasmus Lerdorf
Currently my cookie expires in 1 hour, How can I make it expire in 1 day? setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */ setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1); 24*3600 -Rasmus -- PHP General Mailing List (http://www.php.net/)

[PHP] MySQL Access Denied

2001-01-20 Thread Website4S
Hi, I am trying to conect to a MySQL db and no matter what code I use I am always getting denied, I know the password is correct as I have tested it elsewhere. Just wondering if this could be caused by the fact that the password has a + and a . in it. Would that get me denied, and how can I

Re: [PHP] XOR data encryption

2001-01-20 Thread Todd Cary
I have some Delphi code that uses the XOR, if that would help. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- 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

RE: [PHP] cookies - not working with Nutscrape

2001-01-20 Thread Brian V Bonini
Actually, it's excepting the time/date. It's the path/domain that is creating a problem. For some reason your original suggestion of leaving the domain out is working today. setcookie("ecb",$val,$expires,"/"); I could not get this to work for the life of me yesterday. Either I was

RE: [PHP] Installing Php/Apache/Win98

2001-01-20 Thread Morkai Kurst
I had the same problem, i ended up placing the php4apache.dll in the apache/modules directory where the rest of the modules for apache are stored. Then change the entry in httpd.conf to: LoadModule php4_module modules/php4apache.dll everything worked then :) good luck Morkai I have PHP

[PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Noah Spitzer-Williams
whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ? dirname will cut off hello.php but i want to cut dir1 and dir2 as well Thanks! - Noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Jaxon
Cool, so just iterate through the array and sort it into the template assignment - quite nice! Thanks for the pointers Kristi! Regards, Jaxon On 1/20/01 3:37 PM, "Kristi Russell" [EMAIL PROTECTED] wrote: while ( $rowData = mysql_fetch_array($result)) { list($fieldName, $fieldValue) =

[PHP-CVS] cvs: php4 /ext/sablot sablot.c

2001-01-20 Thread Sterling Hughes
sterlingSat Jan 20 15:42:03 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: Fix the scheme handler support and make it compile on win32 systems. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.32

Re: [PHP] What's wrong with this link?

2001-01-20 Thread scott
Mike, Looks like your slashes are backwards use "\" instead of "/" to escape characters. You will notice that "/" is used in UNIX directories and HTML tags. Here is the corrected code: print "a href=\"showpictures.php?id=$PID\"Click Here/a"; I assume "PID" is a variable. If so, it should

Re: [PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Stephan Ahonen
$i = 1; foreach ($dirs as $value) { if ($i == ($numberofelements-1)) $lastdir = $value; if ($i == $numberofelements) $file = $value; $i++; } I don't think the foreach is necessary - Why can't you just say: $lastdir = $dirs[$numberofelements-1]; $file = $dirs[$numberofelements]; That

Re: [PHP] Profanity Filter

2001-01-20 Thread Alex Black
hey, does anyone have a big compiled list? like a profanity library? maybe even a multi-lingual one! hey, it would be fun to make :) _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film

Re: [PHP] is it possible to communicate javascript and php?

2001-01-20 Thread Alex Black
no without submitting information to the server with get or post. for example, if a bit of javascript you have comes up with some value, the only way you can get it to the server is to put it in a get and send the user to that url: http://www.mysite.com/index.php?your_js_var=your_value etc.

Re: [PHP] RE: Ethics question...

2001-01-20 Thread Alex Black
is there any benchmarks or proof that I should host a high traffic site on a FREEBSD/APACHE instead of a redhat Linux/Apache server? I have _heard_ that linux is great under medium load, but does not deal as well with super-high loads as well as freeBSD. that has not stopped me from using

Re: [PHP] is it possible to communicate javascript and php?

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 05:20:53PM -0800, Alex Black wrote : no without submitting information to the server with get or post. for example, if a bit of javascript you have comes up with some value, the only way you can get it to the server is to put it in a get and send the user to that

Re: [PHP] Profanity Filter

2001-01-20 Thread scott
Just go to one of those raunchy porn sites and pull the words out of thier meta tags or "hidden" word list (i.e. white text on white background) buried in the HTML. ;-) hey, does anyone have a big compiled list? like a profanity library? maybe even a multi-lingual one! hey, it

[PHP] CF vs PHP for Creating PDF's

2001-01-20 Thread DPG Account
Hi- I'm new to this list. I'll start out with hopefully a good question. I have a project coming up where I need to take some form input insert it into a premade template and create a custom pdf for a user. The pdf will then be e-mailed to the user or a link to download it e-mailed to them. My

[PHP] Sending a mail in HTML format

2001-01-20 Thread Pascal Clerin
Hello, I want to send a mail in HTML format with the mail() function. I have tried to send html stuff in the message parameter, but when I read it in my hotmail account, I just see the html code and not what the html is supposed to show. I suppose that it is necessary to send some additional

Re: [PHP] Sending a mail in HTML format

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 06:46:39PM -0700, Pascal Clerin wrote : I want to send a mail in HTML format with the mail() function. I have tried to send html stuff in the message parameter, but when I read it in my hotmail account, I just see the html code and not what the html is supposed to

[PHP] mysql table dump problem

2001-01-20 Thread PHP List
Hi list, I have scoured the archives with no good game plans. Here is what I am trying to accomplish: dump a table to a file on my server: $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' FROM table_name"; take the file and email it to someone:

[PHP] Getting part of a string

2001-01-20 Thread Website4S
Hi, I have a form which users enter their email address, once submitted I need a way to chop it up and put it in lowercase. So that if a user submits [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest lowercase so I would get @aol.com I know how to get the string to

Re: [PHP] Profanity Filter

2001-01-20 Thread Fraser MacKenzie
What you could do is have a bad word and a reallybadword list. Wank could be a bad word and if it didn't appear along (ie. whitespace on either side, or in plural) then it is ok. In really bad word, say F*ck, then it couldn't appear at all...( ie. f*ckville would be invalid). It would mean a

Re: [PHP] XOR data encryption

2001-01-20 Thread jeremy brand
Feel free (as in public domain) to use this function: http://www.nirvani.net/software/misc/xor_string-1.0.0.inc.asc Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - -

[PHP] my cookies arent working!

2001-01-20 Thread Lucas Young
Hi all I think most of the problems I am having with PHP and sample code not working seems to be because cookies arent being generated I'm using php.ini in it's default config Windows 2000 Pro IIS PHP 4.0.4pl1 PHP seems to be working fine otherwise... I did the installshield install then

Re: [PHP] mysql table dump problem

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 05:57:25PM -0800, PHP List wrote : dump a table to a file on my server: $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' FROM table_name"; Problem is that once I have created the dump file, it will not allow me to

Re: [PHP] Getting part of a string

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 09:10:45PM -0500, [EMAIL PROTECTED] wrote : I have a form which users enter their email address, once submitted I need a way to chop it up and put it in lowercase. So that if a user submits [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest

Re: [PHP] my cookies arent working!

2001-01-20 Thread Markus Fischer
On Sun, Jan 21, 2001 at 04:24:09PM +1300, Lucas Young wrote : I think most of the problems I am having with PHP and sample code not working seems to be because cookies arent being generated I'm using php.ini in it's default config Windows 2000 Pro IIS PHP 4.0.4pl1 PHP seems to be working

Re: [PHP] Getting part of a string

2001-01-20 Thread Website4S
In a message dated 21/01/2001 03:43:19 GMT Standard Time, [EMAIL PROTECTED] writes: if( eregi( "^([^@]+)@([^@]+)$", $email, $match)) { $email_user = $match[1]; $email_domain = strtolower( $match[2]); echo "$email_user at

[PHP-CVS] cvs: php4 /ext/bz2 config.m4

2001-01-20 Thread Jani Taskinen
sniper Sat Jan 20 20:00:32 2001 EDT Modified files: /php4/ext/bz2 config.m4 Log: Remove double 'yes' output. Index: php4/ext/bz2/config.m4 diff -u php4/ext/bz2/config.m4:1.2 php4/ext/bz2/config.m4:1.3 --- php4/ext/bz2/config.m4:1.2 Fri Jan 19

Re: [PHP] Compiling PHP with --with-apxs

2001-01-20 Thread Brian Clark
Hello Jero, (J == "Jero") [EMAIL PROTECTED] writes: J checking for Apache module support via DSO through APXS... apxs:Error: J Sorry, no DSO support for Apache available J apxs:Error: under your platform. Make sure the Apache J apxs:Error: module mod_so is compiled into your server J

RE: [PHP] my cookies arent working!

2001-01-20 Thread Lucas Young
I'm actually using code from the web - sympoll from www.ralusp.net and authlib, both give me errors and neither seems to be writing cookies... I note in PHP the session save path is /tmp, where should this folder live? -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]]

[PHP] charactor problem

2001-01-20 Thread Rick Ridgeway
im trying to build an array from an entry in a file and im having some trouble with it. in a file i have a line similar to: 1234 hello 123456 12345678 I grab this line and try to make it an array like this: $var1 = trim($thelinefromfile); $var2 = split(" ", $thelinefromfile); $count =

Re: [PHP] XOR data encryption

2001-01-20 Thread Sean Cazzell
Steve, If you're using MySQL, it has some built-in encryption functions that would be slightly better than trying to implement XOR encryption in PHP. The best solution would be to use PGP or GPG (GNU Privacy Guard) to encrypt the credit card numbers before you put them in the database.

php-general Digest 21 Jan 2001 05:40:35 -0000 Issue 467

2001-01-20 Thread php-general-digest-help
php-general Digest 21 Jan 2001 05:40:35 - Issue 467 Topics (messages 35815 through 35880): Re: HELP!. INstalling PHP4 on a Cobalt RAQ 2! 35815 by: Rasmus Lerdorf Re: Help w/ regular expressions for banned words 35816 by: Team JUMP 35818 by: Romulo Roberto Pereira

Re: [PHP] charactor problem

2001-01-20 Thread Sean Cazzell
I grab this line and try to make it an array like this: print "line: $thelinefromfile\n"; //Check the line $var1 = trim($thelinefromfile); $var2 = split(" ", $thelinefromfile); $count = count($var2); Are you sure $thelinefromfile is actually being set correctly? Regards, Sean --

[PHP] HELP: problem listing directory contents

2001-01-20 Thread Vahan Yerkanian
Greetings All! Recently I've been hit by a strange problem while coding a file indexing system. I have a source directory of the following format: /files/0-9 /files/0-9/0-90 /files/0-9/0-91 /files/a /files/a/a0 /files/a/a1 /files/b ... /file/z ok you got the picture I hope. nothing difficult.