Re: [PHP] Re: BBCode?

2002-11-24 Thread Leif K-Brooks
Thanks, but that isn't what I want. The point behind BBCode is allowing a small, simpler, securer, subset of HTML. I.e. [img=http://domain.com/image.gif] changes to http://domain.com/image.gif"; alt="" /> Kyle Gibson wrote: Leif K-Brooks wrote: I'm working o

Re: [PHP] Re: BBCode?

2002-11-24 Thread Leif K-Brooks
Thanks a lot, but do you know how to do the same with ereg_replace? I'm trying to learn PCRE, but until I do, I won't be able to add anything to this... Jason Wong wrote: It's not working because it's doing a greedy match. Try (I prefer the PCRE functions over EREG): $text = preg_replace("/

Re: [PHP] Re: BBCode?

2002-11-25 Thread Leif K-Brooks
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] tag, for example). Kyle Gibson wrote: Thanks a lot, but do you know how to do the same with ereg_replace? I'm trying to learn PCRE, but until I do, I won't be able to add anything to this... \\2',$text); return $text; }

[PHP] Making verification code harder to OCR?

2002-11-25 Thread Leif K-Brooks
I'm using a verification code image to stop automated sign ups, but two hackers seem to be OCRing it. I've looked through the registration script, and there's definitley no security holes. Does anyone have any ideas as to making the image harder to OCR? // seed with microseconds function mak

[PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
I'm having a weird problem. When I go to a page on my site, it often goes twice. I'm not sure if this is a client-side or server-side problem, but it doesn't happen on other sites. Is this a common problem, or am I making some dumb mistake? -- The above message is encrypted with double rot13 en

Re: [PHP] nl2br ( ) and forms

2002-12-02 Thread Leif K-Brooks
Ryan Smaglik wrote: When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: Thanks in advance, Ryan -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to t

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Nope, it happens on all of the pages, but it seems to be fairly random. It doesn't happen all of the time, just sometimes. Morgan Hughes wrote: On Mon, 2 Dec 2002, Leif K-Brooks wrote: I'm having a weird problem. When I go to a page on my site, it often goes twice. I'm not

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Yes, I'm using Apache 1.3.22. Mind giving specifics on what to set those options to? I'm not very great with configuring apache... Morgan Hughes wrote: On Mon, 2 Dec 2002, Leif K-Brooks wrote: Nope, it happens on all of the pages, but it seems to be fairly random. It doesn'

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Hmm, nope. It's now off and it's still doing that. (I did restart apache) Morgan Hughes wrote: On Mon, 2 Dec 2002, Leif K-Brooks wrote: Yes, I'm using Apache 1.3.22. Mind giving specifics on what to set those options to? I'm not very great with configuring apache

[PHP] [JOB] Senior Developer (PHP/Perl/Java/SQL), Washington DC Area

2002-12-02 Thread Alok K. Dhir
send a cover letter and resume with salary requirements to [EMAIL PROTECTED] Thanks, Alok K. Dhir [EMAIL PROTECTED] Symplicity Corporation http://solutions.symplicity.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [SEMI-OT] Making secure flash high scoring?

2002-12-03 Thread Leif K-Brooks
Sorry for the semi-ot post, but this is both a flash and php question, and I'm not a member of any flash lists, so I decided to post it here. Anyway, I have a game site with virtual pets, virtual shops, user accounts, etc. One feature request I get alot is flash games. I could find someone to

Re: [PHP] fopen over a network

2002-12-04 Thread Leif K-Brooks
Link them to a page like this to download the file: Dara Dowd wrote: Hello, I'd like a user to be able download a file from a file server on my LAN. Using works ok, but this simply displays the file in the browser and I want to force the download dialog box to appear. So now i have , and

[PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
I'm running a few simple php scripts from the (windows) command line. Since I'm not using a web browser to view it, the HTTP headers are annoying and pointless. I've turned expose_php off in php.ini, but commenting out default_mimetype changes nothing, and setting it to an empty string sends a

Re: [PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
ithout quotes)³ echo ³ followed by the name of a³ echo ³valid php file without the .php³ echo ³extension. ³ echo ÀÄÄÄÙ :end Chris Wesley wrote: On Thu, 5 Dec 2002, Leif K-Brooks wrote: I'm running a few simple php scripts from the (windows) co

[PHP] Making random string function function more random?

2002-12-06 Thread Leif K-Brooks
I'm using the following function to generate a random string: function randstring($minasc = 32,$maxasc = 255,$minlength = 0,$maxlength = 0){ //If maximum length is lower than minimum length, return string representation of false if($maxlength != 0 and $minlength != 0 and $minlength > $maxl

Re: [PHP] evaluating vars in a var

2002-12-06 Thread Leif K-Brooks
$htmlEmail = 'hello $firstName $lastName'; //Start loop eval("\$thisemail = $htmlemail"); //Send mail out, using $thisemail for mail body //End loop rolf vreijdenberger wrote: Hi, this problem came forth from my previously posted -Mail(): how much time-, but is different so I posted it seperatel

Re: [PHP] evaluating vars in a var

2002-12-06 Thread Leif K-Brooks
Yes. If it was in double quotes, it would parse the variables before the loop started. Another way would be to put it in double quotes and escape the dollar signs. Rolf Vreijdenberger wrote: I notice that you put everything in single quotes and then escape it. is there any special reason for

Re: [PHP] Spaces

2002-12-07 Thread Leif K-Brooks
This isn't really a PHP question, but look at the html tag. Patrick McKinley wrote: Is there a way of getting a php to display all the spaces in a file. i have used this to display an nfo file on my site: ---nfoload.php $fol = $_GET['fol']; $nfono = $_GET['nfono']; require("n

Re: [PHP] Just Curious

2002-12-07 Thread Leif K-Brooks
I use the mailing list. conbud wrote: I was just curious, but what program or website do you all use to view and reply to the newsgroups with ? Lee -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
Not quite sure what you mean, but I'm guessing you're trying to use $PHP_SELF and it's not set. If that's the case, use $_SERVER['PHP_SELF'] instead. Register_globals defaults to disabled now. [EMAIL PROTECTED] wrote: Hello List, anybody knows how to set the PHP_SELF variable? Short answers

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
Odd. Mind doing: print_r($GLOBALS); and tsending the results? [EMAIL PROTECTED] wrote: Hello Johannes, hello all, I compiled it as CGI-php and the variable $_SERVER['PHP_SELF'] has no value either. What can I do on order to give PHP_SELF the right value? Oliver Etzel On Tuesday 10 Decembe

Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
nip How can I get this value when I run it as a CGI? Oliver Etzel - Original Message - From: Leif K-Brooks To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 1:03 PM Subject: Re: [PHP] PHP_SELF Variable Odd. Mind doing: print_r($GLOBALS); and t

Re: [PHP] Forms

2002-12-10 Thread Leif K-Brooks
Change the html to: John Mary Beauford.2002 wrote: Hi, I'm sending this to both lists as I'm not sure where the problem is, but I believe it is an issue with my HTML form. Here's the problem: I have a drop-down menu form on my webpage with employee names in it. When I choose a name and c

Re: [PHP] trimming nans from a string

2002-12-11 Thread Leif K-Brooks
$variable = ereg_replace('[^0-9]','',$variable); Frands Sørensen wrote: I want a user to type a number in an html-form. Afterwards I want to check for wrong typing. How do I remove all non numbers from the string? -- The above message is encrypted with double rot13 encoding. Any unauthor

Re: [PHP] "include" question

2002-12-12 Thread Leif K-Brooks
Variables don't get parsed in single quotes, use double quotes. RClark wrote: Hello all, I am passing a variable like so: On the "link.php" page, I have this simple code: $job = $_GET['foo']; echo "$job"; // for error checking include 'path/to/$job'; ?> The 'echo "$job";' statement works

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Leif K-Brooks
I'm guessing you don't have the short start tag enabled, try Jody Cleveland wrote: You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it wi

Re: [PHP] What's the Difference?

2002-12-13 Thread Leif K-Brooks
str_replace() doesn't have regex. Stephen wrote: I can't quite figure this out... What exactly is the difference between str_replace() and ereg_replace()? Don't they both do the exact same thing? Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persevere?" -- http:/

[PHP] Getting full HTTP request the page was requested with?

2002-12-15 Thread Leif K-Brooks
Is there a way to find out exactly what HTTP request was made for a page? Something like: GET http://myserver.com/whatever.php HTTP/1.1 Host: myserver.com -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent o

Re: [PHP] Getting full HTTP request the page was requested with?

2002-12-15 Thread Leif K-Brooks
fgets($sockhandle, 1024); //Set-Cookie $res .= "$line\n"; $line = fgets($sockhandle, 1024); //End Header "space" $res .= "$line\n"; $res = addslashes($res); return $res; - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] PHP/MySQL Query

2002-12-15 Thread Leif K-Brooks
mysql_query("update table set field=field+1 where whatever='whatever'"); Steven M wrote: How do i make a form that will allow me to add 2 to the value of a MySQL field? I am trying to change it from 75 to 77. Is this possible? Thanks -- The above message is encrypted with double rot13

[PHP] PHP shell scripting not working right?

2002-12-16 Thread Leif K-Brooks
I'm trying to do shell scripting in PHP. I have PHP installed in /usr/bin/php. I have the following script: #!/usr/bin/php -q print "Success!\n"; ?> It's saved as test.php and CHMODed to 777. When I type "test.php" at the command line, it says: bash: test.php: command not found When I type

Re: [PHP] PHP shell scripting not working right?

2002-12-16 Thread Leif K-Brooks
Ever answered your own question five seconds after asking it? Apparently, I have to type "/path/to/test.php" even though I'm already in the right directory. Leif K-Brooks wrote: I'm trying to do shell scripting in PHP. I have PHP installed in /usr/bin/php. I have

[PHP] Put text matching regex into array?

2002-12-16 Thread Leif K-Brooks
Is there a way to put each part of a string matching a regex into an array? Example: $string = "-_-_--- --_-_-- random text here-_"; $array = regextoarray($string,"[-_]{1,}"); //Produces array of "-_-_---","--_-_--","-_" -- The above message is encrypted with double rot13 encoding. Any

Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost

2002-12-18 Thread Leif K-Brooks
No, PHP version. With virtually no information, I'm going to guess that you're using a version below 4.1, which is where the $_* variables were introduced. Upgrade or use $HTTP_SERVER_VARS. Rolf Vreijdenberger wrote: yes, the server var doesn't exist in phpifno(); no difference winxp pro wit

[PHP] Good program to indent large quantity of files?

2002-12-19 Thread Leif K-Brooks
I haven't been indenting any of my code, but I want to start indenting to make the code more readable. It would be near-impossible for me to manually indent what's already there, though. So, I'm looking for a program to indent an entire folder of PHP files at once. Any suggestions? -- The ab

Re: [PHP] Good program to indent large quantity of files?

2002-12-19 Thread Leif K-Brooks
how you when it recoginises PHP4.2.3 code .. http://www.ultraedit.com Mike Bowers PlanetModz Gaming Network Webmaster [EMAIL PROTECTED] ViperWeb Hosting Server Manager [EMAIL PROTECTED] [EMAIL PROTECTED] All outgoing messages scanned for viruses using Norton AV 2002 -Original Message----- From

Re: [PHP] Good program to indent large quantity of files?

2002-12-19 Thread Leif K-Brooks
But as far as I can tell, there's no "indent all" option. I'd have to do it by hand, or remove and recreate the line breaks in the text files. Justin French wrote: on 20/12/02 4:04 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: Thanks, but that's not what I'm

Re: [PHP] syntax to reference $_POST within function

2002-12-20 Thread Leif K-Brooks
You don't need to import the request variables for that to work. The variable names in the function definition have no relationship to variables outside of it. Most likely, you're calling with something like: check_banlist($banlist,$p_email); but you could also call it with: check_banlist($vari

Re: [PHP] Re: Good program to indent large quantity of files?

2002-12-20 Thread Leif K-Brooks
Thanks, but it inserts two line breaks where there should be one, and puts spaces in my html tags so they don't work. Any other ideas? :( michael kimsal wrote: Leif K-Brooks wrote: I haven't been indenting any of my code, but I want to start indenting to make the code more rea

Re: [PHP] Strings and default values...

2002-12-20 Thread Leif K-Brooks
1) You most likely have magic_quotes_gpc set to on. Either set it to off or stripslashes() the input. 2) No, it won't print. Think of a heredoc as a quotes string without the quotes. You can, however, do something like: $variable = <<< WHATEVER whatever text goes here WHATEVER; $variable.= exe

Re: [PHP] Undefined Functions

2002-12-23 Thread Leif K-Brooks
Try defining them at the top instead... Beauford.2002 wrote: Then based on the one below that doesn't work, what is the problem with it? As I said, the functions are at the bottom of the script. The only thing after them is the closing ?>. I also said that they work if I don't call them from wit

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread Jason k Larson
You can't use REMOTE_PORT reliably for this purpose, it will always be different, until they get recycled by the server. How are you performing the redirect? via PHP, or maybe with Apache and a Rewrite rule or something? Jason k Larson John Taylor-Johnston wrote: >[SERVER_POR

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread Jason k Larson
I created a static link from my dev site to your referer2.php script, and your phpinfo listed a HTTP_REFERER as expected. Jason k Larson John Nichel wrote: Is this something that can be turned on/off in the .ini file or via the webserver itself? Neither my test servers, nor the ISP which

[PHP] Good class for managing settings stored in INI (or other format)file?

2002-12-25 Thread Leif K-Brooks
I'm looking for a class to manage settings stored in a .ini (or other format) file. I could store them in a database, but they need to be there even when the DB's down. Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pros

Re: [PHP] Cheap Hosting

2002-12-26 Thread Jason k Larson
I can personally recommend www.icdsoft.com as they are CHEAP! But offer everything you could hope for. Support has been awesome and service has been very reliable. Jason k Larson Stephen wrote: Hello, I need a nice, reliable host for my new website. It needs to be fast, reliable, needs a

Re: [PHP] How To Use The next() and prev() functions on multi-dimensionalarrays

2002-12-26 Thread Jason k Larson
ll, have fun ... Jason k Larson @ Nilaab wrote: Hello Everyone, I have a multi-dimensional array called $cat_data, and I need to access certain elements in the array using the next() and prev() functions. I did consider using loops like for, foreach, and while...but for this particular applic

[PHP] mysql_escape_string is deprecated?

2002-12-27 Thread Leif K-Brooks
I was looking at the PHP 4.3 changelog, and it said that mysql_escape_string is deprecated. Is this true, and if so, what should I be using instead? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the

Re: [PHP] 4.2.3 and XML...

2002-12-28 Thread Jason k Larson
What version of PHP were you using prior to 4.2.3? I'm using DOMXML support extensively (pun?) in my build of 4.2.3. So, what errors are you getting or what makes you think its shot? Jason k Larson At 01:47 PM 12/28/2002 -0500, Russell P Jones wrote: My sysadmin just complied 4.2.3

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Leif K-Brooks
No, it is IE specific. It's IE's general error message, which means the document contains no data in this case. Hatem Ben wrote: it's not an IE specefic :)) netscape or opera or whatever will return the same error message. - Original Message - From: "Paul Reed" <[EMAIL PROTECTED]> To:

Re: [PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Leif K-Brooks
No idea what you mean html module, but it looks like a register_globals problem. Tiziano Crimella wrote: Im' sorry but I discovered a problem when I try to send an HTML module to a PHP file. Watch the example below: module.html: --

Re: [PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Jason k Larson
do the following (in your welcome.php file). $user = $_GET['user']; HTH, Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Auto_incerement value

2002-12-30 Thread Jason k Larson
http://www.php.net/manual/en/function.mysql-insert-id.php Cesar Aracena wrote: Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? Thanks in advanced, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-3

Re: [PHP] Zerofill

2002-12-30 Thread Jason k Larson
How about: http://www.php.net/manual/en/function.str-pad.php HTH, Jason k Larson Cesar Aracena wrote: Hi all, Sorry to bother you all, but I need something I haven't used in quite a long time. Dows anyone remembers the PHP function to fill a number with zeros until it reaches a de

[PHP] Keeping script running, but returning control to user?

2002-12-30 Thread Leif K-Brooks
I need a way to keep the script running on the server, but control to the user. I'm doing some lengthy processes on the server, and it seems stupid to keep the user waiting pointlessly. I'm trying to do something like: if(array_key_exists('secondrun',$_GET)){ print "Processing complete!";

[PHP] Getting short (DOS) name of file?

2002-12-30 Thread Leif K-Brooks
I'm trying to run some (often user-defined) files on my windows server. Thing is, it seems to want short names (like C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name from a long name? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt

Re: [PHP] Getting short (DOS) name of file?

2002-12-30 Thread Leif K-Brooks
Thanks... thing is, it can be anything from c:\whatever.exe to c:\program files\program name\bin\program.exe. I'll write a function that goes to each directory in a string and does a dir /x if I have to, but isn't there a simpler way? Michael Sims wrote: On Tue, 31 Dec 2002 01:12:47 -0500, you

Re: [PHP] Getting short (DOS) name of file?

2002-12-31 Thread Leif K-Brooks
I'm using exec(). Frank M. Kromann wrote: PHP should not have any problems with long file names. I use it often on both WIndows 2000 and Windows XP without anu problems. What is it you are trying to do ? - Frank Thanks... thing is, it can be anything from c:\whatever.exe to c:\program fil

[PHP] Php 4.3 fails several XSLT tests

2003-01-01 Thread Alok K. Dhir
After compiling php 4.3 configured as follows: # ./configure --with-java --with-pdflib=/usr/local --with-gd --with-ttf --enable-trans-sid --with-curl --with-openssl --enable-sysvsem --enable-sysvshm --with-zlib --with-mysql=/usr/local/mysql --with-freetype-dir=/usr --with-png-dir=/usr --with-jpe

Re: [PHP] multiple select problem

2003-01-01 Thread Jason k Larson
What about if you use this instead: HTH, Jason k Larson Elaine Kwek wrote: i am now facing a problem in multiple select. This is my example code in html. 123 234 345 i select all the value and pass to php...it should be a array. but when i display the destList value, it just

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Jason k Larson
ps.name FROM shops WHERE name = '".$name."'"; $result = mysql_query($query); while ($record = mysql_fetch_assoc($result)) { while (list($feildname, $feildvalue) = each ($record)) { echo $feildname. ": " .$feildvalue. ""; } echo""; } ?> HT

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Leif K-Brooks
The limit to tinyint is 255... use int. Jim MacCormaic wrote: Hi all. I'm new here, currently implementing my first PHP/MySQL website on an iMac running Mac OS X v.10.2.3. All has been going really well until just now while I was adding records to the MySQL database. I have a table which incl

[PHP] Still executing afte die()?

2003-01-03 Thread Leif K-Brooks
I have a page called 404.php which is set as the 404 page in a .htaccess file. At the top of this file, it has this: if(strtolower($_SERVER['REQUEST_URI']) != $_SERVER['REQUEST_URI']){ header("Location: http://{$_SERVER['HTTP_HOST']}".strtolower($_SERVER['REQUEST_URI'])); die; } which redi

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Leif K-Brooks
rom: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 6:14 PM Subject: [PHP] Still executing afte die()? I have a page called 404.php which is set as the 404 page in a .htaccess file. At the top of this file, it has this: if(

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Leif K-Brooks
just convert it to lowercase and insert that value. I can't figure what possible advantage there is to doing the redirect to a custom error page. Only difference is what the user would see in the URL, no? Mike "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Leif K-Brooks
this? Jason Wong wrote: On Saturday 04 January 2003 11:00, Leif K-Brooks wrote: But it shouldn't get to the database insert because of the redirect either... I only added the die; when it still inserted with the redirect. As you have already found out, the code _does_ continue to exe

Re: [PHP] Still executing afte die()?

2003-01-04 Thread Leif K-Brooks
As I understand it, your situation is this: a) all your pages are named in lowercase b) if someone tries to access a non-existent page on your site (eg using a URI which is not fully lowercase) they'll hit your 404.php Correct. But if the page was all lowercase they wouldn't be hitting you

Re: [PHP] Perl > PHP

2003-01-04 Thread Leif K-Brooks
Not good at perl, but you need to do: Sam wrote: I don't know what the heck this is but it works: #!/usr/bin/perl $ENV{LD_LIBRARY_PATH} .=":.:..:../lib"; $ENV{CLASSPATH} .= ":Verisign.jar:."; print `javac PFProJava.java`; print `java PFProJava test-payflow.verisignscks.com`; How can it be do

Re: [PHP] printer_open

2003-01-05 Thread Leif K-Brooks
PHP is server-side. You can't do anything to the client besides give them data. This may be possible with javascript (I don't think so, though), but not with PHP. Kathy wrote: Hi, I'm Kathy and just a beginner in php. I'm using the printer_open and printer_draw_text etc. to print a report

Re: [PHP] undefined constant?

2003-01-06 Thread Jason k Larson
How about if you quote index/key names in arrays like: if($_GET['test'] == "test") { echo "A"; } HTH, Jason k Larson Markus Jäntti wrote: If have this piece of code (test.php): if($_GET[test] == "test") { echo "A"; } else { echo "B&quo

Re: [PHP] php $query help

2003-01-06 Thread Leif K-Brooks
What the heck is if($name == $name){ supposed to mean? I've never seen a variable that's not equal to itself... :-) - [ Paul Ferrie ] - wrote: > Here is my problem > >I have created a user login system (flash+php+mysql) >And it just about works > >Here's the prob when i go to register as a new u

[PHP] frustrating problem

2003-01-06 Thread Matthew K. Gold
I hope that I can explain this problem in a logical and clear way. In MySQL, I have two tables for information:: foo, which contains FooID, FooLName, FooFName and foocontact, which contains FooID, FooContactID, FooEmail, FooPhone, FooAddress1, etc. Honestly, I can't remember why I split up the

Re: [PHP] mmmmm SELECT

2003-01-06 Thread Jason k Larson
Your SQL statement is selecting from two tables, it doesn't know which table the 'active' column belongs to. Try one of the following as appropriate to your schema: tasks.active="yes" or users.active="yes" HTH, Jason k Larson Bruce Levick wrote: I h

Re: [PHP] ftp and www

2003-01-06 Thread Jason k Larson
Sounds vague. Here's the reference page for starters. http://www.php.net/manual/en/ref.ftp.php HTH, Jason k Larson Mukta Telang wrote: Hi, I am told to " merge ftp and www " ! I cant understand what it means.. May be it means that it should be possible to browse ftp directory

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason k Larson
FYI: Don't like auto register globals ... try the following at the beginning of your script. ini_set ('register_globals','Off'); Works for me places I'm hosted at. HTH, Jason k Larson Noel Wade wrote: Hi all, So I have a session variable; but with register_gl

Re: [PHP] Png Could not find/open font

2003-01-12 Thread Jason k Larson
s font files if you want. So just copy, for instance, arial.ttf where you need it. HTH, Jason k Larson Breno Cardoso Perucchi wrote: How I can resolve this ? This is my configuration of php (phpinfo) Somebody can help me ? This is very important GD GD Support enab

Re: [PHP] pls help with session

2003-01-13 Thread Jason k Larson
print the before and after session ids, if they change, you are just creating new empty sessions, which should explain the lacking session variables. HTH, Jason k Larson James Tan wrote: Dear Sir/Madam, I've been coding session for quite sometime, but this is the first time i encount

Re: [PHP] emptying hte array??

2003-01-14 Thread Jason k Larson
That's not going to 'empty' the array it's going to undefine it. Just overwrite the array with a new empty array like: $a = array(); That keeps the variable an array variable type and is of course empty. HTH, Jason k Larson Justin French wrote: on 15/01/03 7:52 AM, Sc

Re: [PHP] Gotchas with Php and Postgresql?

2003-01-14 Thread Jason k Larson
ostgres offer. PHP uses Postgres' pglib for it's interface which puts the stability and compatability in Postgres' hands, which of course is the best possible thing to do. So you can rest assured that PHP knows how to talk to Postgres. HTH, Jason k Larson John Wells wrote: I

Re: [PHP] Setcookie() and header()

2003-01-14 Thread Jason k Larson
could alternatively use a meta-refresh for the redirect. This would give you the chance for the headers to be read and the cookie created. Hope that helps, Jason k Larson J. Alden Gillespy wrote: After I set a cookie and then send a redirect header, the cookie doesn't show up, bu

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason k Larson
$query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = '$_GET['id']'"; It looks like here that again $_GET['id'] has an empty value; Jason k Larson Frank Keessen wrote: Thanks, but not working: The error message: Error in query: SELE

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason k Larson
Forms have two distinct methods. GET and POST. if the form has a method of POST vars are stored in $_POST, ditto for GET. Use $_POST['id'] not $_GET['id'] if your form uses the POST method. HTH, Jason k Larson Jason k Larson wrote: $query = "SELECT Newsheadline

Re: [PHP] global variables

2003-01-17 Thread Jason k Larson
_4_1_0.php Regards, Jason k Larson Dara Dowd wrote: Is it "better" to pass variables through functions or to simply declare them as global within the function's scope? The variables in this particular case are things like MySQL database connections and tablenames. Thanks,Dara

[PHP] Changing order of just one array item?

2003-01-18 Thread Leif K-Brooks
I need to change where one item is ordered in an array. I know how to sory an array, but I need to move one item up/down in the array. Example: $array is: 0 => "element one" 1 => "element two" 2 => "element three" 3 => "element four" I call array_order_up($array[1]) and $array is now: 0 => "elem

Re: [PHP] whois script or class

2003-01-18 Thread Jason k Larson
http://phpwhois.org/ Ashley M. Kirchner wrote: I'm looking for a script, or class, that I can feed a domain name to and get back whois information, preferably already parsed into things like, the registrar, the registrant, ns servers, created/expire dates... Regardless of who the registrar

Re: [PHP] Changing order of just one array item?

2003-01-19 Thread Leif K-Brooks
amp;$list, $first, $second) { $tempOne = $list[$first]; $list[$first] = $list[$second]; $list[$second] = $tempOne; } swap($first, 0, 1); print_r($first); ?> Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Leif K-Brooks [mailto:[E

Re: [PHP] Can php works as a scheduler?

2003-01-20 Thread Jason k Larson
Unix/Linux use: cron (crontab) Windows use: at HTH, Jason k Larson Jack wrote: Dear all I built a page which will import data from csv files to database, i want this task to be done automatically at the midnight of each date. so does anyone know if there is any function work as similar as

Re: [PHP] re-ordering keys in an array

2003-01-21 Thread Jason k Larson
ksort.php HTH, Jason k Larson David T-G wrote: Hi, all -- If I have an associative array $a like Array ( [t] => temp1 [u] => ugh [m] => moo ) is there any way to re-order the keys so that foreach (array_keys($a) as $k) { print "$k\n" ; } will p

Re: [PHP] changing a key in an array

2003-01-21 Thread Jason k Larson
he moment is to create a copy and unset the original as you described as brute force. HTH, Jason k Larson David T-G wrote: Hi, all -- If I have an associative array Array ( [t] => Array ( [t1] => temp1 [t2] => temp2

Re: [PHP] Re: fscanf

2003-01-21 Thread Jason k Larson
t/manual/en/function.preg-split.php HTH, Jason k Larson Philip Hallstrom wrote: Why not: $array = split("[ ,]", $line); ? On Wed, 22 Jan 2003, Kris wrote: Hi I'm having dramers with fscanf I have a line: text, text, text I can't work out how to scan removing the comma

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn'tset!

2003-01-21 Thread Jason k Larson
Discussion on this list has suggested that it can work if PHP is set to run as ISAPI, not CGI. HTH, Jason k Larson Mike Potter wrote: HELP! I know I'm new at this so please don't laugh. But I can't get this to work! I am using Microsoft IIS with the latest PHP installed.

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn'tset!

2003-01-21 Thread Jason k Larson
Follow the ISAPI module install instructions. http://www.php.net/manual/en/install.iis.php Regards, Jason k Larson Mike Potter wrote: Do you know how do do this? Thanks, Mike "Jason K Larson" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >Discus

Re: [PHP] which is better? PHP's Session handler or Mohawk's Sessionhandler

2003-01-22 Thread Jason k Larson
high availability point of view). HTH, Jason k Larson Heo, Jungsu wrote: (Sorry for disturb you if this kind of message posted earlier. but I can't find answers on mailint list archive) Hello, there! I'm developing web service. There are several web servers for one Service. (Linux virtual

Re: [PHP] Is this just not possible?? ..create new odbc connection..pleasehelp

2003-01-22 Thread Jason k Larson
http://www.php.net/manual/en/function.odbc-connect.php Edward Peloke wrote: Haven't had a single response so I am not sure if this isn't possible or just really easy and something I should already know. Thanks, Eddie -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] Is this just not possible?? ..create new odbc connection..pleasehelp

2003-01-22 Thread Jason k Larson
Are you wanting to have PHP dynamically create ODBC datasources instead of creating them via the typical Control Panel method? If so, and if possible, would be tricky, but I'll bet it can be done. Regards, Jason k Larson Edward Peloke wrote: Thanks Jason, I know how to connect to an

Re: [PHP] NEED HELP URGENTLY

2003-01-22 Thread Leif K-Brooks
First of all, you don't need to type in all caps like that. I thought this was the Nigerian Scam for a minute there! :-) Anyway, in PHP 4.2+, the php.ini setting register_globals is off by default. You'll need to either turn it on, or start using the newer $_POST superglobal array. For mor

Re: [PHP] continue after break

2003-01-22 Thread Leif K-Brooks
Then just don't have the image inside the loop... Remon Redika wrote: I have put Image inside of my loop... and that image located between and I want the image not doing loop too. cause i just need one image.., I just do looping for my data: and

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Leif K-Brooks
No, it's not sent to the browser. Your output buffer catches it, and the output buffer is then erased with ob_end_clean(). Oliver Witt wrote: Marek Kilimajer schrieb: Use output buffer: ob_start(); ImageJPEG($im); $imagestring=ob_get_contents(); ob_end_clean(); Thanks for the answe

Re: [PHP] changing a key in an array

2003-01-23 Thread Jason k Larson
reference to the array. The second line removes the first reference without removing the second. See this for more info: http://www.php.net/manual/en/language.references.unset.php Regards, Jason k Larson David T-G wrote: Brent, et al -- ...and then Brent Baisley said... % % I had to do s

Re: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Leif K-Brooks
Take the $name = urldecode($name); bit out. The decoding is all handled by PHP before your script runs. Also, you should look into using $_GET['name'] instead of $name. SpyProductions Support Team wrote: Here is some code: From a form, I get username as $name and it goes to the processing f

Re: [PHP] [url] to html

2003-01-24 Thread Leif K-Brooks
Take a look at my BBCode class, http://www.phpclasses.org/browse.html/package/951.html. Niels Uhlendorf wrote: hi, how to chang [url=%link%]%descr%[/url] in %descr% thx 4 help. Niels -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

<    1   2   3   4   5   6   7   8   9   >