Re: [PHP] An "escape special characters" problem

2003-02-15 Thread Jason Wong
gle-quotes and your value itself contains single-quotes you have a problem -- look at your HTML source. > How can arrange my code to pass the entire strings to $HTTP_POST_VARS > and not just the truncated versions? apply htmlspecialchars() to the 1st $algen. -- Jason Wong -> Gremlins

Re: [PHP] Help with POSTing variable array names from a PHP script please.

2003-02-15 Thread Jason Wong
On Saturday 15 February 2003 18:38, rentAweek support wrote: > Jason > > Thanks for your help . > > I've implemented you advice. The problem persists in that I'm trying > create the following situation: > When the posted action php script runs I want the retrieved

Re: [PHP] search results from another site

2003-02-15 Thread Jason Wong
he mechanics you could search the archives where similar questions have been asked (and answered). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intrane

Re: [PHP] Variables from the Form wouldn't transfer to my process page

2003-02-15 Thread Jason Wong
$catname = $row["cat_text"]; > echo("$catname\n"); > } > ?> > > html code > > > > > > > code on the Form process page > > Catagory Have you looked at the HTML source to see whether it looks OK? -- Jason Wong -> Gremlin

Re: [PHP] Variables from the Form wouldn't transfer to my process page

2003-02-15 Thread Jason Wong
you may need to run it through htmlspecialchars(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives befor

Re: [PHP] copy *.* troubles

2003-02-16 Thread Jason Wong
y files. Are you using full paths? Does the directory 'maillist' reside in the root directory? If not, try using full paths. > It echos files copied at the end but it > lies. I doubt whether PHP is clever enough to lie. It's only doing what you told it to do. -- Jason

Re: [PHP] List problem

2003-02-16 Thread Jason Wong
> or any other list. Yes, just ignore it. It'll sort itself out over time. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

Re: [PHP] How do I set UID and GID to files.

2003-02-16 Thread Jason Sheets
Use the chown function, chown is documented at http://www.php.net/manual/en/function.chown.php Jason On Sat, 2003-02-15 at 21:00, David Duong wrote: > See topic. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.ne

Re: [PHP] Converting a large number of passwords to MD5 at once.

2003-02-16 Thread Jason Wong
is stored md5() password put password back to wherever it is stored } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] RSA implementation

2003-02-17 Thread Jason Sheets
that you want to encrypt on the machine but not decrypt you don't need public key encryption and hashing with either md5 or sha1 will work fine. Jason On Mon, 2003-02-17 at 01:54, José León Serna wrote: > El mié, 12-02-2003 a las 16:27, Chris Hewitt escribió: > > Or it could

Re: [PHP] session cookie that never expires

2003-02-17 Thread Jason Sheets
f you are putting information into sessions that needs to be persistent between sessions you should either store it in files or in a database and then load it when you need it. Jason On Mon, 2003-02-17 at 07:40, Altug Sahin wrote: > Hi there, > > I have setup a site with session managemen

Re: [PHP] Counter has gremlins

2003-02-17 Thread Jason Sheets
you may have more than one user operating on one file at the same time can get tricky so like I said consider a database. Jason Mon, 2003-02-17 at 17:45, Brian V Bonini wrote: > I have this basic counter: > > $counterFile = "./counter.txt"; > function displ

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Jason Sheets
the unique id from the list of approved id's, this prevents someone from replaying the URL and resetting the password again. Jason On Mon, 2003-02-17 at 17:48, Justin French wrote: > on 18/02/03 3:59 AM, Vernon ([EMAIL PROTECTED]) wrote: > > > I'm thinking that the MD5 fun

Re: [PHP] session cookie that never expires

2003-02-17 Thread Jason Sheets
elp reduce this, also prompt for the password for any critical events like changing their profile. If you pass this over SSL you make it more secure because the traffic is encrypted. Jason On Mon, 2003-02-17 at 17:55, Justin French wrote: > on 18/02/03 1:40 AM, Altug Sahin ([EMAIL PROTECTED]) wrot

Re: [PHP] image creation error

2003-02-17 Thread Jason Wong
t; GD Support enabled > GD Version bundled (2.0 compatible) > GIF Read Support enabled > JPG Support enabled > PNG Support enabled > WBMP Support enabled > > > Any idea why? You need GIF write support in the GD library, which isn't officially supported anymore.

Re: [PHP] file-upload.errors

2003-02-17 Thread Jason Wong
om/?l=php-general&m=102079018906224&w=2 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the lis

Re: [PHP] invalid argument supplied for foreach()

2003-02-17 Thread Jason Wong
r_dump($retVal) to see what you really have. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the li

Re: [PHP] Sessions and phplib.

2003-02-17 Thread Jason Sheets
lears the session variables and starts a blank session. I've done this in the past but found it provided only limited security advantages compared to other things like SSL. Jason On Mon, 2003-02-17 at 21:21, Vincent M. wrote: > Hello, > > I am using the phplib just for the sess

Re: [PHP] browser identification problem

2003-02-17 Thread Jason Wong
find any info on this. What would be the proper > way > to set this in php.ini, and in which section of php.ini? Anywhere in php.ini I suppose. Or it can be set at run-time using ini_set(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Int

Re: [PHP] MD5 Passwords (How it works?)

2003-02-17 Thread Jason Wong
eless or an oxymoron. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://m

Re: [PHP] mail function - using remote smtp in php.ini

2003-02-17 Thread Jason Wong
> ; For Win32 only. > SMTP = localhost > > ; For Win32 only. > sendmail_from = [EMAIL PROTECTED] > > ; For Unix only. You may supply arguments as well (default: "sendmail -t > -i"). > ;sendmail_path = Checkout www.phpclasses.org for a/some mailing class(es) t

Re: [PHP] script to check if server is up

2003-02-18 Thread Jason Sheets
g for that already exists. Jason On Tue, 2003-02-18 at 06:17, Petre Agenbag wrote: > Hi > I have two servers on two different networks. I would like to implement > some sort of a watchdog application between the two to inform me should > either of the machines go down or has a connection

Re: [PHP] Protecting files

2003-02-18 Thread Jason Sheets
being sent as some other content type and not being parsed by PHP. Jason On Tue, 2003-02-18 at 00:00, Nate wrote: > I wonder though, if they're on a the same server but different sites. Like a > shared host environment. Aw the things the bewilder the mind. > > Nate > >

Re: [PHP] internal site search

2003-02-18 Thread Jason Sheets
I've found Mnogosearch to be very powerful, fast, and relatively easy to setup, of course I was not in a shared hosting environment. Jason On Tue, 2003-02-18 at 07:19, David Otton wrote: > On Tue, 18 Feb 2003 13:35:14 +, you wrote: > > > i wanna make an internal sit

Re: [PHP] security issues on shared servers

2003-02-18 Thread Jason Sheets
If your hosting provider has enabled safe mode then others can not include scripts that have a different uid than the owner of the current script, that prevents them from including your code. As far as the files go you could checksum them or if you are honestly concerned about them being changed s

Re: [PHP] running code on my machine wile serving other domain?

2003-02-18 Thread Jason Sheets
it with Zend Encoder or another encoder or preferably get an attorney and get a good license worked out that legally binds them. Jason On Tue, 2003-02-18 at 13:21, merlin wrote: > Hi there, > > I am wondering if I could anyhow run php code on my machine and pull the > html code to an

Re: [PHP] file not opening in internet explorer

2003-02-19 Thread Jason Wong
68.0.1/bdoi_change/sundar.html > in my internet explorer address bar, it says the page cannot > be displayed. > the file permissions are "rw-r-r" Stupid question -- are you running a webserver? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software S

Re: [PHP] Root Commands

2003-02-19 Thread Jason Sheets
Most ways require a program a with root access to execute (setuid root) this is very insecure. I would look at enabling your email program to get the account information from a database like mysql or postgres, that way you need just insert a record into the database. Jason On Wed, 2003-02-19 at

Re: [PHP] array values format

2003-02-19 Thread Jason Wong
uot;,"; > } > preg_replace("/,$/","",$pictures); > echo $pictures; > > is there something wrong with pre_replace? Just use: $rest = substr("abcdef", 0, -1); // returns "abcde" to chop off the last character (comma). -- Jason Wong -&g

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Jason Wong
$string = stripslashes($string); > >Rec> echo " > '$string'>"; > > > > > >Pass the string through htmlentities(); before you echo it. > > [snip] > > htmlentities won't wor

Re: [PHP] Root Commands

2003-02-20 Thread Jason Sheets
I would highly recommend against doing this, this would work but it would open you up to allowing your webserver user/php to add any user to your system. This is beyond a bad idea. Jason. On Thu, 2003-02-20 at 06:46, Adam Voigt wrote: > Check out "sudo", with man pages or what not,

Re: [PHP] Rounding

2003-02-20 Thread Jason Wong
I'll leave you to work out how to round to nearest 10. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Jason Sheets
certificates or a cookie with the secure bit on so it will only be sent over an SSL connection. If you were concerned about the overhead of SSL you could make only your login page go over SSL and the rest of your site go over normal HTTP. Jason On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote: > I

Re: [PHP] button not seen

2003-02-21 Thread Jason Wong
login name is : $login"); > fwrite($fp,""); > fwrite($fp,""); > fwrite($fp, ""); > fclose($fp); > > now when i run the php script, i am able to see "i solved > problem" > on my screen according to the code. > but i CANNOT SEE T

Re: [PHP] button not opening

2003-02-21 Thread Jason Wong
On Friday 21 February 2003 16:21, DIKSHA NEEL wrote: > why isn't anybody replying my last mail subject "button not > opening" It's quite rude to be asking questions like this. People reply if and when they want to. If you want prompt support you should probably be p

Re: [PHP] php_mcrypt.dll

2003-02-21 Thread Jason Sheets
The DLL is being provided already, there is no need to compile your own for windows. Windows users interested in using mcrypt can download the required dll files at http://ftp.proventum.net/pub/php/win32/misc/mcrypt/ This is noted in the manual at http://www.php.net/mcrypt Jason On Fri, 2003-02

Re: [PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Jason Sheets
PHP is starting output buffering automatically for you and then you are starting it in your script as well, that is why you are receiving the message ob_gzhandler can not be used twice. Use ob_get_level to check if output buffering is not already started. You may want additional logic that chec

Re: [PHP] update query not working

2003-02-23 Thread Jason Wong
;"; > print ""; > if ($_POST['Update']) [snip] print_r($_POST) to see what it contains. It probably contains an entry named 'Submit' as that is what you have named your submit button. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] table border colors in html/xml

2003-02-23 Thread Jason Wong
> > would it be something like: > or is it something different... > Check out the HTML specs on www.w3.org -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] include

2003-02-23 Thread Jason Wong
27;); > > if the URL is http://foo.ccl.flsh.usherb.ca/ but not if the URL is > http://foo.compcanlit.ca/ > > What variable can I muster up to do this? print_r($_SERVER) to see what you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] include

2003-02-24 Thread Jason Wong
On Monday 24 February 2003 15:09, John Taylor-Johnston wrote: > $_SERVER is outdated now isn't it? Read the docs please. This is one of the new 'super globals' and deprecates $HTTP_SERVER_VARS (or whatever it was called). -- Jason Wong -> Gremlins Associates -> www.

Re: [PHP] Renaming an uploaded file

2003-02-24 Thread Jason Wong
load is done. > Either that or copy the template from the server and save it as > something else. How are you processing the uploaded file? Usually (as per example in manual), you would use the move_uploaded_file() command. That allows you to specify a destination filename. -- Jaso

Re: [PHP] counting array elements

2003-02-24 Thread Jason Wong
> if I use array_count_values it gives "dog => 5" > I would like to get 'dog' and '5' into a $variable. $arr = array('cat', 'dog', 'cat', 'dog', 'zebra', 'cat', 'dog', 'dog', 'dog&#x

Re: [PHP] Creating my own super global variables

2003-02-24 Thread Jason Wong
: $GLOBALS['my_very_own_variable'] For consistency you might want to always refer to it as $GLOBALS['my_very_own_variable'], so: $GLOBALS['my_very_own_variable'] = 'whatnot'; -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] PHP_SELF syntax

2003-02-24 Thread Jason Lange
read advocates doing this, and I've never had a problem with my code when I've written it this way. Jason Ernest E Vogelsinger wrote: At 00:55 24.02.2003, Peter Gumbrell said: [snip] Could someone tell me why this code prompts a parse error

Re: [PHP] Re: Live chat screen

2003-02-24 Thread Jason Sheets
are already excellent protocols (like IRC) established. Jason On Mon, 2003-02-24 at 08:00, Arjan Gijsberts wrote: > Immediately won't be possible as far as I know. For that, you have to create > a server socket, which is not (easily) able in php-scripts. But you can use > javascript

[PHP] getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Jason DiCioccio
g. I am running PHP 4.3.1 w/ Apache 1.3.27 on FreeBSD 4.7. Is there something I'm missing? Is this a bug as I think it is? Thanks in advance! -JD- -- Jason DiCioccio - [EMAIL PROTECTED] - Useless .sig Open Domain Service - [EMAIL PROTECTED]- http://www.ods.org/ Ruby

Re: [PHP] to Bryan Lipscy Re: [PHP] how___??

2003-02-25 Thread Jason Wong
On Wednesday 26 February 2003 07:52, Luis A wrote: > MEN I DONT HAVE INTERNET ACCESS > > thanks anyway > > if some one else can help m e please I can email the manual to you if that would help? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softwar

Re: [PHP] Running system commands

2003-02-25 Thread Jason Wong
it. > > i.e. system ("mkdir $path"); > > Example above uses a value from a form passed to the script and is > assigned from $_POST['path']; > > When I run it no directory is created. Ideas?? Error message? -- Jason Wong -> Gremlins Associates -> www.

[PHP] Re: getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Jason DiCioccio
Oops.. Big typo.. It should read that I get *nothing* echo'd back, except newlines :). Thanks again, -JD- --On Tuesday, February 25, 2003 23:27 -0500 Jason DiCioccio <[EMAIL PROTECTED]> wrote: Can anyone reproduce this problem? I am involved in running a large forum, and eve

Re: [PHP] String searching peformance

2003-02-26 Thread Jason Wong
words hit most > frequently and move them to the top of the list. No idea whether this would be faster (it's certainly easier to code): explode() text into an array place your banned words into an array array_intersect() to find words common in both Do your own benchmarking! --

Re: [PHP] getimagesize() issues starting with PHP 4.3..

2003-02-26 Thread Jason DiCioccio
nted as being an optional argument.. It works for me that way too, though. Cheers, -JD- -- Jason DiCioccio - [EMAIL PROTECTED] - Useless .sig Open Domain Service - [EMAIL PROTECTED]- http://www.ods.org/ Ruby- [EMAIL PROTECTED] - http://www.ruby-lang.org/ PGP Finge

[PHP] conditional question.

2003-02-26 Thread Jason Jacobs
Now, if they're both arrays, and the conditional is checking to see if they're both arrays, wouldn't it make sense that it should evaluate to "true"? Thanks for your help. - Jason Jacobs Factory7, LLC Support a Constitutional Amendment to protect the Pledge of Allegiance and National Motto. Go to www.wepledge.com

Re: [PHP] Splitting up big strings

2003-02-26 Thread Jason Wong
A' > X = "0x0D" > X = '0x0A' > X = "\r" Try "\n". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] to Bryan Lipscy Re: [PHP] mysql trouble

2003-02-26 Thread Jason Wong
sh (I see you're using a Cuba domain) b) Single HTML or Multiple HTML or Windows HTML (CHM format) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] niklasRe: [PHP] mysql trouble

2003-02-26 Thread Jason Wong
On Thursday 27 February 2003 00:08, 1LT John W. Holmes wrote: > Dude... honestly, lay off the coffee and learn to type. Shouldn't that be cigars? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * I

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread Jason Wong
your membership-confirmation page using something like: http://www.example.com/membership.php?token=something Then delete token from your db and redirect to welcome page. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] to Jason Wong Re: [PHP] mysql trouble

2003-02-26 Thread Jason Wong
On Thursday 27 February 2003 01:32, Luis A wrote: > OK IF no trouble for ud to send it to me the manual ?? > > in spanish > > b) Single HTML or Multiple HTML or Windows HTML (CHM format) Which format? Also please do not change the subject (ie putting people's name into the

Re: [PHP] resizing .jpg file in php

2003-02-26 Thread Jason Sheets
You can use the GD image functions or ImageMagick to resize images. More about GD can be found in the PHP manual at http://www.php.net/manual. Jason On Wed, 2003-02-26 at 07:36, Anthony Ritter wrote: > I'd like to use (with permission) .jpg files from a webcam from another URL. > >

Re: [PHP] problem in writing into an html text file

2003-02-26 Thread Jason Sheets
Hello Mike, You will need to better describe your problem and preferably show some source code. What characters are being added to it? You could use str_replace or the regular expression replacement functions but you should not get added characters in general. Jason On Wed, 2003-02-26 at 19:07

Re: [PHP] non transmitted cookie

2003-02-26 Thread Jason Sheets
the session ID every n minutes which would make brute forcing the session id even harder. Jason On Wed, 2003-02-26 at 11:34, Dennis Gearon wrote: > Is there anyway for a page to save information on a user's computer which is > accessible via java or > javascript, but doesn't get

Re: [PHP] mcrypt as shared module

2003-02-26 Thread Jason Sheets
you need write access to the PHP extension directory anyway. Jason On Wed, 2003-02-26 at 14:02, Vladimir Fedorkov wrote: > How can I attach mcrypt to PHP (FreeBSD) without recompile whole PHP ? > How can I compile mcrypt as PHP shared module ? > > > > -- > PHP Gener

Re: [PHP] restating plea for help with sort

2003-02-27 Thread Jason Lange
7;) add to na_array } else { $na_array [$key] = $value; } } // Re-combine arrays placing all "other" values at the end $final_array = array_merge($numeric_array, $na_array); <-- End Code --> Hope that helps, Jason Kevin Stone wrote: To append my own ans

Re: [PHP] non transmitted cookie

2003-02-27 Thread Jason Sheets
user's client will need to support when you can use SSL which is widely supported already. Jason On Wed, 2003-02-26 at 23:44, Dennis Gearon wrote: > Unless of course, you are listening into the network connection :-) > > Jason Sheets wrote: > > > > Not that I am aware

Re: [PHP] Post method

2003-02-28 Thread Jason Sheets
, hotscripts.com and you might try phpclasses.org as well. Jason On Fri, 2003-02-28 at 14:09, Alex Shi wrote: > Hi, > > Any one know in a php script, if it is possible to simulate a post method? > I mean I want to header() to an url but don't like to embed the parameters > into that

Re: [PHP] Is it an apache or a php-problem?

2003-02-28 Thread Jason Sheets
If you are on Unix/Linux when you compile PHP pass the --with-mysql command on your configure line (i.e. ./configure --with-mysql=/usr/local). You might also take a look at the Installation section at http://www.php.net/manual. Jason On Fri, 2003-02-28 at 13:09, Henning wrote: > Hello >

Re: [PHP] SORT_NUMERIC

2003-02-28 Thread Jason Wong
iven by the initial portion of the string. If the string starts with valid numeric data, this will be the value used.". As a comma is not valid numeric data, it and everything after, will be ignored. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sys

Re: [PHP] IMAP error while compiling PHP-4.3.0

2003-02-28 Thread Jason Wong
earched the imap rpms I have & even searched the > whole system, but it couldn't find 'libc-client.a' anywhere. Are you using RPMs? On a RH system that file is provided by the IMAP-devel package. I suppose it's similar for MDK. In general you need to install the devel pac

[PHP] Using PHP to convert to JPEG

2003-03-01 Thread Jason Paschal
I'm building a site that allows ppl to upload images. PHP was compiled with the GD lib so I'm able to verify all sorts of info about the image for validation. However, I was wondering if there is a way to convert a non-jpeg image to jpeg just by using the GD functions as opposed to using unix

Re: [PHP] More Apache than PHP

2003-03-01 Thread Jason Sheets
t not found, they may be mistaking it with a server too busy error message. Jason On Sat, 2003-03-01 at 15:50, Timothy Hitchens (HiTCHO) wrote: > Greetings All... > > Usually I am helping others on the list but this time I am asking for > help!! > > I was wondering if someone could

Re: [PHP] PHP scripts and the GPL/other licenses

2003-03-01 Thread Jason Sheets
t are simply an open source or free software app with spyware renamed, not a whole lot you can do without taking legal action. Jason On Sat, 2003-03-01 at 21:26, Jeff Lewis wrote: > I am wondering if anyone out there has some really good references in > regards to scripts distributed as open sourc

[PHP] Just to ask knowledgable ppl

2003-03-01 Thread Jason Paschal
Not directly PHP related, but I'm building a site in PHP at the moment, so I've been doing a bit of research... I've been on the net for years, coding and surfing and coding. And not always in that order. ;) But only recently have I heard about web beacons, or single-pixel gifs. Seems every s

Re: [PHP] JP Graph

2003-02-28 Thread Jason Sheets
Sounds like a web server configuration problem. If you are using apache make sure your httpd.conf is configured to bind to your external IP address (the default). Jason On Thu, 2003-02-27 at 21:17, K wrote: > Hi all, > I'm using JPGraph on a localhost for a website opened via a ho

Re: [PHP] Arrays and MySQL

2003-03-02 Thread Jason Wong
ough $totals[19][4], $totals[0][5] through > $totals[19][5], etc. for each stat. I thought of putting them in a for loop > and just adding them, but this seemed kind of messy and the long way around You can use array_sum(). -- Jason Wong -> Gremlins Associates -> www.gremlins.bi

Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
x27;t touch your code. I'd suggest using CVS as well or at least making backups so you don't have to rewrite stuff when someone messes it up. Other than that you could make it a policy where only you change your scripts, they can submit patches to you and you can apply them but they do

Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
Smarty is an excellent template engine, it is available at http://smarty.php.net Jason On Sun, 2003-03-02 at 17:13, Sunfire wrote: > where could i get a templet editor from that is good and fairly easy to use? > > - Original Message - > From: "Jason Sheets" &l

[PHP] News Content

2003-03-03 Thread Jason Paschal
Anyone know of any pre-built modules or whatnot that provide some news content and/or links and captions via PHP/MySQL that can be integrated with minimal disruption to a site? (A prerequisite being that it acts legally in terms of gathering the info. ;) Thank you, Jason

Re: AW: [PHP] How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Jason Wong
{ echo "Error blah blah blah ..."; } ... your code } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] Re: mail() function

2003-03-04 Thread Jason Wong
ted as follows : > > [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a > comma or a semicolon between them? Denis, Patrick, both of you take a look at the example in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softw

Re: [PHP] Fatal error: Call to undefined function: mysql_connect()

2003-03-04 Thread Jason Wong
ot sure. Here is the script: Search for the error in the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Sear

Re: [PHP] Can't get upload to work and I wonder...

2003-03-04 Thread Jason Wong
t was "on." What do I tell my system > administrator to do to get this feature enabled? Thanks for any help. php.ini > file_uploads = On -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desi

Re: [PHP] File Access Rights

2003-03-05 Thread Jason Wong
If you're using apache you can use an directive to deny access to said file from being accessible by browsers. Deny from all -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intra

Re: [PHP] remove a line from a text list

2003-03-05 Thread Jason Wong
03 > [EMAIL PROTECTED]|Mr.|Richard|Kurth|1046848049|03/04/2003 > > This is what it looks like after I remove a line > [EMAIL PROTECTED]|Mr.|Richard|Kurth|1046848049|03/04/2003 > > [EMAIL PROTECTED]|Mr.|Richard|Kurth|1046854222|03/05/2003 I tried your code and it works fine for me

Re: [PHP] RedHat 8.0 MySQL Problem

2003-03-05 Thread Jason Wong
rolly don't want to be running apache 2.0 just yet -- especially if > youre doing SSL stuff. You can tell up2date what packages NOT to update and it will leave them alone. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] Verifying encrypted password from MySQL database with PHP

2003-03-05 Thread Jason Wong
quot; is a veriable which store password from a HTML > form. > > > > $query="SELECT UserName, Attribute, Value FROM radcheck WHERE > UserName='$flogin Try: SELECT UserName, Attribute, Value FROM radcheck WHERE UserName='$flogin' AND PasswordField =

Re: [PHP] Installing PHP and MySQL on Linux machine

2003-03-05 Thread Jason Wong
ce. [snip] > I get the following error: > > Fatal error: Call to undefined function: mysql_connect() in > /var/www/html/bt/index.php on line 13 Search the archives on the above error message for the various ways in which this problem can be resolved. -- Jason Wong -> Gremlins Asso

Re: [PHP] fread or not?

2003-03-05 Thread Jason Wong
problem, try searching the archives for "upload files". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

Re: [PHP] I'm lost: text file upload

2003-03-05 Thread Jason Wong
everybody did that then the amount of noise in this list would drop dramatically. If you have a problem then the chances are that others have already encountered and resolved the same problem and searching the archives is the best way to find out. Also the user comments in the online manual are

Re: [PHP] I'm lost: text file upload

2003-03-05 Thread Jason Wong
f we made a noise. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://mar

Re: [PHP] Uploading file problem

2003-03-06 Thread Jason Wong
unction allows you to specify a destination filename so there is no need for the extra step of renaming the file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] read -n lines from end of file - Empty array ?

2003-03-06 Thread Jason Wong
$Endfunf, $Endsech, $Endsieben, $Endacht, $Endne, $dreizwei, $dreidrei, $dreivier, $dreifunf, $dreisechs ) = split ("\|", $line); print " $i $Endzwei $End3 "; } ** Untested, use with caution ** -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

Re: [PHP] Help me

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 03:42, Cavallaro, Vito wrote: > Do You Know java mail list? I don't, but I bet google does. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Ap

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Jason Wong
ot;, $buffer); That's because you haven't defined $buffer. It looks as if it should be set to $file[$i]. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

[PHP] RegEx for a URL?

2003-03-06 Thread Jason Murray
st. If anyone's interested, the board system itself is up and running on my dev/test server at http://boards.shadow.net.au - you can see a live version at http://www.auswrestling.com/forum/ and also at http://www.game-spin.com/forums/. I'll be releasing it soon, and if someone can give me a working UR

Re: [PHP] random -n lines array problem

2003-03-06 Thread Jason Wong
d to explode() $line. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://ma

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
> You need to explode() $line. Won't that still cause problems for him, since explode() will ignore concurrent separators ()? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
> Where do you get that from? Probably from not trying it before I open my mouth. I must have dreamed it somewhere, sorry :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason Wong
h? Use a backslash, or use single-quotes instead of double-quotes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

RE: [PHP] MYSQL :(

2003-03-06 Thread Jason Murray
> How can I get this to use the next auto_increment of > id (Next Autoindex = 52)? What if you just remove id from your field list? insert into ccl.ccl_maintest (id,RNum,YR,AU,ST ^^^ Here :) (Just an idea...) J -- PHP General Mailing

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason Wong
; I'll try the single quotation mark method first, though. You say in the follow-up post that single-quotes doesn't work -- could you post a self contained example to show that it doesn't work. -- Jason Wong -> Gremlins Associates -> www.g

<    2   3   4   5   6   7   8   9   10   11   >