Re: [PHP] ereg issues

2001-05-10 Thread Jack Dempsey
print preg_replace('/^(.*?)([a-zA-Z]{2})(.*)/','\\2',$blah); try that -jack "scott [gts]" wrote: > > oh yeah. sorry... > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack > >

Re: [PHP] Problem with PHP 4.0.5

2001-05-10 Thread Jack Dempsey
strange...i just ran that and got Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) (using ns on rh linux...) what netscape you running, etc? -jack biscut wrote: > > Jack > All I am using is: > > > PHP Test > > ?> > > > > thats all that i

Re: [PHP] ereg issues

2001-05-10 Thread Jack Dempsey
isn't a \w a word character, meaning a-zA-Z_0-9 (in perl)? if so, that wouldn't match the a-zA-z he originally intended... am i missing something? -jack "..s.c.o.t.t.. [gts]" wrote: > > print preg_replace('/(.*?)(\w{2})(.*)/', '\\2', $blah); &

Re: [PHP] Unix timestamp

2001-05-10 Thread Jack Dempsey
mktime -- Get UNIX timestamp for a date Description int mktime (int hour, int minute, int second, int month, int day, int year [,int is_dst]) Parse that list of values into the respective variables and pass them to mktime -jack TV Karthick Kumar wrote: > > Hi List.. > >

Re: [PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread Jack Dempsey
for your specific example, check out http://www.php.net/manual/en/function.readdir.php lots of simple functions like that have already been written for you...the joy of php ;-) -jack macky wrote: > > im using PHP + APACHE on Linux Box > > i wonder what command in PHP can i us

Re: [PHP] carriage return (writing files)

2001-05-09 Thread Jack Dempsey
ED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] echo "foo\n"; #<-- the \n is a newline echo "foo\r"; #<-- the \r is a carriage return what you use will depend on what system you're wor

RE: [PHP] MYSQLDUMP

2001-05-08 Thread Jack Dempsey
you should be supplying a password...what's the error? -jack -Original Message- From: TopFive [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: [PHP] MYSQLDUMP When I attempt to backup my database using MYSQLDUMP, I get repeated s

[PHP] regarding classes

2001-05-08 Thread Jack Dempsey
_item(0,"zero"); $c->add_item(1,"one"); $c->add_item(2,"two"); $c->output(0); $c->output(1); $c->output(2); ?> that should be what you're looking for -jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] How to read a web page and analyze but not display it

2001-05-08 Thread Jack Dempsey
Dexter, that's a pretty broad question...if you look at the functions at php.net such as fopen, you should find some information regarding reading webpages... -jack -Original Message- From: Dexter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 6:28 PM To: [EMAIL PROT

RE: [PHP] php, snmp, and mibs

2001-05-08 Thread Jack Dempsey
Mike, I haven't worked with MIB files myself, but what you're describing sounds like it could be solved with regex's...can you post a snippet of what file looks like that you're trying to extract from? -jack -Original Message- From: Mike Backes [mailto:[EMAIL PROTE

RE: [PHP] conversion script

2001-05-08 Thread Jack Dempsey
a simple perl script would suffice...don't have time to write one now (paper to write...joy) but if you can't find one, i can help later... -jack -Original Message- From: Ryan Christensen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:09 PM To: PHP Mailing List Sub

[PHP] RE: Undelivered Mail Returned to Sender

2001-05-08 Thread Jack Dempsey
every reply i send to the list gives this back...could someone take that address off the list? thanks jack -Original Message- From: Mail Delivery System [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:16 PM To: [EMAIL PROTECTED] Subject: Undelivered Mail Returned to Sender

RE: [PHP] Problem with PHP 4.0.5

2001-05-08 Thread Jack Dempsey
are you sure your html is properly formatted? if you like, send me the small script you're using, and i'll run it on a pre 4.0.5 release... if something shows up in ie but not ns that's a browser, not php problem... -jack -Original Message- From: biscut [mailto:[EMAIL P

RE: [PHP] MySql vs PostgreSQL

2001-05-08 Thread Jack Dempsey
http://www.phpbuilder.com/columns/tim20001112.php3?page=1 -jack -Original Message- From: Brent Langston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 1:22 PM To: PHP General List Subject: [PHP] MySql vs PostgreSQL So, I've noticed that most of you talk about PHP/MySQL a

RE: [PHP] Wrapping text to store in the database

2001-05-08 Thread Jack Dempsey
check http://www.php.net/manual/en/function.nl2br.php you could also do a regex, searching for \n, and adding a to it...adding the would make it a little more difficult... -jack -Original Message- From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 1:09

Re: [PHP] Date & Time Formatting ??

2001-05-08 Thread Jack Sasportas
e info (there are loads of examples in > the user notes). > > HTH > Jon > > -Original Message- > From: Jack Sasportas [mailto:[EMAIL PROTECTED]] > Sent: 08 May 2001 17:28 > To: php > Subject: [PHP] Date & Time Formatting ?? > > OK I have read many examp

[PHP] Date & Time Formatting ??

2001-05-08 Thread Jack Sasportas
OK I have read many examples, old posts etc, but I am looking for a detailed explanation as to how to do this. First is when I write to a mysql database using the now() function, the time stamp looks like so when I display the time back to the browser. 204:24:06 ( This should have been 12:24pm

RE: [PHP] PHPmyadmin

2001-05-07 Thread Jack Dempsey
http://www.phpwizard.net/projects/phpMyAdmin/ -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 5:21 PM To: Ryan W. Zajicek; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHPmyadmin I'm curious, Where can I get a copy of PHPmyadmin

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
ok, look into eval() -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE id=1"; This

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
you can do it a couple ways... echo "my user name is " . $user_data["username"]; or echo "my username is ${user_data["username"]}"; -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable question

RE: [PHP] Sorting Multidimensional Arrays

2001-05-07 Thread Jack Dempsey
check http://www.php.net/manual/en/function.asort.php there's a routine someone wrote in the contributed section... -jack -Original Message- From: Rick Dietz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Sorting Multidimens

RE: [PHP] Really easy question

2001-05-06 Thread Jack Dempsey
check your html whenver you see blank pages in netscape, but they work in IE... -jack -Original Message- From: biscut [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 5:03 PM To: Tom Carter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Really easy question Thanks very much for your

RE: [PHP] Trim a string

2001-05-06 Thread Jack Dempsey
if you're string is a variabe $address, then eregi("http://",$address) will tell you if they've put in the http part, and $address = substr("$address",7); will slice off and store the text after the http:// you'll find lots of different ways to do this...what

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Jack Dempsey
header("Location: http://something.foo.bar.com/page.extension?var1=etc";); -Original Message- From: Dean Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 1:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing variables to another page - newbie I have an order form that is vali

RE: [PHP] scripts

2001-05-05 Thread Jack Dempsey
You can make the files in the same group as the webserver. I keep my include files (with a .php extension) in a .phpinclude directory outside my web document root. -jack -Original Message- From: Paul O'Neil [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 05, 2001 4:02 PM To: [

Re: [PHP] PHP & Java ?

2001-05-04 Thread Jack Sasportas
t/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com

[PHP] PHP & Java ?

2001-05-04 Thread Jack Sasportas
! ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] Real Time

2001-05-03 Thread Jack Dempsey
rrent time whent the script would have been accessed...but if you're looking for something that updates itself, look at javascript, or write an applet... -jack -Original Message- From: Budi [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 11:05 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] simple database extraction problem :(

2001-05-03 Thread Jack Dempsey
You can keep a count of what row in the result you are and use that accordingly to format your results... -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 7:10 PM To: php Subject: [PHP] simple database extraction problem :( hi all! just a

RE: [PHP] add to .htpasswd via php

2001-05-02 Thread Jack Dempsey
what user are you running the command on the the command line, and what user is php running it as? if you're root for the first one, but nobody on the second, that would be your problem... -jack -Original Message- From: Joseph Koenig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, M

RE: [PHP] a bit off the list but....

2001-05-01 Thread Jack Dempsey
don't know if its what you're talking about, but try www.sap.com also, search google... -jack -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] a bit off the list but It is a bit off the

Re: [PHP] This is driving me to drink...

2001-05-01 Thread Jack Dempsey
Have you tried printing the values of $p_code and $neuroKey at various stages? Perhaps there's a space or some other slight inconsistency...if you could paste in the snippet, maybe we could see what was going on before this that might have it acting strange... -jack "Richard S. Crawf

Re: [PHP] php suck

2001-04-28 Thread Jack Lauman
After 25 years in the advertising business, I'd say the PHP Group has a hell of a good copyright infringement and defamation case here. The bums are in Manchester, England... Jack idban secandri wrote: > > i found this when surfing this morning > http://www.phpsucks.net/ > &

Re: [PHP] How can this be done?

2001-04-26 Thread Jack Dempsey
http://www.php.net/addslashes -jack Subodh Gupta wrote: > > Hi All, > > I created a table using the create command. > > create table trivia > ( > entry_id integer not null auto_increment, > trivia text null > ); > > Now I have a fle tvia.txt,

[PHP] error reporting/handling

2001-04-26 Thread Jack Dempsey
manesh, its in your php.ini file under error handling and logging... seek and ye shall find... -jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP] What is this??

2001-04-26 Thread Jack Dempsey
Manesh wrote: > > Warning: Undefined variable > > How do i get rid of this??? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] math calculations query

2001-04-26 Thread Jack Dempsey
initialize a total variable to 0. every time you print out a price, $total += $currentprice. at the end you'll have the total. am i misunderstanding you? -jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 3:43 PM To: [

RE: [PHP] where are the mailing lists listed?

2001-04-26 Thread Jack Dempsey
Are you looking for a list of the different addresses? If you move your mouse over the "yes" you'll see the link to the various sections at http://marc.theaimsgroup.com/, or you can go there, scroll to the bottom, and look in the WWW section. They're all there. -jack -

RE: [PHP] cell iterations in loop

2001-04-26 Thread Jack Dempsey
t 42 or something, with just a closing ? solution: make a final check to see if you need that closing That is the if statement after you're loop... I hope this helps. -jack -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:32 PM To:

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Jack Dempsey
Yes, that's the idea behind having multiple drives ( or partitions ). If you format F and load Linux on it, then that won't affect any other partition... -jack Manisha wrote: > > Hi all, > > I am having my own personal computer running on windows 95. I have C / D / >

Re: [PHP] newbie migration issues

2001-04-23 Thread Jack Dempsey
you'll get an e-mail in a second from several others saying the same thingas far as security issues, that's not very descriptive, so its hard to understand exactly what's happening...explain what you're doing better and you'll get a more helpful response... all the best

Re: [PHP] Posting to a form

2001-04-23 Thread Jack Dempsey
it looks like you left off the quotes around the value that you're echoing...try putting it in like this -jack Wade wrote: > > I'm trying to do the following > > > echo strtoupper($Aname); > ?> > > But when Aname is multiple words, such as &

RE: [PHP] Remove duplicates, as long as you have it.

2001-04-22 Thread Jack Dempsey
if the lines are exact duplicates, then you could open the file with PHP or Perl, then scan through it, line by line, each time throwing the line in the next cell of an arraythen you should be able to sort by the values in those cells, and after you have that, deleting duplicates would be simp

RE: [PHP] TheCasino.com: You have been removed!

2001-04-20 Thread Jack Dempsey
aww shucks, now i won't be a millionaire. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 10:57 PM To: [EMAIL PROTECTED] Subject: [PHP] TheCasino.com: You have been removed! http://www.TheCasino.com: Better Than Life! (tm) Sin

RE: [PHP] Problems with pattern matching

2001-04-20 Thread Jack Dempsey
i got the echo of "AOHell user" to appear with this... i'd look at what remote addr returns and check and see if that works with your regexp... jack $hostname = "www.aol.com"; if (eregi(".*\.aol\.com.*", $hostname)) { echo $

RE: [PHP] displaying string combinations

2001-04-19 Thread Jack Dempsey
echo "$banner3"; break; case 4: echo "$banner4"; break; } -jack -Original Message- From: Ray Iftikhar [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 3:03 AM To: Php-General List Subject: [PHP] displaying s

RE: [PHP] Newbie question: Page Counter

2001-04-19 Thread Jack Dempsey
chmod is a *nix command. you do it to the file: chmod 777 counter.inc on the command line -jack -Original Message- From: Marthe Kristiansen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 3:04 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Newbie question: Page Counter >t

RE: [PHP] Regular Expressions?

2001-04-19 Thread Jack Dempsey
if you put ^ at the start of your regexp, that means you want the start of the string to match your expression...$ is used for the end of the string... -jack -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 2:41 AM To: [EMAIL PROTECTED

RE: [PHP] Authentication

2001-04-19 Thread Jack Dempsey
check and see if you have create_privilege on the database, and also make sure your code is clean...echo the sql statement before you use it and type it into mysql from the mysql command line and see if it works then... -jack -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jack Dempsey
gress without quitting... the squares in notepad were a result of you taking a file from a *nix systemtry opening it with wordpad, and you should be fine... -jack -Original Message- From: Tony Daniels [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 11:26 PM To: [EMAIL PROTEC

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jack Dempsey
here. Then, when you upload, since its text, you don't need to set it to binary. I use CuteFTP for uploading and downloading files, but when coding anything, I find it easier to just telnet in and use pico (now I submit to flames from BOTH the vi and emacs lovers =P ) best of luck, jack -O

RE: [PHP] Characters counting

2001-04-18 Thread Jack Dempsey
about that... -jack -Original Message- From: Jorn van Eck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2000 3:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Characters counting Hi there, Does someone know how to display for example150 characters from a $ set by MySQL? -- Jorn van

RE: [PHP] Form Processing problem....

2001-04-17 Thread Jack Dempsey
afterwards which is incorrect...you have to do something after you process the info... best of luck, jack -----Original Message- From: Jack Lauman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 8:47 PM To: php-general Subject: [PHP] Form Processing problem I am calling the fol

[PHP] Form Processing problem....

2001-04-17 Thread Jack Lauman
processes the form, sends the message and commits to the database. I would appreciate any insight on how to resolve this problem. Thanks, Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread Jack Dempsey
yes, that's a multi-dimensional array, which is fine in php (and everything else i can think of =P)... -jack Scott Fletcher wrote: > > Hi! I am wondering if there is such a php array that can take care of the x > and y axis data. I figure that using this array type, $axis[$x][

Re: [PHP] HTML and slashes.

2001-04-17 Thread Jack Dempsey
...you probably have them on...if they are on, PHP will "magically" put a \ in front of ' or " so you don't have to worry about that when you enter your data into wherever...you can disable it in your php.ini, or at runtime... -jack > > > Where does the " &#x

Re: [PHP] cgi vs. module

2001-04-17 Thread Jack Dempsey
If someone wants to run PHP scripts for other purposes then dynamic web content, say to act like shell scripts, then you'll want to have it be compiled as a CGI...so, its more than just the windows thing... -jack Plutarck wrote: > > The only reason I am aware of to use PHP as

Re: [PHP] Form Field

2001-04-17 Thread Jack Dempsey
Why don't you just put the quotes outside the php? That will give you foo -jack Mike wrote: > > What I need to do is append parenthesis to the front and back of > ('1'.$row[0][0]), but when I do that it doesn't parse correctly. What I'm > getting now is:

[PHP] Passing Parameter

2001-04-11 Thread Jack Sasportas
needs the value being passed to it, in this case part_no then I would take other input information and pass all if it along with part_no to a cgi script. Can someone give me a good sample ? Thanks ! -- ___ Jack Sasportas Innovative Internet

[PHP] Javascript issue

2001-04-11 Thread Jack Sasportas
t of the html. The problem is that the mouseover doesn't work within the php page which puts the whole thing together. Any ideas on how to work around this ? Thanks -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665

Re: [PHP] page counter

2001-04-09 Thread Jack Dempsey
yes yes, bad habit i know ;-) but tis only a counter file... sometimes it probably is just better to explain the SLIGHTLY more complex solution in favor of starting a bad habit :-) all the best, jack Brian Clark wrote: > > Hi Jack, > > @ 2:44:51 AM on 4/10/2001, Jack D

Re: [PHP] while loop

2001-04-09 Thread Jack Dempsey
Zeus wrote: > > That was detailed :) > > Thanks Jack, it fixed my misconception of the = and == operators. > > BUT ... > > > mysql_fetch_array keeps track of where it is in the array. > > after each while loop it moves a 'step ahead' in the re

Re: [PHP] page counter

2001-04-09 Thread Jack Dempsey
to do would be to make it world writeable. chmod 777 count.txt. you should then have the perms to write to it. -jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] while loop

2001-04-09 Thread Jack Dempsey
Zeus wrote: > > Isn't the '=' operator suppose to be used for assigning and not for > evaluation. > yup. > I thought '==' should be used in this context? nope. Thing is, you ARE assigning. Here's a breakdown of the controlling part of the loop in english: --->while ($row = mysql_fetch_array

Re: [PHP] last three characters of a string

2001-04-09 Thread Jack Dempsey
echo "last 3 chars are " . substr($string,-3); Joseph Bannon wrote: > > I need to examine the last 3 characters of a string. Is there code that does > that? > > J > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-m

RE: [PHP] putting a list of data into 3 columns?

2001-04-07 Thread Jack Dempsey
the method i gave you will do this..if you use the if clause i showed and work with it for more than a minute you'll see how you can test to see if you should add an to your data, and this will let you make your columns.play with it and you'll see...... -jack -Origin

RE: [PHP] Char Problem

2001-04-07 Thread Jack Dempsey
are you sure? have you looked here -> http://www.php.net/manual/en/function.set-magic-quotes-runtime.php maybe i'm misinterpreting it, but it seems to do just what he wants... -jack -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 07, 2

RE: [PHP] Char Problem

2001-04-07 Thread Jack Dempsey
look here http://www.php.net/manual/en/function.set-magic-quotes-runtime.php -jack -Original Message- From: Mon Akira [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 07, 2001 3:03 PM To: "Jack Dempsey" Subject: Re: [PHP] Char Problem On my server I cant change anything on t

RE: [PHP] putting a list of data into 3 columns?

2001-04-07 Thread Jack Dempsey
You don't need to count...in your loop you can do something like this: if($current_pos%3==0){ //then you're at a multiple of three //code to start new column here } -jack -Original Message- From: DRN [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 07, 2001 2:55 PM

RE: [PHP] Char Problem

2001-04-07 Thread Jack Dempsey
look in your php.ini for the setting of magic_quotes if on, then php will automatically escape quotes for you once you've submitted data...you can turn it off, and then addslashes right before you enter your info into a database, or leave it on and stripslashes where appropriate.....

RE: [PHP] here doc performance

2001-04-06 Thread Jack Dempsey
imagine it would be just a bad implementation which will be fixed soon. But I strongly doubt a bad implementation of here doc printing was made. -- Plutarck Should be working on something... ...but forgot what it was. ""Jack Dempsey"" <[EMAIL PROTECTED]> wrote in messa

[PHP] here doc performance

2001-04-06 Thread Jack Dempsey
Hi all, I use the here doc option heavily in pages i create, outputting large chunks of HTML with variables inside the echo<

Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Jack Dempsey
with .. in it, it'll still find your file correctly.... jack Chris Anderson wrote: > > I know using ../ in a path moves to the parent directory. But is there a way to move >back farther then that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] PHP + IRC

2001-04-05 Thread Jack Dempsey
late, i'm tired of coding java, and posting a message basically describing your frustration because someone won't give you the nicely packaged annotated ball of information you're looking for because you don't have the time to do it is just plain irritating... best to all, jack

Re: [PHP] how to return strings from functions?

2001-04-03 Thread Jack Dempsey
i just test that code and i got the full string fine...check and see if what you typed here is the same as your original code... jack Vlad wrote: > > Hi all > > script example: > > function smth(){ > $result = '1234 - the number'; > return $result; > } &

Re: [PHP] redirecting without headers or meta tags or javascript

2001-04-02 Thread Jack Dempsey
if you're trying to redirect with something like header, then you need to do that redirection before any output is sent to the browser...(note, ANY output, likes SPACES) look at www.php.net/header if you're interested... jack Justin French wrote: > > hi, i'm in the body of

Re: [PHP] Safety with PHP.

2001-04-02 Thread Jack Dempsey
Hey Marthe, Do you know what he did? The problem may not have been a "PHP" problem as much as a design or security issue...if you could include some code, or tell us what he actually did, we might be able to explain a) why its a problem or b) why its not a PHP issue... best regards, ja

Re: [PHP] is this syntax correct?

2001-04-02 Thread Jack Dempsey
Jacky, basic thing about sessions: you need session_start() at the top of every page in which you expect to use them...check out zend.com for some tutorials...but yes, you do need it at the top of that page... -jack "Jacky@lilst" wrote: > > Not really, do I need to have sess

Re: [PHP] setcookie().. how to retrieve data afterward?

2001-04-01 Thread Jack Sasportas
gt; > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Ja

Re: [PHP] problem loading extension

2001-03-31 Thread Jack Dempsey
ahh, ok, misread your post...don't know what it could be..don't have experience with php and dlls... best of luck! -jack Christian Dechery wrote: > > of course... > it's while loading apache that the error message appears... > > >restart apache/php? > >

Re: [PHP] problem loading extension

2001-03-31 Thread Jack Dempsey
restart apache/php? -jack Christian Dechery wrote: > > I posted a message a while ago about having trouble loading php_mssql.dll > extension. > It gave me that error: 'can't find ...'. So I was stuppid enough to realize > I didn't have MS SQL 7 installe

Re: [PHP] Quick RegEx Question

2001-03-31 Thread Jack Dempsey
> I want to check if a variable contains a price, like > $19.99 > It definitely would be a dollar sign, two integers a dot and > two integers. Here is what I tried which doesn't work. > > if (ereg("\$([0-9]{2}).([0-9]{2})", $Price)) > or > if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price)) > > Than

Re: [PHP] "Here Document" function AWOL

2001-03-30 Thread Jack Dempsey
http://www.php.net/manual/html/language.types.string.html#AEN2504 what you wrote looks correct...just make sure you have no trailing whitespace on the $body = << > Dear PHPers. I have tried to get the "Here Document" functionality to > work, all to no avail. > > I am writing the following code

Re: [PHP] No-refresh

2001-03-30 Thread Jack Dempsey
check the archives...you can use javascript or perform a check off the data to be inserted to see if its already there... -jack David Hynes wrote: > > Does anyone know of a way to stop the user from refreshing a page several > times. > > i.e if I add a value to a database using

Re: [PHP] phpinfo unneeded

2001-03-30 Thread Jack Dempsey
checkout your php.ini file...you can disable functions in it... -jack juang wrote: > > HI all, > how to compile php without function phpinfo enalbe. so if user call phpinfo() it >would be false/error. > i would like to build a free web server with php but i don't like if

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
and steal your code, all the more reason for a tight contract... best of luck jack Marian Vasile wrote: > > For all who asked why I need this kind of protection: > > I have a client who wants an web site with registration and everything > included, poll, message board, foru

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
yes there is. the encoder. that's it. and no, i don't have to agree with you, there are plenty of people on this list alone who have used php for "commercial" applications...and if you're doing something that big and commercial the you should be able to pay the $2400

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
c... if it's a code issue, there have been discussions of that before in the archives (familiar feeling to that phrase)...http://marc.theaimsgroup.com go to the bottom and find the php-general list and do a search... -jack Marian Vasile wrote: > > I can't believe that no one

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
no...gtk=gimp tool kit...(think graphics =P) http://gtk.php-coder.net/ check out that page...Joe Stump threw it together nicely; it has tons of useful info and links if you're so inclined, but no, nothing to do with compiling php... -jack Marian Vasile wrote: > > I heard about somet

Re: [PHP] Need help with file include

2001-03-30 Thread Jack Dempsey
"is there a way" i'm sure there is, but you haven't given enough information to get much more of a response... show us some code, explain clearly and concisely what you're trying to do, and we might be able to help more... -jack p.s. and the quick answer is yes, you

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
distribute source that could be copied and distributed (well, sometimes that's good ;-), but not if this is a system i've been contracted to design ) -jack Marian Vasile wrote: > > Jack Dempsey <[EMAIL PROTECTED]> wrote in message > news:<[EMAIL PROTECTED]>... > >

Re: [PHP] [ANSWER] problem uploading big (50MB) file

2001-03-30 Thread Jack Dempsey
basic algebra: 1k = 1024 bytes 1mb = 1024 kbytes = 1048576 bytes 100mb= 104857600 bytes Xmb = (1048576 * X) bytes -jack Matt Williams wrote: > > > > Try replacing "100M" with it's byte equivalent. Or maybe it's > > > kilobytes. One on of my sys

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
you can use the zend encoder (www.zend.com) but it costs over $2000, so this may not be viable...but, for right now, i believe that's the only way to compile php code... -jack Marian Vasile wrote: > > I need a method to compile my php files to give them to a customer. > > Th

Re: [PHP] Image Resizing in PHP

2001-03-29 Thread Jack Dempsey
ok, so then read the image in using php's image functions, and use imagecopyresized...you'll even find a post about thumbnails... http://www.php.net/manual/en/function.imagecopyresized.php -jack Jason Murray wrote: > > > Perhaps i'm not following what you'

Re: [PHP] Image Resizing in PHP

2001-03-29 Thread Jack Dempsey
m sure a little searching through google will turn up some good stuff...try the php sites too (phpbuilder, etc) -jack YoBro wrote: > > Hello, > > Is it possible to have PHP resize an image on the server? > > Example. > If I upload a JPG file at about 40KB at 600x480 Resolution

Re: [PHP] Re:javascript to php

2001-03-29 Thread Jack Dempsey
perl, TMTOWTDI -jack cam k wrote: > > thanks, I found the discussions. How do I pass one large array?? As a > hidden input type on a form? > "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > You co

Re: [PHP] Re:javascript to php

2001-03-29 Thread Jack Dempsey
into your database at the end when you're done... -jack cam k wrote: > > what exactly are you trying to do? pass variables to a php script? then > use a form with POST or GET...not that simple? describe better what > you're doing then... > > -jack > > cam

Re: [PHP] PHP vs Perl

2001-03-29 Thread Jack Dempsey
someone recently posted a link to a benchmark test that was done...there's never an absolute, but i do remember php w/zend as pretty much whipping the competition...search the mailing list for the link if you want to see for yourself... -jack David Hynes wrote: > > Hi, > &g

Re: [PHP] javascript to php

2001-03-29 Thread Jack Dempsey
what exactly are you trying to do? pass variables to a php script? then use a form with POST or GET...not that simple? describe better what you're doing then... -jack cam k wrote: > > does anyone know how to pass values in javascript variables to php > variables?? Or a workaroun

Re: [PHP] Better way (if...elseif...else)

2001-03-29 Thread Jack Dempsey
you can use switch statements: switch($priority){ case 000: code here break; case med: more code break; default: in case none match use default } -jack "Ashley M. Kirchner&q

<    1   2   3   4   5   6   7   >