[PHP] creating objects by reference?

2002-12-18 Thread Jonathan Sharp
Is it better to do: $obj = new object(); verses: $obj = new object(); thanks, -js -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to send an MSWORD email?

2002-12-15 Thread Jonathan Sharp
search google for RFC HTML email, or look at phpmailer.sourceforge.net. It's roughly along the lines of: Headers... Subject: My html email Content-type: multipart/mime Content-boundry(): BOUNDRY-ABC ---BOUNDRY-ABC--- Content-type: text/html ...more headers... Hello! This is an html email

Re: [PHP] Executing a Perl/CGI program from PHP

2002-12-15 Thread Jonathan Sharp
You're trying to mix two different things. SSI (Server Side Includes) and PHP. The page you're calling gets parsed ONLY by PHP. So echoing #exec won't work. Look at the virtual() function ~~ http://php.net/virtual -js On Sun, 15 Dec 2002 14:10:17 -0800 Troy May wrote: Hello, I have a

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jonathan Sharp
also take a look at hord-imap (http://www.hord.org) -js On Mon, 2 Dec 2002 14:06:01 +0100 [EMAIL PROTECTED] wrote: Le Lundi 2 D¨¦cembre 2002 13:30, [EMAIL PROTECTED] a ¨¦crit : Who can tell me the best php-base webmail? I want a webmail for my mail server, give me a suggest, please!

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Jonathan Sharp
I think you\'d want to use: if ( $_SERVER[\'QUERY_STRING\'] == \'samples\') { // code } otherwise if you use , set your links as: a href=\index.php?samples=1\ -js On Sun, 1 Dec 2002 22:38:54 -0500 Holmes wrote: I\'m sure this is easy, but I\'m drawing a blank. I need to have links

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Jonathan Sharp
I think you\'d want to use: if ( $_SERVER[\'QUERY_STRING\'] == \'samples\') { // code } otherwise if you use , set your links as: a href=\index.php?samples=1\ -js On Sun, 1 Dec 2002 22:38:54 -0500 Holmes wrote: I\'m sure this is easy, but I\'m drawing a blank. I need to have links

[PHP] test for ascii or binary string

2002-11-29 Thread Jonathan Sharp
Is there a way to determine if a string has ascii or binary data in it? -js -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: test for ascii or binary string

2002-11-29 Thread Jonathan Sharp
Doh, so simple. I guess the correct form of the question would be how do I determine if a string has just a-zA-Z0-9 in it plus punctuation... thanks, -js Paul Chvostek wrote: On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote: Is there a way to determine if a string has ascii

Re: [PHP] Graph Question..

2002-11-20 Thread Jonathan Sharp
Please post code. -js James Hatridge wrote: Hi all,, I d/l'ed a class for graphs last night. When I got the class working instead of a line graph I got the netscape symbol for no picture, ie a broken box. I must have missed something. Could someone give me a clue what I'm doing wrong?

Re: [PHP] Newbie: nested include and object in session

2002-11-20 Thread Jonathan Sharp
1. see php.net/include_once 2. Yes $_SESSION['foo'] = new foo(); $myFoo = $_SESSION['foo']; $myFoo-var = 123; /* page2.php */ $myFoo = $_SESSION['foo']; echo $myFoo-var; -js Michael Wai wrote: Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to get some help.

Re: [PHP] templates

2002-11-19 Thread Jonathan Sharp
I'm assuming you're trying to have a select list. Try this: select name=foo onChange=window.location='?=$PHP_SELF??action=loadfile=' + this.value option value=file.xmlFile XML1/option option value=file2.xmlFile foo/option /select Just make sure you test the value you get for file, so that

Re: [PHP] mailing by SMTP

2002-11-19 Thread Jonathan Sharp
phpmailer.sourceforget.net -js Siamak wrote: hi how can i send a mail by a smtp server from a php page? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] this oop-script still doesn't work

2002-11-19 Thread Jonathan Sharp
$overall-foo-bar() works for me. also there's no need for the eval('global...') line Apache 1.3.27, PHP 4.2.2 -js Tularis wrote: ok, I have gotten great help here already, but it still doesn't work, it returns a object not found error (on the $foo-bar() line). I want to change

Re: [PHP] Seconds to minutes

2002-11-19 Thread Jonathan Sharp
i'll just throw my code in here while we're at it... $seconds = 3600*5 + (60 * 10) + 45; $hours = floor( $seconds / 3600 ); $mins = floor( ($seconds % 3600) / 60 ); $seconds = floor( ($seconds % 60) ); echo Hours: $hours\nMins: $mins\nSeconds: $seconds\n; -js John W. Holmes wrote: You can do

Re: [PHP] Re: REPLY NEEDED

2002-11-19 Thread Jonathan Sharp
MY GOODNESS! Thing of what 126M would do for the open source movement! We could run php.net on gold plated servers! Not to mention a 64 way sun box with all the bells and whistles, and spruced up with urb3r cool lighting kits! or thing of all the cd's you could send to AOL for 126M! any other

Re: [PHP] Protecting Queries

2002-11-17 Thread Jonathan Sharp
the issue isn't with query, it's with variables used within queries... example: $id = $_GET['id']; $query = SELECT * FROM mytable WHERE id=$id; and if you call this page as (or something like this): ?id='' OR 1=1 You can alter the query -js Stephen wrote: Since day one of me doing MySQL

[PHP] Serialization of references to objects

2002-11-16 Thread Jonathan Sharp
How is serialization of references handled? Example: class foo { var $abc; function bar() { echo $this-abc; } } $obj = array( new foo(), new foo() ); $baz = serialize($obj); /* ... dancing monkey for entertainment while time passes ... */ $obj = unserialize($baz); Will

Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Jonathan Sharp
Can you post some sample code as well as paths to symlinks etc. -js Michael Sims wrote: On Wed, 13 Nov 2002 20:12:44 -0500, you wrote: When I require a file from index.php, if there's no .. on the path (a relative path, but not going back), the relative path is from where the original

Re: [PHP] Removing duplicates in multi-dimensional array

2002-11-14 Thread Jonathan Sharp
When you build your 2d array you could make a seperate 1d array that's indexed by the fax number and if it's set, not set it in your array... -js René Fournier wrote: I'm finding this one hard to approach... I have a two-dimensional array, containing customer contact information. Looks

Re: [PHP] Trivial newbie regex question

2002-11-14 Thread Jonathan Sharp
one more thought bout this just for the record... not sure which is faster, but this may be the better solution: $index = substr($url, strrpos($url, '/'), strrpos($url, '.')-1); -js Jonathan Sharp wrote: good catch, i guess i love php so much i just expect it to know what i want it to do

Re: [PHP] How to implode multi-dimensional arrays?

2002-11-14 Thread Jonathan Sharp
foreach( $array AS $d2 ) { $string .= implode('', $d2) . \n; } -js René Fournier wrote: The docs don't seem to discuss this... Or maybe I'm looking in the wrong place. Anyway, I want to convert a multidimensional array back to the tab-delimited format it began as (\t separating fields, \n

Re: [PHP] How to implode multi-dimensional arrays?

2002-11-14 Thread Jonathan Sharp
Dope...try this instead... foreach ( $array AS $a ) { $string .= implode(\t, $a) . \n; } -js Jonathan Sharp wrote: foreach( $array AS $d2 ) { $string .= implode('', $d2) . \n; } -js René Fournier wrote: The docs don't seem to discuss this... Or maybe I'm looking

Re: [PHP] Relaying variables to distant site

2002-11-14 Thread Jonathan Sharp
Pulling this idea from down south, but could you do serialize($_GLOBALS) and then POST that to the distant site and unserialize it? what are you trying to accomplish exactly? A Proxy? -js Mike MacDonald wrote: Hi People! Can anyone help with this: Want to pick up variables passed

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
try basename('http://www.domain.com/stuff/index.html'); -js Charles Wiltgen wrote: Hello, I just want to get the index part of http://www.domain.com/stuff/ index.html. I'm trying to figure out this regex stuff, but it hasn't yet clicked. Here's my best guess:

Re: [PHP] Qmail / PHP question

2002-11-13 Thread Jonathan Sharp
If I remember correctly (it's been a while) the contents gets passed through STDIN to in this case wget, it'd be better to call the script as: |/usr/bin/php -q /path/to/script.php or put: #!/usr/bin/php at the top of your script and call as: |/path/to/script.php and use: (i forget the exact

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
... -Original Message- From: Jonathan Sharp [mailto:js-lists;sharpmedia.net] Sent: Wednesday, November 13, 2002 10:34 PM To: Charles Wiltgen Cc: List ˆ PHP General Subject: Re: [PHP] Trivial newbie regex question try basename('http://www.domain.com/stuff/index.html'); -js Charles

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
good catch, i guess i love php so much i just expect it to know what i want it to do! -js John W. Holmes wrote: substr(basename($url), 0, strrpos($url,'.')-1); note the '.' :) ---John Holmes... -Original Message- From: Jonathan Sharp [mailto:js-lists;sharpmedia.net] Sent

Re: [PHP] preg_split() - pattern problem

2002-11-11 Thread Jonathan Sharp
I believe it's U so try /T.*0.*B/U -js Jason Wong wrote: On Tuesday 12 November 2002 02:26, Tobias Talltorp wrote: How would I write the pattern for this preg_split()? /T.*O.*B/, seems to only return the first and last portion of the string (1: Once upon a time, 2: going for a walk).

Re: [PHP] attachement

2002-11-10 Thread Jonathan Sharp
see http://phpmailer.sourceforge.net -js Oliver Witt wrote: Hi, I wrote a php script that's supposed to enable me to attach files to an email. However, the attached files ends up being a mess of letters. Hallo becomes SGFsbG8=. That must have to do with encoding. Is that a common problem

Re: [PHP] Create associative array from comments by preg

2002-11-10 Thread Jonathan Sharp
Here's the code... -js $string = EOF !-- comname 1--! value 1 !-- end comname 1--! !-- comname 2--! value 2 !-- end comname 2--! EOF; preg_match_all('/!--\s*(.*)\s*--!\s*(.*)\s*!--\s*end\s*\\1\s*--!/i', $string, $matched); $array = array(); foreach ( $matched[1] AS $i = $m ) { $array[$m]

Re: [PHP] Been looking for a tutorial on how to create themes ingeneral

2002-11-04 Thread Jonathan Sharp
look at smarty (smarty.php.net) as it does templates, and i am accomplishing 'themes' on a current project by just changing the template directory. -js Marek Kilimajer wrote: My way: take a theme that most suits your needs and change it Kevin Myrick wrote: Ok, like I stated in my last

Re: [PHP] Send $out embedded in a mail in HTML FORMAT

2002-11-03 Thread Jonathan Sharp
search google for 'phpmailer' (I think http://phpmailer.sourceforge.net) -js John W. Holmes wrote: Search the archives or google for HTML email with PHP and you'll get a ton of examples. You just have to send a Content-Type: header to tell the mail reader it's HTML. ---John Holmes...

Re: [PHP] ASTemplate

2002-11-03 Thread Jonathan Sharp
Benchmarks? -js Adam Atlas wrote: First post!!! Um, yeah... anyway... Hi people, I just got a beta of my ASTemplate code out. It's a PHP template system that uses an XML-based format to specify template format and text files (that can be HTML or any other text format) that make up the

Re: [PHP] Control Point of Access for certain pages.

2002-11-02 Thread Jonathan Sharp
in the url pass two (GET) variables: hash and token generate a md5 hash from a secret string and the token (like time())... oh your page with links to pop ups: ? $secret = Pigs can fly i see; $token = time(); $hash = md5($secret.$token); ? On your popup page: ? $secret = Pigs can fly i see;

Re: [PHP] Session Management

2002-11-02 Thread Jonathan Sharp
first off: IP addresses are not the way to go about this AT ALL. Even if they are behind a proxy, they would most likely be running on a private subnet (say 10.0.0.x) and worse yet, if a company has multiple backbones (like the one I consult at) traffic could go through one of 3 gateway routes

Re: [PHP] Fwd: Quarter question..

2002-11-02 Thread Jonathan Sharp
try this: -js table border=1 ? $i = 0; while ( $myrow = mysql_fetch_array($result) ) { $c = ( ++$i % 2 ? 'yellow' : 'white' ); echo tr bgcolor=\$c\; printf('tda href=%s?id=%sdelete=yesDelete/a/td', $PHP_SELF, $myrow['id'] ); $q = ceil( 4/(int)date('n', strtotime($mydata['date'])

Re: [PHP] help needed with phpmailer

2002-10-31 Thread Jonathan Sharp
SEE: http://phpmailer.sourceforge.net/extending.html (click Home Page then examples) -js Pushpinder Singh Garcha wrote: Hi All I am new in the php development world. I have made a simple mail application using the phph mail() function. I needed to use an attachment facility ith the

Re: [PHP] str_replace

2002-10-31 Thread Jonathan Sharp
$del = array(' ', ', '\\', '/'...etc); foreach ( $del AS $d ) { $file = str_replace($d, '', $file); } -js rick wrote: How could this be written better? Is there a way to do it all in 1 line? $file = str_replace( , , $file); $file = str_replace(', , $file); $file = str_replace(\\, ,

Re: [PHP] session vs. header

2002-10-30 Thread Jonathan Sharp
huge junk mail wrote: Can someone tell me why I can't have $_SESSION['foo'] = 'content of foo'; following by header('Location: http://www.mysite.com'); Someone from www.php.net told me that it can confuse browser (http://bugs.php.net/19991). But, still I can't the idea why it can

Re: [PHP] [Fwd: Problem about pear]

2002-10-30 Thread Jonathan Sharp
try: 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR' mine is /usr/lib/php/PEAR (Gentoo) -js [EMAIL PROTECTED] wrote: Subject: Problem about pear From: [EMAIL PROTECTED] Date: Thu, 31 Oct

Re: [PHP] parse error

2002-10-30 Thread Jonathan Sharp
try: $fp = fopen('temp/'.$userfile_name[($i-1)], w+); -js Andres, Cyrille wrote: Hello everybody, maybe I am dumb , I dunnow, I have a parse error here and I don't understand why : $fp=fopen(temp/$userfile_name[$i-1],w+); the error I get is : Parse error: parse error, expecting

Re: [PHP] Secure Connection

2002-10-29 Thread Jonathan Sharp
This really has little to do with php. Use SSL for the connection (search on your favorite search engine). If you're asking about storage methods of the sensative information, www.php.net/crypt will answer that question. -js Pushpinder Singh Garcha wrote: Hi, I am making a secure page

Re: [PHP] Secure Connection

2002-10-29 Thread Jonathan Sharp
Jonathan Sharp wrote: This really has little to do with php. Use SSL for the connection (search on your favorite search engine). If you're asking about storage methods of the sensative information, www.php.net/crypt will answer that question. Correction: try www.php.net/mcrypt -js -js

Re: [PHP] system() function

2002-10-29 Thread Jonathan Sharp
E... try COM maybe... -js Don Hicks wrote: Hello, I'm running php on a Win2000 server. I also have an MS Access 97 database on the server. I want to tell the database to execute a macro on an as needed basis by running a php system() function, but I'm having difficulty making the

Re: [PHP] newbie: apache prob...

2002-10-28 Thread Jonathan Sharp
Check what user apache is running under (usually nobody) in which case you have to give it world read access (chmod 0755) or make apache run under that user. (second method is perferred). I'm assuming you're running linux. -js Mr. BuNgL3 wrote: Hi... I have a little problem... when i do

Re: [PHP] Form element names starting with the + character????

2002-10-27 Thread Jonathan Sharp
Dan Tappin wrote: I have a simple method of creating easy form processing I thought I came up with the idea (I am not claiming to be the first) to have form elements I want to update via MySQL starting with either - or +. Example: +name=DAN [EMAIL PROTECTED] -notes= id=1 The first 2

Re: [PHP] Form element names starting with the + character????

2002-10-27 Thread Jonathan Sharp
John W. Holmes wrote: I wrote a db class which builds my queries for me. Example snippit: /* -- db.conf -- (table definitions) */ dbNewConn('conn', 'user:password@host'); dbNewDb('database', 'conn'); dbNewTable('my_table', 'database.table_name'); /* -- My script.php -- */ $d = array( 'name' =

Re: [PHP] Need a better way...

2002-10-27 Thread Jonathan Sharp
function mysql_to_date($mysql) { return ( $mysql ? date('m/d/Y', strtotime($mysql) ) : '' ); } -js Todd Cary wrote: My coding is not very concise and I would appreciate suggestions on how to clean this up even though it works: /* MySQL to date */ function mysql_to_date($mysql) {

Re: [PHP] Getting server load?

2002-10-27 Thread Jonathan Sharp
assuming linux and 'server load' to equal 'entire server[read computer] load' try 'uptime' and look at last three #'s try man uptime for more details -js Leif K-Brooks wrote: I know there's a way to check the current server load... does anyone know how? Thanks. -- PHP General Mailing

Re: [PHP] Perl - PHP question

2002-10-24 Thread Jonathan Sharp
You either need to: 1) Set multiple cookies for each index: setCookie('session[foo]'...) setCookie('session[bar]'...) 2) Serialize/unserialize your array. setCookie('session', serialize($session_array) ); $session = unserialize($_COOKIE['session']); -js Tom Woody wrote: Did a google and

Re: [PHP] Sessions: Trigger a new one, Expire an old one

2002-10-16 Thread Jonathan Sharp
); with cookie session : $cook_param= session_get_cookie_params(); $life_time= $cook_param['lifetime']; $path= $cook_param['path']; setcookie(session_name(),,$life_time,$path); $_SESSION= array(); session_destroy(); mb Jonathan Sharp wrote: Ok, here is my

Re: [PHP] browser back-button problem

2002-10-16 Thread Jonathan Sharp
Take an md5 of the entire file contents and store that in your form that get's displayed. Then test if it matches the file when you go to make the changes. Every time you change the file the md5 will change. See below... -js Sample script: ? $file = file('/your/text/file.txt'); if (

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
Sorry... session.cookie_domain in php.ini Make sure you can also write to /tmp -js Ferhat Can wrote: Dear All, I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and a local version of Red Hat. Here is the problem: I have a web site that depends on Session, but the

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
Try setting the session.domain in your php.ini... -js Ferhat Can wrote: Dear All, I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and a local version of Red Hat. Here is the problem: I have a web site that depends on Session, but the Session ID seems to be regnerated

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
- From: Jonathan Sharp [EMAIL PROTECTED] To: Ferhat Can [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 6:55 PM Subject: Re: [PHP] Session problem Sorry... session.cookie_domain in php.ini Make sure you can also write to /tmp -js Ferhat Can wrote: Dear All, I have

Re: [PHP] how to user select multiple=true

2002-10-15 Thread Jonathan Sharp
If I remember correctly, you must set the name field with [] to make it an array. Example: select multiple=true name=foo[] then $foo is an array of the selections. -js Khalid El-Kary wrote: hi, If i have a form that has a select with multiple=ture how would i be able to retireve it's

[PHP] Sessions: Trigger a new one, Expire an old one

2002-10-15 Thread Jonathan Sharp
Simple question. If a users session expires or has timed out, how do I 'force' php to generate a new sessionId? I wrote a handler that stores sessions into a mysql table, and am able to test if it has expired or not. But how do I get php to start a new one? -js -- PHP General Mailing List

Re: [PHP] Sessions: Trigger a new one, Expire an old one

2002-10-15 Thread Jonathan Sharp
Ok, here is my solution: I wanted this to be as self contained as possible: function clean() { /* get name of session find session id */ $name = ini_get('session.name'); $sessid = ( !$_COOKIE[$name] ? ( !$_GET[$name] ? ( !$_POST[$name] ?

Re: [PHP] Multi-Dimensional Arrays

2002-10-09 Thread Jonathan Sharp
try doing this for each item: $cartArray[] = array('itemnumber' = $itemnumber, 'brand' = $brand, 'quantity' = $itemqty, 'name' = $itemname); -js Jonathan Duncan wrote: I am trying to create an array to hold shopping cart information. The array I am using is called cartArray. What I want

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread Jonathan Sharp
Or, you could do... $cat = 'butch'; ${rm_{$cat}_adt} = 'is cool'; // This would set the variable $rm_butch_adt equal to 'is cool' -js - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 8:37 AM Subject: RE: [PHP] inserting a

Re: [PHP] Problem starting session

2001-06-20 Thread Jonathan Sharp
Check your php.ini file, you should set the temp dir setting to semething like C:\tmp and make sure that C:\tmp exists and that whatever user your site is running as in IIS is set to have read/write access... /tmp\sess is for unix...it's not a valid path (/tmp is what is defined as the

RE: [PHP] Which is better??

2001-04-06 Thread Jonathan Sharp
My forms page is named "submit.phtml" form action="submit.phtml" method="post" and if you use the ? echo $PHP_SELF; ? then you don't even need to wory about the file name, as it will always submit to itself... form action="? echo $PHP_SELF; ?" method="POST" -js -Original Message-

RE: [PHP] Variables

2001-04-06 Thread Jonathan Sharp
Have you looked at php.net/manual/ ? Just read through the variables portion and it goes over it. -js -Original Message- From: Cheng, Kynan (London) [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 9:54 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Variables Thanks for

RE: [PHP] Array of words in textfile?

2001-04-06 Thread Jonathan Sharp
If you're splitting by a defined pattern (such as a space " ") explode is quite a bit faster...and i believe that if you need reg exps. you can use split() (which will take a regex as the pattern)... -js -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: [PHP] Building an array from a URL

2001-04-06 Thread Jonathan Sharp
can you just use a POST instead of a get? seems it might be cleaner in this case... -js -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 11:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Building an array from a URL You'll probably want

RE: [PHP] connection id

2001-03-24 Thread Jonathan Sharp
will drop the connection when the script ends. Cheers, -Jonathan Sharp js_AT_imprev.com -Original Message- From: andrie [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 3:38 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] connection id Hello php mania, i

RE: [PHP] executables (.exe)

2001-03-21 Thread Jonathan Sharp
If you're on windows, (which i'm assuming you are) you can call the PHP binary with the path to your php script... so (assuming you have C:\php\bin\ as part of your PATH enviromental variables for windows) you could do PHP C:\path\to\php-script.php and it will run on the command line...or just

[PHP] PSpell?

2001-03-16 Thread Jonathan Sharp
I have checked my phpinfo() and it shows that PSPell is enabled. But when i run the following script (per php.net/manual/ example) i get the following (following) error... $pspell_link = pspell_new ("en"); if (pspell_check ($pspell_link, "testt")) { echo "This is a valid

[PHP] JavaDoc?

2001-03-14 Thread Jonathan Sharp
So i've heard bits and pieces that JavaDoc can parse out comments about php... does anyone have an example of a command line call to javadoc passing a PHP file? Thanks, -Jonathan [EMAIL PROTECTED] (Remove spam. if you want to contact me directly) -- PHP General Mailing List

[PHP] PHP Conference In San Diego?

2001-03-05 Thread Jonathan Sharp
I've submitted a proposal for a tutorial for the PHP conference and it says that you'll be notified on the 1st of March...but I haven't heard anything...has anyone else that submitted something heard anything? Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Best Way To Control Forms

2001-02-22 Thread Jonathan Sharp
I have a few sites which contain forms that span multiple screens (all contained in two scripts though...) theforms.php ? // Include file class theForms { function showScreen1() { global $error; ? The html for the form. ? if($error){ echo

RE: [PHP] select name=....

2001-02-22 Thread Jonathan Sharp
well...i just finished some code for dealing with an option box that has all the states listed... select name="state" size="1" option value=""Select State/option ? $ST[] = 'AL'; $ST[] = 'AK'; $ST[] = 'AR'; $ST[] = 'AZ'; $ST[] = 'CA'; $ST[] = 'CO';

[PHP] CORBA?

2001-02-16 Thread Jonathan Sharp
I've seen mentions of CORBA before and skimmed a book at the local bn, but what exactly is it? Is it programming standards? A seperate language all together? (something like COM?) Thanks, -Jonathan Sharp Technology Director Imprev, Inc. http://imprev.com [EMAIL PROTECTED], [EMAIL PROTECTED

RE: [PHP] CORBA?

2001-02-16 Thread Jonathan Sharp
Well, since Gerald's answer was so informative...check out www.corba.com they list the main concepts and give standards. Cheers, -Jonathan -Original Message- From: DanO [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:47 PM To: Gerald Gutierrez; Jonathan Sharp; [EMAIL

[PHP] Searching Archives

2001-02-15 Thread Jonathan Sharp
getting repeated...or what about a bot that extracts key words and sends an automated response to that person with a digest version of the last thread that matched those words? Call it "Ask G'enie" or something... -Jonathan Sharp -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Newbie User Def Function Question

2001-02-15 Thread Jonathan Sharp
on("Foobar!"); ? Cheers, -Jonathan Sharp -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 8:01 PM To: PHP Subject: [PHP] Newbie User Def Function Question Could anyone give me the correct syntax for calling a function. I

[PHP] True || False ?

2001-02-15 Thread Jonathan Sharp
How does php handle true and false? Do they act as true booleans? Can I do? function foo() { return false; } Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Structuring large PHP programs

2001-02-14 Thread Jonathan Sharp
do you include EVERY file in init.inc even if that script doesn't use it? So if you have a db.inc and it doesn't use the db at all...is it included? -Jonathan -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:11 PM To: Ben Peter Cc:

RE: [PHP] To The Hacker: CodeBoy

2001-02-12 Thread Jonathan Sharp
would like. But posting to the list and calling me a "hacker" is in appropriate. As well as some of the allegations that "You did this day after day for almost five days, sir." that is incorrect, i logged in that one friday night. Thank you, -Jonathan Sharp -Original Message

RE: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread Jonathan Sharp
Ok, I just checked my mail and found this thread... to clear this up... In one of your posts you posed a url to a script you were working on...and I backed up a directory and it gave me a directory listing...one folder was /admin/ it gave another listing...then showed phpMyAdmin and then it gave

RE: [PHP] Getting ASPELL to work?

2001-02-07 Thread Jonathan Sharp
I believe that aspell is somewhat outdated now...try pspell...(which uese aspell..check php.net docs) -codeboy -Original Message- From: Sam Masiello [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 11:23 AM To: Nicholas Pappas Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] SQL Statments?

2001-02-05 Thread Jonathan Sharp
If I have a text file with all my sql statements (from like say mysqldump) what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql 3.22.32 Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Jonathan Sharp
, effecient stuff that plugs into the whole picture has been virtually non-existent...(if you do, please call! We have a few openings!) Thanks, -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398

RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Jonathan Sharp
http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Jonathan Sharp" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 12:49 PM

RE: [PHP] contracting consulting (was [PHP] Pricing for PHP pr ogramming???)

2001-02-01 Thread Jonathan Sharp
because that's too easy! Why would we want to use a system that's already in place? hehehe...looks good! I think it'd be best to have PHP jobs listed at THE PHP.NET site...got my vote! -Jonathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: [PHP] Dynamic Variable Creation from Forms

2001-01-31 Thread Jonathan Sharp
have you thought about creating an array of the variables? "chk[$row]" and then you'd read 'em back like chk["aaa"] or chk["bbb"] or you could loop through the array with a each statement... but for variable variables...try ${"chk_".$row}["field"

RE: [PHP] Pricing for PHP programming???

2001-01-31 Thread Jonathan Sharp
- http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Jonathan Sharp" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 01, 200

[PHP] PEAR?

2001-01-29 Thread Jonathan Sharp
I came across http://pear.php.net/ So what is this? I found this in the PHP Developers Cookbook by SAMS...Right now it only has a few documentation and coding standards...are there more plans for this? -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware

RE: [PHP] $DOCUMENT_ROOT

2001-01-29 Thread Jonathan Sharp
define('DOCUMENT_ROOT', 'C:\path\to\document\root'); NOTE! This would define a global variable to all your scripts without the $ dollar sign. include(DOCUMENT_ROOT."/folder/file.php"); -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flye

[PHP] ' VS

2001-01-29 Thread Jonathan Sharp
style? -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 EPage: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp
wo live servers...NT is my desktop only because I use homesite to dev with and a few other winx progs. Also if anyof you out there know a good colorcoding *nix developer app (for PHP of couse) please let me know! If you get stuck on anything, just holler... (i'm usually on EFNet in PHP as codeb

RE: [PHP] [Newbie] - @

2001-01-27 Thread Jonathan Sharp
It doesn't print out any errors or warnings generated by the function. -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 EPage: [EMAIL PROTECTED] -Original Message- From: Steve

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp
!) Cheers, -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 EPage: [EMAIL PROTECTED] -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27, 20

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp
Brian! You're not helping here, i'm in the middle of a conversion! I'm trying to help this guy find his destiny! Com'on! rswfire: You want to get used to the command line, trust me! -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp
Yeah, well all have our preferences...and the NT command line is NOTHING like a good *nix one, so I guess I'll agree that the GUI is approvable by me. =) I would install it, I think that would take one less step out of getting to developing when you boot your box! -Jonathan -Original

RE: [PHP] Apache - PHP 4 (CGI)

2001-01-27 Thread Jonathan Sharp
Da...this one has stumped me...in *nix I'd just say compile it into Apache, but we can't do that now can we...bummer, looks like a design flaw of NT... 8-) -Jonathan P.S. Now I must say, I am running 2K on this box here, and am using outlook (go ahead and bash me) but that's all I use it for

RE: [PHP] Invoke PHP script from onLoad handler?

2001-01-27 Thread Jonathan Sharp
'; DATAARY[3] = 'Some data'; window.parent.document.MAINDATAARY = DATAARY; /script It was something to that extent, it works quite nicely, and it definetly pushes the limits of the technology used. -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http

RE: [PHP] Problem with a regex!

2001-01-27 Thread Jonathan Sharp
what's the value of var? It appears that it doesn't have a value set. -Jonathan -Original Message- From: Zack Ham [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27, 2001 5:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with a regex! I'm trying to create a small template parser

RE: [PHP] JavaScript/PHP Function - Apache/IIS5 - Client Properties

2001-01-27 Thread Jonathan Sharp
t has all that java script and say something line "Customizing for YOU!" and then have that page POST to itself and then have the window close it self (and you've set a cookie with the session id of course) so then each page that he visits thereafter has the session id set. And you can customize for h

RE: [PHP] E Bay is going up again..

2001-01-27 Thread Jonathan Sharp
Do I have to repeat myself about this topic? Sheesh! -Codeboy -Original Message- From: tabathia [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27, 2001 11:02 PM To: [EMAIL PROTECTED] Subject: [PHP] E Bay is going up again.. Selling on eBay is getting a little more expensive...the

  1   2   >