[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 stri

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: -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 > at > > the > > bottom of

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: -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 > at > > the > > bottom of

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, ple

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: 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 with an im

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

[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] 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

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 Se

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 regnerate

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
t; > - Original Message - > 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 > > > &

Re: [PHP] how to user

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

[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] ? fa

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

2002-10-16 Thread Jonathan Sharp
session_destroy(); > Header("Location: next_script.php"); > > with cookie session : > >$cook_param= session_get_cookie_params(); >$life_time= $cook_param['lifetime']; >$path= $cook_param['path']; >setcookie(session_name(),"

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: marcel wrote: > hi there > I am kind of a

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 arch

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

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) { $ret

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 Li

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 //loc

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 wh

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

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 m

Re: [PHP] ODBC connectivity

2002-10-29 Thread Jonathan Sharp
First test that you can connect to the db server outside of php through an odbc connection...then come back if that doesn't work. -js Bill Hudspeth wrote: > I have developed a PHP application that accesses a Microsoft Access database > through ODBC. The application works well using PHP version

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

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, 3

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,

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 m

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

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: On your popup page: -js Monty wrote: > On a site that uses a popup window to display images, I want to prevent > people from hotli

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 (dif

Re: [PHP] Fwd: Quarter question..

2002-11-02 Thread Jonathan Sharp
try this: -js "; printf('Delete', $PHP_SELF, $myrow['id'] ); $q = ceil( 4/(int)date('n', strtotime($mydata['date']) )); printf('%s%s%s', 'update-inv.php', $myrow['id'], $myrow['name'], $myrow['details'], $q); } ?> Jim Hatridge wrote: > HI all, > > In the code below I'm trying to

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 > t

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 la

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 p

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

2002-11-10 Thread Jonathan Sharp
Here's the code... -js $string = << value 1

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] 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: > > ereg('?

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 path,

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
]*)\.html$~', $source, $dest); > ereg('/([^/]*)\.html$',$source,$dest); > > ---John Holmes... > > >>-Original Message- >>From: Jonathan Sharp [mailto:js-lists@;sharpmedia.net] >>Sent: Wednesday, November 13, 2002 10:34 PM >>To: Charles W

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

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 origin

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

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 fiel

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é Fourn

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

[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

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 s

Re: [PHP] templates

2002-11-19 Thread Jonathan Sharp
I'm assuming you're trying to have a select list. Try this: File XML1 File foo Just make sure you test the value you get for file, so that someone doesn't pass you /etc/passwd (just an example). -js Adam wrote: > I am developing a site, using XML and PHP for formatting. I want to have one H

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 $overal

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

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 ide

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 > w

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] Session File not being deleted

2001-01-11 Thread Jonathan Sharp
not sure, but if all else fails, just cron job it... -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 -Original Message- From: Samantha Savvakis [mailto:[EMAIL PROTECTED]] Sent

[PHP] Installing PHP on Windows Command Line?

2001-01-26 Thread Jonathan Sharp
I want to setup php so that when I click a PHP script local to my hard drive: C:\test.php it will run it through the PHP.exe parser but display the results in my web browser...Anyone done this? Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

[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 The html for the form. The html for the form. forms.php showScreen1(); break; case 'saveScreen1':

RE: [PHP]

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 State '.$ST[$i]."\n"; }//For ?> First it creates an array $ST that contains a list of all the states (includes PR and DC) Next it loops through that array and if $state has the same value a

[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] 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 (http://www.php.ne

[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 spe

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 gi

RE: [PHP] connection id

2001-03-24 Thread Jonathan Sharp
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 > >

RE: [PHP] Which is better??

2001-04-06 Thread Jonathan Sharp
> My forms page is named "submit.phtml" > and if you use the then you don't even need to wory about the file name, as it will always submit to itself... -js > -Original Message- > From: Curtis [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 9:27 AM > To: php > Subject: [PH

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

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, A

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 probab

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] ins

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 te

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp
ll be on linux in no time...I have three dev servers now & two 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 an

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:

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread Jonathan Sharp
he MS empire won't always be as vast as it is, TUX is alive and moving!) 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-

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 Gr

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 Messag

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 (ex

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

2001-01-27 Thread Jonathan Sharp
Y[2] = 'Some data'; DATAARY[3] = 'Some data'; window.parent.document.MAINDATAARY = DATAARY; 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 -

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
reafter has the session id set. And you can customize for him/her... 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- Fr

RE: [PHP] Leads>?

2001-01-27 Thread Jonathan Sharp
All I have to say about his one is: "Your mother was a hamster and your father smelled of elderberries. I fart in your general direction and I wave my private parts at your ante you silly English kA nigh It!" No spam please. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:

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 m

RE: [PHP] Apache Server

2001-01-27 Thread Jonathan Sharp
how long does it run for? -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27, 2001 8:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Apache Server How come my Apache Server goes down after a short time and forces me to restart it? Shouldn't it just s

RE: [PHP] Apache/PHP Configuration Problem on NT5

2001-01-29 Thread Jonathan Sharp
Hey, have you tried just a static .html file, no php anywhere? -Jonathan -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 12:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Apache/PHP Configuration Problem on NT5 I have set up an ErrorDocument 4

[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 Deve

[PHP] ' VS "

2001-01-29 Thread Jonathan Sharp
ghts on coding 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 ad

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}["

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

2001-01-31 Thread Jonathan Sharp
aamn, that's a shitload more than I > make here, which is more like US$20/hr > > Gfunk - http://www.gfunk007.com/ > > I sense much beer in you. Beer leads to intoxication, intoxication to > hangovers, and hangovers to... suffering. > > >

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

2001-02-01 Thread Jonathan Sharp
ing to find someone who can really code clean, 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.

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

2001-02-01 Thread Jonathan Sharp
o go the states US$80 > > an hour for php dmn, that's a shitload more than I > > make here, which is more like US$20/hr > > > > Gfunk - http://www.gfunk007.com/ > > > > I sense much beer in you. Beer leads to intoxication, intoxi

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, F

[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 commands,

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: [

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] To The Hacker: CodeBoy

2001-02-08 Thread Jonathan Sharp
AIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] To The Hacker: CodeBoy > > > Whatever, James. > > The hackers name is Jonathan Sharp. He is a > regular member of this mailing list. I do > believe that people here would like to know they > h

  1   2   >