Re: [PHP] include require directive

2002-08-13 Thread James Green
above your first ?php in any of your files. James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] N6: PHP files can't show source

2002-08-13 Thread James Green
files? You may be seeing a problem that affected Mozilla prior to 1.0 release. When it got a page as a result of a POST it wouldn't cache the result to disk, which is where the View Source got it's data from. Something like this may be affecting you. Try it with Netscape 7 or Mozilla 1.0. James

Re: [PHP] Re: controls list menu

2002-08-13 Thread James Green
for this reason. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache seg fault (sig 11)

2002-08-14 Thread Pete James
Wondering if any of the gurus out there have any insight... I'm running a set of php scripts using nested output buffering + sessions and I'm getting sporadic seg faults. If I turn off output buffering it seems to work fine, which would be great if I didn't need it. I'd post code, but there's

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread James Green
$loop])) then you know if it's set or not. I think that just about covers it. Apologies if I have misread/misinterpreted what you have asked. James Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-16 Thread james daily
are not getting assigned the data being passed. QUESTION: has anybody else run across this and what was the resolution? - James Daily Phone : 816 943 9891 Email : [EMAIL PROTECTED] (or hit reply button) Web : http://tellmama.com/ Philosophy

[PHP] MyPHPNuke1.8.8-1 *** Nuked ***

2002-09-24 Thread James Redfern
. It seems I'm damned if I do and damned if I don't! JR. -- James Redfern [The Redfern Organization] PGP Auto-responder mailto:[EMAIL PROTECTED]?subject=0xCB81E8E8 Fingerprint: 6809 FE89 4CEF E76F C6DF 04BF 46DC 58B9 CB81 E8E8 ...You always suppress momentary anger at something you deeply

[PHP] Relative Paths and file_exists() - Solaris

2002-09-26 Thread James Nikolich
Hello; I'm using PHP 4.2.3 on a Solaris 2.8 (Sparc) system. I've been having some difficulties getting PHP-Nuke 6.0 to work for me. I eventually narrowed the problem down to incorrect results from calls to file_exists(). It seems that file_exists() is having trouble finding an existing file

[PHP] class name in static functions

2001-09-25 Thread James Gregory
HI!!! Is it possible to get the name of the class from a static member function for which no object has been instantiated? THANKS! James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Re: parsing a string

2001-10-18 Thread James, Yz
Hey John, something like this might work: ? $string = This is a string with an embedded image [bird.gif,this is a bird]; $string = preg_replace(/\[(.*?\.)(gif|jpg),(.*?)\]/i, img src=\\\1\\2\ alt=\\\3\, $string); echo $string; ? James John A. Grant [EMAIL PROTECTED] wrote in message [EMAIL

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
can you paste the full text of the code as you have it? I don't see anywhere where you define the name of the file. James Cox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Politicalia admin and editor e: [EMAIL PROTECTED] :: w: http://www.politicalia.com

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
George, your best bet is to have a table in your database which looks up the name of the file, based on a more friendly name. James . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Politicalia admin and editor e: [EMAIL PROTECTED] :: w: http://www.politicalia.com

[PHP] Re: strip HTML

2001-10-20 Thread James, Yz
The easiest way would be to use strip_tags(), though you could craft your own regular expression. http://www.php.net/strip_tags James Gary [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello All, How would I strip all HTML before the info in

[PHP] Re: Using Logical OR operator in IF statement???

2001-10-21 Thread James, Yz
: ? if (preg_match(/^-|-$/s, $string)) { echo You cannot have a \-\ character at the beginning or end of your string.; } else { echo Whatever; } ? Just my thoughts... James Brad Melendy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Ok, th

[PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-22 Thread James Cave
and HTML dependent on the user agent, but you can incorporate the two - in the style sheet, form, .form { display: inline; } and in the HTML, form class=form method=post and IE will ignore the bits it doesn't do, as will Navigator. Hope that helps. Regards James -- PHP General

[PHP] Re: Max int value of char field? How to find...

2001-10-22 Thread James Cave
the character values will be higher or lower than the numbers. Regards James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] mktime() problem

2001-10-23 Thread james . fairbairn
are in daylight savings (GMT+1). Would this make a difference? (I have already tried echo mktime(0,0,0,1,1,1970,0); to force non-daylight-savings, but I still get 3600.) Am I doing something wrong, or have I found a bug? Thanks, James -- PHP General Mailing List (http://www.php.net

RE: [PHP] Re: mktime() problem

2001-10-23 Thread james . fairbairn
Hi James, Yes, you're right; I got -3600. But shouldn't the time returned reflect the timezone we would be in on that date, rather than the one we are in now? Thanks for your help. James -Original Message- From: liljim [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:53 To: [EMAIL

RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Thanks, I'll use gmmktime() from now on! James -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:54 To: Fairbairn,J,James,IVLH4 C; php-general Subject: Re: [PHP] mktime() problem I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime

RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Oh dear, I still get -3600 when I do echo gmmktime(0,0,0,1,1,1970); Why? James -Original Message- From: Fairbairn,J,James,IVLH4 C Sent: 23 October 2001 13:57 To: [EMAIL PROTECTED] Subject: RE: [PHP] mktime() problem Thanks, I'll use gmmktime() from now on! James -Original

[PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-23 Thread James Cave
if your form is inside a table .. hide the FORM tags In my experience, this just moves the closing whitespace to the end of the table (just like if you insert text incorrectly between a tr and a td). The previous post I've made using the display: inline; style is in fact W3C compliant. --

Re: [PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-23 Thread James Cave
I gave it a try NN4.7 and 6.1 both ignored the 'display: inline' css in my test There was actually an error in the HTML I posted, try this: table bgcolor=redtrformtd1. form tag outside of cell/td/form/tr/table table bgcolor=redtrformtd2. form tag outside of cell/td/form/tr/table table

Re: [PHP] MSSQL 7.0 and PHP

2001-10-24 Thread James Cave
that you have to use 'text' Sounds right to me. Regards James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Redirecting Using Header{} Function

2001-10-25 Thread james . fairbairn
However with Netscape 4.75 when I call any page that has the Header(Refresh) function I get a nasty pop up box which says The document contains no data. I then click ok and the page loads exactly as it should but no matter what I do I can't stop this pop up box from appearing, IE, Netscape 6

RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn
might be a syntax error in the .lib file you are including (missing ;, possibly)... let me know. -Original Message- From: Alberto [mailto:alberto arround [EMAIL PROTECTED]] Sent: 29 October 2001 10:14 To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Parse error: parse error, expecting

RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn
oops, missed that one! -Original Message- From: Alexander Weber [mailto:[EMAIL PROTECTED]] Sent: 29 October 2001 10:08 To: Alberto Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error Just use var $VAL_ID; Names of variables always start with a $ sign. Alberto wrote: Parse

[PHP] Streaming context

2001-10-29 Thread James Webb
I'm trying to find a way to make streaming context for an internet game web site, like continual updates from the game and game info for players, I was looking around but can't find a function to help me, if you can point me in the right direction please drop me a line - James

[PHP] Multiviews and GET requests no longer working?

2001-11-16 Thread James Green
in the php.ini or httpd.conf files appears to have changed. I'm at a loss. Please help! Thanks, James Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] quick friday query

2001-11-16 Thread James Green
On Fri, 2001-11-16 at 17:49, Caspar Kennerdale wrote: I am writing files to my server using $fp = fopen(myfile.txt, w); this all works. However in the php manual it says that by using the w switch that php will create the file if it doesn exist However this does not seem to work I

Re: [PHP] Multiviews and GET requests no longer working?

2001-11-17 Thread James Green
On Fri, 2001-11-16 at 17:49, James Green wrote: If I call foo?id=1, not only is the id variable not set, _SERVER[QUERY_STRING] isn't either. Cookies and session variables work fine, it's just variables passed via GET. If I turn off Multiviews, the variables come through fine, but it means

Re: [PHP] Multiviews and GET requests no longer working?

2001-11-17 Thread James Green
On Fri, 2001-11-16 at 17:49, James Green wrote: If I call foo?id=1, not only is the id variable not set, _SERVER[QUERY_STRING] isn't either. Cookies and session variables work fine, it's just variables passed via GET. If I turn off Multiviews, the variables come through fine, but it means

[PHP] configure problem: --with-mysql=/what exactly?

2001-11-19 Thread James Green
socket path. Many thanks, James Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] parent:: constructor

2001-11-22 Thread James Stewart
Hi, Can anyone point me to a good explanation of how the parent:: constructor works? I've tried searching the php site for it with no success. I've been given a set of code to work on, but am getting the error: Fatal error: Undefined class name 'parent' for one section of it. cheers. James

Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread James Stewart
space is necessary to separate the element name from its closure. All major browsers will recognise br but if you want to be XHTML compliant, br / should be used. James. -- James Stewart http://www.britlinks.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: limiting lines

2001-07-29 Thread James, Yz
Hiya Dan, If you're expecting new lines, you could do this: $length = explode(\n, $message); if (sizeof($length) 55) { // error } And also limit the number of characters, using strlen() James Dan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] Generating mysql statement from php return an error :-(

2001-07-30 Thread James Holloway
James Ben Bleything [EMAIL PROTECTED] wrote in message 000801c11895$0d43b7a0$0201a8c0@allegro">news:000801c11895$0d43b7a0$0201a8c0@allegro... I _believe_ (not totally sure) that mysql_query() can only handle one statement at a time, and if you need to execute multiple, you will need to use m

[PHP] Re: Types of table....

2001-07-31 Thread James, Yz
detailed info ;) James. Steve Wright [EMAIL PROTECTED] wrote in message 00a001c11a07$0d743f60$0615fea9@COM">news:00a001c11a07$0d743f60$0615fea9@COM... HEy, I am still a newbie, and have no idea how to use phpMyAdmin yet, and don't really know much about MySQL databases and setting up tab

Re: [PHP] another REGEX question

2001-08-02 Thread James, Yz
Hi Julian, personally, I'd take out both tags, using something like: $str = preg_replace(/\/?p.*?/i, , $str); Which gets rid of: p p align=whatever /p Or any case insensitive matches. That's probably just me though ;) James. Julian Simpson [EMAIL PROTECTED] wrote in message news

[PHP] Re: Installation error..

2001-08-04 Thread James Tan
hi Ryan, did u make clean on your php 2? i can't recall, u must delete a file config.*** (i can't recall the extension...) b4 u reconfigure... refer in the php install.txt hope it works :) regards, James Ryan Christensen wrote: Quick question.. I'm installing PHP 4.0.6 on a fresh

[PHP] Re: How to destroy a $variable

2001-08-04 Thread James Tan
of the file. Bounce some ideas of me. Thanks -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- PHP General

[PHP] Re: array + checkbox

2001-08-06 Thread James Holloway
Hi there Tijmen, Firstly, change the input name from this: voorraad to this: voorraad[] then do something like: ? echo Checked values are as follows:brbr; for ($i = 0; $i sizeof($voorraad); $i++) { if (!empty($voorraad[$i])) { echo $voorraad[$i]; } } ? James Tijmen

[PHP] fread (with fsockopen) returns nothing for CGI file

2001-08-06 Thread James Crowley
=9990 Does not (nothing is returned). (In the browser, they both display adverts). Do you know why? There is a demo at http://192.168.0.6/bin/ad-get2.php?url=#theurl# Replace #theurl# with the url that you want to open... Location: headers are handled automatically. Regards, - James Editor, VB

[PHP] Re: Text area ...

2001-08-06 Thread James, Yz
Hi Kok, use nl2br(); $string = nl2br($string); echo $string; See the manual for full details. James Coconut Ming [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi.. Did you feel it is strange alignment when you output the same thing again in PH

[PHP] Re: What's the difference between echo and print?

2001-08-06 Thread James, Yz
Hi Phil, Print returns a boolean true / false value as functions do, as well as any output, whereas echo doesn't. Have a look through the archives.. This is quite a popular question, and it wasn't long ago when it was last asked. James. Phil Latio [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: getting an auto increment value immediately after insert

2001-08-06 Thread James, Yz
Hi Matt, mysql_insert_id(); See the manual for more info. James Garman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello: I'm inserting some information into a MySQL database via a PHP script. A handful of various information is put into the

[PHP] ICMP Ping

2001-08-07 Thread James Crowley
Hi, I'm trying to write a port scanner similar to http://scan.sygatetech.com to expose security holes in a PC or server. However, I can't figure out how to perform an ICMP ping. Does anyone know how? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk

Re: [PHP] Upper or Lower Case

2001-08-07 Thread James Holloway
into good practice early. James Tarrant Costelloe [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok thanks, I found jons way the easiest: if ($name == neo || $name == Neo) -Original Message- From: Bjorn Van Simaeys [mailto:[EMAIL PROTECTED

[PHP] Database Stored Procedure Result

2001-08-07 Thread James Stevens
using ODBC? Thanks in advance James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Traceroute without traceroute command!

2001-08-07 Thread James Crowley
Hi, I would like to perform a traceroute with PHP. However, my ISP has disabled the traceroute command normally available in /usr/sbin/traceroute. Is there any other way? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ

[PHP] associative arrays in html forms and javascript

2001-08-08 Thread Daniel James
Hi everyone :) imagine this if you will.. html body onload=document.formname.inputfield.focus() form name=formname input type=text name=inputfield /form /body /html ugly form with a text input field that is focussed when the form loads, erm.. nice. now, I like to put all my

Re: [PHP] Alternate way of calling php scripts

2001-08-08 Thread Daniel James
I play with this lots, good fun.. html head titlePath: ?=$PATH_INFO?/title /head /html the title of the page will contain the path you typed.. Twigman... On 2001.08.08 23:13 Evan Nemerson wrote: I seem to recall that you can call a PHP script with a slash after it then variables.

Re: [PHP] regexps

2001-08-08 Thread Daniel James
if (preg_match(/\d/, $data) { print 'The $data contained a number'; } On 2001.08.09 07:05 scott [gts] wrote: here are two regexps that might do what you want \w matches alphanum (1-9a-zA-z) IMO, the best way to check for non-alphanum chars is to check for \W (upper case is

Re: [PHP] htaccess php

2001-08-08 Thread Daniel James
You are looking for HTTP Authentication... http://www.php.net/manual/en/features.http-auth.php Twigman... On 2001.08.09 09:49 Chris Kay wrote: Hi My question is that i am about to start a database and i have been asked to make the login/password like htaccess, now they also want to be

Re: [PHP] Resize Picture

2001-08-08 Thread Daniel James
try this... ? if (!isset($width)) { $width=100; $height=100; } ? html body img src=/path/to/image.ext width=?=$width? height=?=$height? formp Image width: input type=text name=width size=4br \ Image height: input type=text name=height size=4br \ input

Re: [PHP] caching and IE 5

2001-08-09 Thread Daniel James
On Thu, 9 Aug 2001, Karl Phillipson wrote: Is anyone else having fun and games with IE 5.0 and caching? I have the no-cache code (below) before anything else in my index file. Following that an include file is pulled in that has a form with a text input field that echos the date and time.

[PHP] The secrecy of PHP code

2001-08-13 Thread James Shaker
Greetings, How safe is the code written in PHP? For instance, if I have an equation or some algorithm with some constants for calculations and I code them in PHP for use on a website are they safe from being viewed or taken? Thanks James -- PHP General Mailing List (http://www.php.net

[PHP] ICMP Ping

2001-08-13 Thread James Crowley
Hi, Is there any way to send an ICMP ping (or packet) from PHP? (without using exec(ping)!!) Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 Fax - +44(0)8707052859 == -- PHP General

[PHP] Re: File uploads in PHP

2001-08-17 Thread James Holloway
{ DoUploadFile($thefile, $thefile_name, $thefile_type, $thefile_size); } } Hope that helps, James. Dr. Evil [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My PHP script needs to receive some files. I've seen sites which accept them; they have a Brows

[PHP] Help with linux / apache / php

2001-08-17 Thread James, Yz
dazed state) making me even more dizzy. Lastly, thanks for reading. Any advice any of you can give, or any basic pointers you might have, are greatly appreciated. Please cc any replies. Thanks and goodnight, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] switch with html

2001-08-20 Thread daniel james
Hi, How do I call on a switch from within an html-embedded page? Say I have a large php script that first verifies a login, then allows templates for INSERTING, UPDATING, DELETING various records-- I need to have separate templates load for each set of steps, but I only have the vaguest of

[PHP] PHP_UK Meeting, Sat Sept 8th, Taunton, Somerset

2001-08-21 Thread James Moore
Hi all, Just to confirm over the past week or so I have received enough interest in the meeting for it to take place. The details will be as available at http://www.phpuk.org/meetings.php For those who asked how to get tickets please send monies to: James Moore Prospect House Tower Hill

[PHP] Re: mySQL Query - comparing multiple values with one field

2001-08-22 Thread James Holloway
; for($i = 0; $i = sizeof($words); $i++) { $query .= field LIKE '% . $words[$i] . %' OR ; } $query = substr($query, 0, -4); // need to take out: [[:space:]]OR[[:space:]] from the end $do_query = @mysql_query($query); Cheers, James What I need to do is to compare if one field matches

[PHP] include or require or what?

2001-08-23 Thread daniel james
I am working on a form that needs to run INSERTS into a table, but also has other connections and functions going on, so $php_self isn't really an option (I'm a newbie, and switch still scares me)... Can I effectively use an include/require(insert.php) on the main of the form, have the form

Re: [PHP] local time v.s. server time

2001-08-25 Thread James, Yz
); if ($plusminus == +) { $newtime = $timestamp + (3600 * $offset); } else { $newtime = $timestamp - (3600 * $offset); } $newdate = date(Y-m-d H:i:s, $newtime); return $newdate; } ? Hope this helps. James Joe Sheble ) [EMAIL PROTECTED] wrote in message Alas, I don't have this luxury since

[PHP] PHPUK Meeting - Cancelled

2001-08-28 Thread James Moore
have sent monies for tickets etc please contact me and they will be returned promptly. Sorry for any inconvience caused. Thanks, - James -- James Moore [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] Re: parse error AFTER end of included file??

2001-08-28 Thread James Holloway
like this more easily. Just my opinion ;) James Jaxon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Can anyone tell me why I have a parse error here? I'm including this file, which is 16 lines, but the error being thrown by the including page

RE: [PHP] unset() in a class

2001-08-28 Thread daniel james
If that's the code you're running, it's got several problems-- 1st, the function is mysql_query() 2nd, the query is built like this: $connection = mysql_connect('host', 'user', 'pass'); $db = mysql_select_db('db', $connection); $query = SELECT * FROM tablename WHERE primary_key =

Re: [PHP] Pulling webpages - may be a weird question :)

2001-08-28 Thread daniel james
try readfile('http://www.somesite.com/'); it creates a mirror; it might bypass the firewall, depending on how the blocking software is keyed to activate. -dj --- Jeff Lewis [EMAIL PROTECTED] wrote: I was sitting here at work (working of course!) thinking about how some sites are blocked etc

Re: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
do you mean, as in, if !is_integer($var) { print($var is not an integer); } --- Philip Olson [EMAIL PROTECTED] wrote: hi friends, Can someone post here the most efficient method to validate a variable as numeric? I see a ton of hacks/ways in the manual user comments under is_int,

Re: [PHP] Check if a word is in my string.

2001-08-28 Thread daniel james
if you're just looking for the 1st occurrence of the string, it's-- $check = good; $var = This is a good...; if (!strstr($var, $check)) { print($check not found); } also, i think strstr() is case-insensitive, so it won't be able to differentiate between 'Good' and 'good', and will NOT return

Re: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
= '123'; Anyone have an authoritative answer on this? Like, something that would go in the manual as the official php3 is_numeric check? Regards, Philip On Tue, 28 Aug 2001, daniel james wrote: do you mean, as in, if !is_integer($var) { print($var is not an integer

RE: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
) = split(\., $number); // if there's no decimal value if ( empty($y) ) { return is_int($x); } else { return ( is_int($x) is_int($y) ); } } -Original Message- From: daniel james [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] is_numeric for php3 do you

Re: [PHP] change info in database not successful

2001-08-29 Thread daniel james
maybe somebody else will be able to come up with a much more graceful solution to this, but i think you need to forget unset()-- all it does is destroy a var within a script. your db data doesn't become a var until you fetch it, but unset() isn't a mysql function and doesn't interact with the db

[PHP] Re: im puzzled

2001-08-29 Thread James Potts
SELECT uid FROM users WHERE uid NOT IN (SELECT uid FROM picks) HTH, James Potts Jeremy Morano [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi , this is my query SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; this works c

Re: [PHP] Database Preference? -- Manuel, Michael, Miles

2001-08-30 Thread James Potts
it will be an asset, especially for some of our older applications. Thanx again, James Potts Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, James wrote: Regarding a database abstraction package: does Metabase handle all standard SQL co

[PHP] Re: A Separate Process?

2001-08-30 Thread James Potts
signal and execute the wait3() * system call. */ if (ignsigcld) { #ifdef SIGSTP int sig_child() ; signal(SIGCLD, sig_child) ; #else signal(SIGCLD,SIG_IGN) ; #endif } } /* end daemon_start */ /* eof: daemon.c */ -- HTH, James Potts

Re: [PHP] Database Preference? -- Manuel, Michael, Miles

2001-08-30 Thread James Potts
Manuel, Thanx again for your help. I will check it out this evening. Sounds like you're a busy man. ;-) Keep up the good work. James Potts Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... James Potts wrote: Manuel,

[PHP] Re: just 10 characters from a string

2001-08-31 Thread James Holloway
Hi Marcos, use substr(); http://www.php.net/manual/en/function.substr.php $string = substr($string, 0, 10); James Marcos Lloret [EMAIL PROTECTED] wrote in message 019701c131f1$f57bdfa0$371c94c1@mlloret">news:019701c131f1$f57bdfa0$371c94c1@mlloret... hi to all, i have a lon

[PHP] Re: problem with form values

2001-09-12 Thread James Holloway
Sorry, I didn't mean it quite like that. After the user presses submit $string = htmlentities($string); // now, do whatever with the string J - Original Message - From: Niklas Lampén To: James Holloway ; Php-General Sent: Wednesday, September 12, 2001 9:52 AM Subject

[PHP] Private functions

2001-09-19 Thread James Gregory
Hi, Is there a way to make a function 'private' in a php class? I'm guessing there isn't since I haven't been able to find reference to it in the php docs, but if this is the case, is there some way I can emulate private scoping? thanks, James. -- PHP General Mailing List (http

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread James Holloway
INTO com (column1, column2) VALUES ('something', 'something else'), ('something again', 'something else again'); James VM ÁÖ¿N [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello I want to know how to implement these several sql statements in

Re: [PHP] mysql_trouble (check fast!)

2001-05-08 Thread James, Yz
= UPDATE users SET password = '$new_password' WHERE username = '$username'; $result_update = @mysql_query($sql_update, $connection) or die(Another graceful error.); echo Your new password has been saved.; } } ? James. FredrikAT [EMAIL

Re: [PHP] MAX_FILE_SIZE : warning

2001-05-09 Thread James Holloway
!= image/pjpeg) { echo We only like jpegs!; } As a footnote, 500Kb is 512000 bytes (1024 bytes in a Kb). James. When I set INPUT TYPE=hidden NAME=MAX_FILE_SIZE VALUE=50 and a user uploads a file bigger than 50 my script prints a warning. How can I use MAX_FILE_SIZE and avoid

Re: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread James Holloway
about people repeatedly clicking their links so that they got more hits out. Have fun ;) James. Steve Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ahh - thanks - that's helped :-) (Line 9 was the http_referrer line) Now the only trouble is,

RE: [PHP] bulletin board or forum

2001-05-10 Thread James Atkinson
http://www.phpbb.com :D - James -Original Message- From: Matt Williams [mailto:[EMAIL PROTECTED]] Sent: May 10, 2001 3:14 AM To: Kian On; [EMAIL PROTECTED] Subject: RE: [PHP] bulletin board or forum phorum.org M@ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Incrementing dates

2001-04-21 Thread James, Yz
(0,0,0,$month,$day,$year); $days_to_add = 7; $x = 1; while($x = $days_to_add) { $make_date = getdate($actual_date); echo Day $x: $make_date[mday] $make_date[month], $make_date[year]BRBR; $actual_date = $actual_date + (3600 * 24); $x++; } ? /body /html Cheers, James - Original

FW: [PHP] PHP Editor

2001-05-13 Thread James Crowley
You might also want to try a freeware opens ource editor I am developing, called Developers Pad http://www.developerspad.com/ Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011

RE: [PHP] need better solution...

2001-05-14 Thread James Atkinson
I would suggest some sort of Templating solution. Take a look at Smarty, PHPLib, or FastTemplates. - James -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: May 14, 2001 5:11 PM To: [EMAIL PROTECTED] Subject: [PHP] need better solution... In most of my

Re: [PHP] Needing help hear

2001-05-15 Thread James Holloway
of . $num_rows . residing in the database.; ? Hope that helps, James. Richard Kurth [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to pull all the e-mail out of the database and put them in a format like this [EMAIL PROTECTED],[EMAIL P

Re: [PHP] detecting HTML tags

2001-05-15 Thread James Holloway
Hi Bill ? if (preg_match(/([\])([^\]{1,})*([\])/i, $string)) { echo Houston, we have a problem.; } ? James. bill [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a way to detect the presence of HTML tags? I don't want them stripped out

Re: [PHP] Directory - exist or not ? :)

2001-05-15 Thread James, Yz
Hi There, ? $dir_to_check = /this/dir; if (!is_dir($dir_to_check)) { echo No directory here; } else { echo Bingo.; } ? James. Scream [EMAIL PROTECTED] wrote in message 9drq8v$ngb$[EMAIL PROTECTED]">news:9drq8v$ngb$[EMAIL PROTECTED]... Hi, I've got a one simple question. H

Re: [PHP] coding for 'no match found'

2001-05-15 Thread James, Yz
'; $result = @mysql_query($sql); if (mysql_num_rows($result) == 0) { echo No good.; } ? Can't be sure where I read it, but still :) Ack! 1.20am. Bedtime. James. Johnson, Kirk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... See http://www.php.net/m

Re: [PHP] need some ideas here...

2001-05-16 Thread James Holloway
incorrectly? James. Christian Dechery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My free-web-hosting (www.f2s.com) does not allow PHP to send emails... I've tried everything... the mail() function, my alternate function which calls popen(/usr/lib/sendmail -t)

Re: [PHP] Image Upload??

2001-05-16 Thread James Holloway
From phpinfo() on f2s.com upload_max_filesize 2M So, something like, @copy($file, /path/to . $file_name) or die (Blam, something's up!); should work - haven't got time to try it at the moment. James. What am I doing wrong here? Is there a way to get around the temporary folder? Tnx

Re: [PHP] Links as a query point instead of form drop down box

2001-05-17 Thread James Holloway
to you. Have a play, see how you get on :) James. Laurie Landry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I understand how to use a dropdown box to make your selection in which that selection is the criteria to display a database content; but I was w

Re: [PHP] UGH

2001-05-17 Thread James Holloway
in a day. Things would get more complicated with hours and seconds, but you get the idea :) Note that in this instance, $difference / 86400 will always be an exact division. James Taylor, Stewart [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ? $date =

Re: [PHP] UGH

2001-05-17 Thread James Holloway
James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Problem with outputting date and time

2001-05-17 Thread James Holloway
. ? $hour = date(H); if ((date(m) 3) (date(d) 25) (date(m) 10) (date(d) 31)) { $hour = $hour - 1; } ? Hope that helps. James. Good Fella [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, I need help with a small problem. My website has many us

Re: [PHP] Problem with PHP_SELF

2001-05-18 Thread James Holloway
; ? INPUT TYPE=Submit NAME=Submit VALUE=Next /FORM Of course form buttons look dreadful, so if you use that method, create a graphic to use, or do a javscript work around for text links. Hope that helps :) James. Richard Kurth [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

Re: [PHP] Problem with PHP_SELF

2001-05-18 Thread James Holloway
for text links. Hope that helps :) James. Richard Kurth [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having a problem with this script. It works perfect if I just do a Query like (SELECT * FROM customers) but if I call it from anothe

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