[PHP] Oracle 9.2.0 stored procedure & PHP 4.3.2

2003-06-04 Thread jon
Hi, I have deveolped a stored procedure within oracle 9.2.0. This procedure has an output parameter that is a defined as a REF CURSOR and I would to know if it is posible, using ORA functions in PHP, to run this procedure and retrieve the data contained by this REF CURSOR. I would be very grateful

[PHP] A simple javascript problem

2002-06-25 Thread Jon
Seems like my server doesn't interprete the"?" correct. Is there anything really basic here Im missing... /Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Buy & Sell

2002-06-27 Thread jon
I have one: http://jonroig.com/freecode/openrealty/ -- jon - jon roig project manager openlistings -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:50 PM To: PHP General List Subject: [PHP] Buy & Sell Hi

[PHP] windows user_name

2003-10-15 Thread jon
Hi, I like to know if it is possible to retrieve windows user_name from a php script ... thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php_w32api.dll ... fatal error

2003-10-21 Thread jon
When trying to run the following script, it returns the following error "...Fatal error: Call to undefined function: w32api_register_function()...". Does this w32api extension work? // Define constants needed, taken from // Visual Studio/Tools/Winapi/WIN32API.txt define("MB_OK", 0); // Load the e

[PHP] Search and Replace with WinWord and COM Objects?

2003-12-01 Thread jon
27;s the output I get: Loaded word version (10.0) Warning: (null)(): Invoke() failed: Exception occurred. Source: Unavailable Description: Unavailable in C:\Program Files\Apache Group\Apache2\htdocs\wordFix.php on line 11 Any help would be greatly appreciated... -- jon --- jo

RE: [PHP] Changing User Agent for fopen

2003-12-04 Thread jon
You might want to look at curl as an alternative -- it gives you a lot more flexibility than fopen. -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: Gohaku [mailto:[EMAIL PROTECTED] Sent: Thursday, December

RE: [PHP] sessions simply don't work

2003-12-19 Thread jon
Maybe you should post the first few lines of your code... -- jon -Original Message- From: ken lee [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:18 PM To: [EMAIL PROTECTED] Subject: [PHP] sessions simply don't work I'm getting this message all the the

RE: [PHP] reading excell and writing to text file..

2003-12-22 Thread jon
conversion. Something like this might help: http://chicago.sourceforge.net/xlhtml/ -- jon -Original Message- From: Andrew Kwiczola [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 11:47 AM To: '[EMAIL PROTECTED]' Subject: [PHP] reading excell and writing to text

RE: [PHP] generating .doc on the fly

2004-01-06 Thread jon
Nah... You can't use COM in Linux, but you can generate an RTF pretty easily, which will open right up in Word with no problems whatsoever. -- jon ------- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: Naveed

Re: [PHP] Rand() problem

2004-01-11 Thread Jon
I am running the latest stable PHP release. I am passed values and my range is far less than the max... On my computer with my Xitami webserver this code returns the number 45 over and over: $num = rand(0,50); echo $num; I don't know what to do. The rand function worked a few times then died o

RE: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread jon
...) Microsoft's lawyers probably could've handled it more tactfully, but they were required to take action. -- jon -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Why we love Micros

[PHP] Working with files

2001-03-20 Thread Jon
It is a newbie question about working with local files. I just want to know if it posible to open and modify a local file (I mean that it is located in the local hard disk of the client machine) or because of security reasons it is only posible to open and modify it when the file resides in the se

[PHP] '' and \" -> How do you avoid removing these?

2002-01-29 Thread Jon
Okay, I'm trying to read in a form with " and ' in it. The problem is that PHP automatically changes these to \" and \' without asking :( If I read in a file with " or ' in, it's fine and outputting to the screen is no problem. It's only when I read in from a form that a problem appears. All I wan

[PHP] Swapping for \n... ?

2002-01-29 Thread Jon
I'm processing a form but all the functions I've found on the web only seem to add the after the \n. I need to remove the \n altogether - anyone know how I can kill the \n and put a in it's place? Cheers, Jon -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: Swapping for \n... ?

2002-01-29 Thread Jon
Nevermind, I found some code at last which actually works : $txt = preg_replace("/(\015\012)|(\015)|(\012)/","",$txt); "Jon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm processing a form but all th

[PHP] PHP browser uploads = PASV?

2002-04-16 Thread jon
Hey... does anyone know if browser uploads via PHP are a PASV connection? If so... is there a way to accept PASV connections behind a firewall, like in Wu-FTP? Thanks... -- jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP browser uploads - server behind firewall

2002-04-16 Thread jon
g for that server's IP address -- which, as you know, is for the internal network. Any tips as to how to get this to work? -- jon -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 12:50 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTE

[PHP] Querying Oracle from PHP

2002-04-19 Thread Jon
Hi, I am evaluating if it is posible to connect Oracle 8i from PHP, running a PL/SQL procedure and returning the results, avaible in a temp table, to HTML. Besides, I need to format the results of the query in PDF document and make a pie chart based on he results of the contents of the table I

[PHP] Programming Methodology Question

2002-04-01 Thread jon
de file to make it easier to upgrade when we release new versions. Is that problematic, to have a php file that large? (I mean, I know it's not THAT big.) Should I break it into separate files, maybe just make a folder replaceable? Thanks, -- jon --------- jon roig jon at

[PHP] PEAR vs. ADODB

2002-04-01 Thread jon
the ADODB libraries? What do you think? -- jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Authentication

2001-03-25 Thread Jon
Hi, I have read that for using PHP authentication I must be able to user variables such as $PHP_AUTH_USER that are only avaible when PHP is installed as a module. On the other hand I am using APACHE 1.3.17 with PHP 4.04 and I have configured Apache with the following lines: ScriptAlias /php4/ "

[PHP] Retrieving environment variables

2001-03-29 Thread Jon
Hi, I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to retrieve, as a variable, the user name loged in the W2000 domain. Running PHPINFO() function e it does not display USERNAME variable so I do not know how to accomplish this task Thanks -- PHP General Mailing Lis

[PHP] W2000 Domain UserName

2001-03-29 Thread Jon
I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to retrieve, as a variable, the user name loged in the W2000 domain. Running PHPINFO() function e it does not display USERNAME variable so I do not know how to accomplish this task Thanks -- PHP General Mailing Lis

[PHP] Retrieving W2000 username as a PHP variable.

2001-04-02 Thread Jon
I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to retrieve, as a variable, the user name loged in the W2000 domain. Running PHPINFO() function it does not display USERNAME variable so I would like to know if there is other alternative to accomplish this task. Thanks

[PHP] Global Variables

2001-04-03 Thread Jon
Hi, I need to retrieve some information from a database, asociated with the user session so I could query this information whenever I want through the user session. I am searching for something similar to ASPs global variables if there is anything equivalent with PHP. Thanks -- PHP General M

[PHP] PAIR NUMBER

2001-04-04 Thread Jon
Hi, I am searching for a POP function that let me calculate for example the MOD of dividing a number between 2 so as to know whether this number is pair o unpair. I have been looking throguh the section of mathematical functions but I have found nothing and I do not know where else could I searc

[PHP] Telnet and PHP

2001-06-30 Thread jon
I was doing some research on creating a webbased telnet client and I am unsatisfied with Java applets. I would like to create a server side telnet client, so the user side is only required to have a working web browser that supports HTML. Thus, I turned to PHP. I found one example, but it does

Re: [PHP] Telnet and PHP

2001-06-30 Thread jon
Instead of performing a send for each stroke, the user code type in a whole string in a text box, and then submit that string. I have found this code at http://www.phpbuilder.com/mail/php-general/2001051/1479.php: sock = fsockopen($host,$port); socket_set_timeout($this->sock,2,0);

[PHP] .htaccess

2001-07-24 Thread jon
If I have a directory protected with an .htaccess file that requires users to log in, is there anyway to determine what username they used in my PHP scripts? --Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon
Hmm although the answer was "Personal Home Page Tools" and is now "Hypertext Preprocessor" when people ask me, I say "Pre-Hypertext Processor" Its the same meaning, and puts the letters in the correct order, so as not to confuse people. -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Legal advice

2001-09-21 Thread Jon
Hi, We are working with PHP & MYSQL, and we would like to publish some information that we have with MS ACCESS and MS EXCEL, and altough I know that it is posible to connect an access database using ODBC from PHP, however I don't know if it is legal to do this without having to pay licenses to M

Re: [PHP] php and java applets

2004-05-21 Thread jon
Can you just send a command line java app commands from php? -- jon Tom Playford wrote: Dear all knowing list, I am trying to control the movement of a camera in real time from the web. But I also need to make sure that only the user I specify can have control. What I though I could do

Re: [PHP] php and java applets

2004-05-21 Thread jon
exec or something similar. -- jon ------ jon roig web developer Tom Playford wrote: jon wrote: Can you just send a command line java app commands from php? I'm not sure what you're getting at. Do you mean writing the Java code in the php page? I didn't know php could com

Re: [PHP] Server Push

2004-05-27 Thread jon
thing like flash as a front-end is actually not that hard. It seems to me that, in a lot of cases, PHP is the wrong tool for the job when there are others out there that do it really well. -- jon George Lantz wrote: I am just looking for some different techniques on how server push is d

Re: [PHP] Identifying spam text

2004-05-28 Thread jon
hotscripts or something -- just changing the url and some of the form names away from the default settings will go a long way towards thwarting a casual spam attacker. Mostly, these types of events seem related to targets of opportunity, so to speak. -- jon -- jon roig web developer phone

Re: [PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread jon
Yeah... gotta agree with that -- the PEAR package makes dealing with mime mail incredibly easy. I love that thing. -- jon -- jon roig web developer phone: 888.230.7557 email: [EMAIL PROTECTED] Torsten Roehr wrote: Maybe you could use a ready-made package such as PEAR's Mail_Mime:

[PHP] APC + "Fatal error: Cannot redeclare class..."

2006-07-26 Thread jon
n that box, but I'd love to try APC. Thanks... -- jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] APC + "Fatal error: Cannot redeclare class..."

2006-07-26 Thread jon
Thanks man... it turns out that I really was redeclaring the class, but it didn't throw an error until I added APC. Kinda weird, yeah? Anyway... it's all good now. -- jon Jochem Maas wrote: jon wrote: So... I've got some code that works just fine without APC, but die

[PHP] ebay/nusoap example?

2006-03-08 Thread jon
e setup all the developer tokens and whatnot, so that's all good.) Thanks a lot, -- jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] proc_open and unix pty support

2006-04-03 Thread Jon
Has anyone worked with ptys using proc_open? I want to try it out but it appears to be disabled at the source level and I don't know how to re-enable it. Any info at all is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] proc_open and unix pty support

2006-04-04 Thread Jon
it's disabled. I removed the 0 >&& and recompiled, >after which the pty option works perfectly. Just a >note. except that it doesn't say WHERE in the source. I can't find it. #if 0 && shows up about a million times. anyone got any advice? I swear i

[PHP] php.dev, network timeout??

2006-05-12 Thread Jon
et to successfully make a connection there. Can anyone give me some good advice on how to fix this problem? I'm using thunderbird to browse. Thanks in advance, ~jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.dev, network timeout??

2006-05-12 Thread Jon
chris smith wrote: On 5/13/06, Jon <[EMAIL PROTECTED]> wrote: This isn't strictly a php question. Its actually a question about the mailing lists in general. I know I must be doing something really stupid but I seem to be having a lot of problems with network timeouts while b

[PHP] Re: PHP/Dreamweaver CSS issue

2006-05-12 Thread Jon
The Doctor wrote: I am trying to modularize a Web Page using one of Dremweaver's CSSes. It works in Firefox but it falls about in IE. Is IE at fault or the modularization? It is neither Firefox's fault nor the concept of modularization. The fault is probably 55% IE's and 45% dreamweaver's.

[PHP] binary zero evaluates as true!?

2006-06-08 Thread Jon
Seriously guys... am I completely missing something important here? An empty array evaluates as false. The null character evaluates as false. The STRING "0" even evaluates as false yet a binary zero does not? Even better yet bindec() doesn't appear to be binary safe so it will work for a st

Re: [PHP] binary zero evaluates as true!?

2006-06-08 Thread Jon
Are you sure you are evaluating your binary '' properly as you claim? Send a sample code alrightey then. the binary data itself is actually stored in a mysql table. (mysql 5.1.9) the relevant part is the following column: ++- | Field | Type +---

[PHP] calling stored procedures & ORACLE 9i

2004-03-08 Thread jon
Hi, I would like to know if it possible to run a stored procedure (Oracle 9i) and the way to get the OUT parameter of this procedure in PHP. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] saving as .XLS

2004-03-26 Thread jon
Hi, I am looking for some information about the way of saving the result of my php script (html table) with .XLS (ms excel) format. Do you know where could I get info about this? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compiling PHP 4.3.3 with large file support

2005-01-26 Thread Jon
child pid exit signal Segmentation fault (11)" when ever I request a page. Compiling the same source without those flags works fine. I must be missing something, but I am in way over my head. Can someone tell me what I am doing wrong? Thanks, Jon -- PHP General Mailing List

Re: [PHP] Compiling PHP 4.3.3 with large file support

2005-01-27 Thread Jon
...}) = 0 open("/var/www/html/index.php", O_RDONLY) = 9 read(9, " Jon wrote: > > I'm running Fedora Core 1, all packages up to date. I want to add large > > file support to php. I downloaded the source rpm. Added > > "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64&q

Re: [PHP] [NEWBIE] Trying to create a function from an existing script

2005-01-27 Thread Jon
basename is looking for a file and $HTTP_POST_FILES[$name]['name'] is not a valid path to a file. Something like this should work if(move_uploaded_file($_HTTP_POST_FILES['upfile']['tmp_name'], rawurlencode($store_dir.$HTTP_POST_FILES['upfile']['name'])) On Fri, 2005-01-28 at 14:41 +0900, Dave wro

Re: [PHP] [NEWBIE] Trying to create a function from an existing script

2005-01-27 Thread Jon
Dave, Does $store_dir end with a slash? Is it writable by apache? What do your log files reveal? What is the output of the script? On Fri, 2005-01-28 at 15:18 +0900, Dave wrote: > Jon, > Thanks for responding. Unfortunately, it still doesn't work. I tried > it exactl

Re: [PHP] [NEWBIE] Trying to create a function from an existing script

2005-01-27 Thread Jon
Dave, Another quick note. If you are using this in a function with register_globals off in you php.conf you will need to do global $_HTTP_POST_FILES or use $_FILES['upfile']['temp_name'] instead. On Fri, 2005-01-28 at 15:18 +0900, Dave wrote: > Jon, > Thanks for

Re: [PHP] Get a PAGE

2005-01-27 Thread Jon
I use libcurl for such functions On Fri, 2005-01-28 at 14:52 +0800, Louie Miranda wrote: > Im trying to capture the whole page of a certain courier service. > What i want to do is, after i got the form to query the AWB (Air Way > Bill No.) It will dump on my local folder the page containing the > d

[PHP] Help with references?

2005-01-28 Thread Jon
r my head here so if someone could bail me out I would be eternally greatful! Thanks, Jon class dir { var $name; var $subdirs; var $files; var $num; var $prio; function dir($name,$num,$prio) { $this->name = $name; $this->num = $num; $this->prio = $prio;

Re: [PHP] Help with references?

2005-01-28 Thread Jon
v){ if($v->name == $name) return $v; } return false; } function draw($parent) { echo('d.add('.$this->num.','.$parent.',"'.$this->name."\",".$this->prio.");\n"); foreach($this->subdirs as $v) {

Re: [PHP] Help with references? again

2005-01-28 Thread Jon
=> 5464, 'size' => 8765 ) ); $prio = array(); for($i=0;$i $file) { $depth = count($file['path']); $branch =& $tree; for($i=0; $i < $depth; $i++){ if ($i != $depth-1){ $d =& $branch->findDir($file['path

[PHP] Returning reference problem

2005-01-29 Thread Jon
of adding another item to the current object. So there can only be one "file" or "folder" in the parent "folder" with the exception of the top level. My entire script is below. Thanks, Jon name = $name; $this->num = $num; $this->prio = $prio; $this

[PHP] curl

2005-06-07 Thread Jon
I have not used curl before and it looked interesting from the manual. So, does anyone have a sample script or a tutorial that covers the logon procedure. What I want to do is logon to an asp site and download some files. Can someone point me in the right direction? I have done some searches on

[PHP] reading PDF's

2005-06-24 Thread Jon
Is it possible to read text from a PDF file with PHP? How? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I can't cURL

2005-06-29 Thread Jon
.value + "&returnto=" + document.all.calledfrom.value frmEmail.submit() } function closeit() { window.location = document.all.calledfrom.value } function initialize() { document.location="filedownload.asp?DFID=" + "&returnto=" + document.all.calledfrom.val

[PHP] still trying to cURL.

2005-07-11 Thread Jon
I have minimal experience with cURL but have had some success with it. I am trying to download some invoices that are posted every month. I am able to get a login to the https: and get the first few pages but when I try to get the invoices I get an error page with this content. HTTP Status 500 -

[PHP] Data and variable transfer

2005-07-18 Thread Jon
OK this may not be the correct place to ask but maybe someone can help. Related to the Post URL ? How do I see the information passed from my browser to a site? I have httpLiveHeaders for mozilla and that does not provide all the info that I need. Or I am not getting something right. I have be

[PHP] libCURL help

2005-07-18 Thread Jon
is there some way to get a .do file from a server is it readable? I think that may be my whole problem with my curl sequence. I need to see what the routing file is doing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP MySQL insert

2005-08-18 Thread Jon
Please help with an insert problem. Sometimes $data1 could have a comma and that messes up the insert. how do I get around that? $query = "insert into testtable6 (indx, col1, col2) values (NULL, '$data1', '$data2')"; mysql_db_query("testdb", $query); -- PHP General Mailing List (http://www.php

[PHP] preg_match

2005-08-18 Thread Jon
preg_match_all("/Charges \s\s+ $total x (.+) /siU", $single, $from_invoice); The text has "Charges" then a variable amount of spaces a previously picked decimal number" x " (and the data I want)" " is this correct or am I missing something? It seems to work sometimes and not others and I have no

[PHP] Perhaps a stupid question on phpinfo

2005-09-16 Thread Jon
$mypath = "C:/phptestdir/"; $file = "phpinfo.htm"; $html_file = fopen("$mypath$file", "w"); fwrite ($html_file, printf(phpinfo())); fclose ($html_file); How would I accomplish this? All I get is the "1" that phpinfo succeeded. I want to write the results of phpinfo to a file. I am sure it is so

[PHP] core files

2005-09-19 Thread Jon
I am trying to copy the files needed to run a php commandline script so that I can send them to a different computer and run as a scheduled task. I do not know what I am missing but for some reason my file commands do not seem to be working. fopen does not work and so fwrite does not work either.

Re: [PHP] core files

2005-09-20 Thread Jon
OK, OK, Ha-ha Thought that you guys could read my mind... Here is the error Warning: fopen(C:\windows\Desktop\php\php pages\phpout.txt) [function.fopen]: failed to open stream: No such file or directory in C:\windows\Desktop\php\php pages\phpout.txt on line 12 and of course the fwrite and fclose

[PHP] Re: core files [Oops]

2005-09-20 Thread Jon
Nevermind. I get the award for not checking code on this one. I did not pay close enough attention to what I was doing and had the path with \'s instead of /'s. I fixed that and it started working. Imagine that. Buggy code was causing the error. Sorry for the trouble. "

RE: [PHP] Hello ! How to write a programme in PHP which executes a routine at a given time ?

2002-11-28 Thread Jon Haworth
m your OS's scheduler - cron under unix/linux, or task scheduler in Windows. I usually trigger the script with lynx and pipe it to /dev/null, but if you have PHP compiled as a standalone instead of a server module, you could call it directly. Cheers Jon -- PHP General Mailing List (http://ww

RE: [PHP] How do I run a command as root?

2002-12-02 Thread Jon Haworth
Hi Luke, > I'm trying to find out how to run a command on the > server as root. Does anybody know how to do this? How about using a combination of exec() and sudo (assuming you're in the sudoers file, that is)? Cheers Jon -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Newbie Question

2002-12-02 Thread Jon Haworth
ry this: ; // loop through the results while ($r = mysql_fetch_array($q)) { // echo a table row ?> "; ?> It's untested - shout if it doesn't work. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-12-02 Thread Jon Haworth
Hi Joskey, > Who can tell me the best php-base webmail? IMP (http://www.horde.org/imp/) is pretty good, I use it for my webmail and don't have any complaints. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating a report in PHP

2002-12-09 Thread Jon Haworth
nerated as HTML pages by PHP scripts - these are the ones that get run many times on a daily basis and always look the same - and Crystal installed on the managers' PCs for ad hoc reporting. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How know from wich page you came from

2002-12-10 Thread Jon Haworth
Hi Rodrigo, > Hi guys I need a way to know how to know from wich > page the visitor came echo $_SERVER["HTTP_REFERER"]; HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] run query

2002-12-10 Thread Jon Haworth
Hi Diana, > After I run a query lik this, > $db->query($sql); > > what is the quickest way to find out how many > records result? Look into mysql_num_rows (or the equivalent if you're not using MySQL) Cheers Jon -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Jon Haworth
Hi Shane, > I can pass variables till I am blue in the face, even > see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET["var"]? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
I suggest, rather than picking your way through this minefield, you provide a "report abusive comment" link instead? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
minutes later: > Trend SMEX Content Filter has detected sensitive content. > Place = 'Christopher Raymond'; [EMAIL PROTECTED]; > Sender = Jon Haworth > Subject = RE: [PHP] Filter vulger / controversial words > - need word source > Delivery Time = December 11, 2002 (Wedne

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
,000 odd people who live in a particular town in the north of England. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
gt; > However some countries are now legislating responsibility that > ISPs/employers must discharge Whoops, forgot about that... > In this case perhaps one could analyse the incoming text and place an > embargo on its publication on the web site until it has been reviewed by a &

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
Hi Sean, > if you want a partial list of offensive terms - try looking > at the meta keywords on a few porn sites ... Excellent idea! Unfortunately I'd have to explain that to my boss... "No, really, I'm doing some research..." Cheers Jon -- PHP General Mailing Lis

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
earch..." > > but won't your gateway/web server's filter prevent access to > such sites anyway? Nope, only the really offensive ones like http://www.thisisscunthorpe.co.uk/index.jsp ;-) Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Performance issues

2002-12-12 Thread Jon Haworth
tying up the processor. Did the heavy load happen immediately after your code change? If so then that might be a culprit... are there any chunks of code you can roll back to the old version to see if the load decreasese? (e.g. have you modified a bit to use a *lot* of string concatenation, or something?

RE: [PHP] Performance issues

2002-12-12 Thread Jon Haworth
it's now worse then ever. Are you doing something that degrades, like reading in an entire text file, adding a line to the end of it and saving it again? (Each time you do this it will take a bit longer). Did you look at the output from top (assuming unix) or task manager (assuming wi

RE: [PHP] "Use of undefined constant" error

2002-12-17 Thread Jon Haworth
uot;id", which you haven't defined - hence the "undefined constant" error ;-) Note how the message says "assumed 'id'", which is what you should change it to - this shouldn't stop your script from running, as the parser can work out what you meant, but

RE: [PHP] Showing 10 record items per page...?

2002-12-17 Thread Jon Haworth
t * 20), 20 Hope this gets you started. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP with GD Support

2002-12-17 Thread Jon Haworth
Hi Oliver, > ich want to install php.4.2.3 with gd-suport. > Any hints are welcome. You'll need to look it up, or do a configure --help or something, but I imagine you compile with something like --with-gd=/path/to/gd Cheers Jon -- PHP General Mailing List (http://www.p

RE: [PHP] if question

2002-12-17 Thread Jon Haworth
your ORs to ANDs, though (that'll evaluate to true if $stelle_who is neither 1 nor 2 nor 3 nor 5, and to false if it is any of these). Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Undefined variable error message

2002-12-18 Thread Jon Haworth
who admins your box? If so, have a word with them and see if they've been fiddling with php.ini - that's where the error reporting level is set. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript var to PHP

2002-12-18 Thread Jon Haworth
ig up the code if you're still having problems. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript var to PHP

2002-12-18 Thread Jon Haworth
Hi Cesar, > Jon, thanx for the fast response, but the problem is > that the link is made dynamically from a DB and the varvalue > changes on every link... if it helps, I make this link > list with a FOR loop in PHP and the varvalues > I want to pass are the IDs of a table

RE: [PHP] How to upload a file

2002-12-18 Thread Jon Haworth
Hi Somesh, > This works fine for small files of like some > Kbs but fails to upload larger files near to 1MB. What's your upload_max_size set to in php.ini? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to upload a file

2002-12-18 Thread Jon Haworth
upload_max_filesize = 8M I don't have a clue then, sorry :-( Might be a timeout thing, but I can't see how that could affect it... you could try bumping up max_execution_time and see if anything happens Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Displaying first 20 characters of a comment

2002-12-19 Thread Jon Haworth
20 characters. Of course, you now have a problem with words splitting :-) You can get around this either by grabbing the whole comment and splitting it on spaces, or by having a separate "synopsis" field in your database (this is how I do it). Cheers Jon -- PHP General Mailing Li

RE: [PHP] validate date

2002-12-19 Thread Jon Haworth
Don't fall into the trap of thinking that if you put some text on your form saying "please enter dates in mm-dd-yy format" that that's what you'll get, unless you *really* know your audience. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problem with functions

2002-12-20 Thread Jon Haworth
echo "a is $a"; echo "b is $b"; } test(1, 2); ?> Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] A rather strange problem.

2003-01-23 Thread Jon Haworth
sn't recognise (and therefore ignores completely). What you need to do is stick quotes round this, so it'll become: HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >