[PHP] Reading files from a directory

2001-08-23 Thread Niklas Lampén
I have problem with reading files from directory. This is the code: \n"; }; ?> That is ALL code on a script file. These are the file in directory: . .. array_maker.php4 map.php4 renamer.php4 border_bl.gif border_bm.gif border_br.gif border_ml.gif border_mr.gif border_ul.gif border_um.gif borde

[PHP] text wrap in table

2001-08-23 Thread Adrian D'Costa
Hi, I am creating a program for a newspaper to publish their article online. There is a form what allows them to cut and past from their editors (word, pagemaker, staroffice). The data is being entered correctly. The problem is when I try and get the data from the table the whole matter scro

[PHP] Re: [PHP-DEV] Re: Re: sysvsem extention question

2001-08-23 Thread Sascha Schumann
> parent process right before fork. There is no parent > initializer for a php module author MINIT() is called from the parent process in forking servers. The mm storage handler uses this hook to instantiate a shared memory segment and propagate the handle to all child processes.

[PHP] Re: PHP / MySQL Hosting Charges

2001-08-23 Thread Raphael Pirker
You can see hosts offer the package for around $10/month, so if it's inside a package they shouldn't charge more than US$2-US$4/month. If it's an extra feature, however, they may well charge around $5/month for the add-on and possibly also a setup fee, because it's not in their actual product list

[PHP] PHP / MySQL Hosting Charges

2001-08-23 Thread Chris Aitken
Hi All, Just a quick non-technical question. I live in Australia and a friend of mine has a website hosted here in Oz, and he pays his set amount per month which simply is for Hosting, cgi-bin and log file access for his website. Hes wanting to have the ability to use PHP and MySQL on his si

RE: [PHP] Header

2001-08-23 Thread Jason Murray
> I want to open some html page from php in if..else..endif > condition but i dont't know how or which command I must use. > Please help me > > if i uses this in IF section : > > $path = "/route/index.htm"; > Header("Location: http://$SERVER_NAME$path"); > > result in browser is : Warning: Canno

[PHP] Header

2001-08-23 Thread Roman
I want to open some html page from php in if..else..endif condition but i dont't know how or which command I must use. Please help me if i uses this in IF section : $path = "/route/index.htm"; Header("Location: http://$SERVER_NAME$path"); result in browser is : Warning: Cannot add header inform

RE: [PHP] Session Problem

2001-08-23 Thread Lawrence . Sheed
The simple things... Now I feel stupid. Baaie dankie Rudolf. (I'm an ex Capetownian now in Shanghai,China) Note to self, read manual * C A R E F U L L Y * -Original Message- From: Rudolf Visagie [mailto:[EMAIL PROTECTED]] Sent: August 24, 2001 1:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PR

RE: [PHP] Session Problem

2001-08-23 Thread Rudolf Visagie
Try session_register("count"); Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 04:42 To: [EMAIL PROTECTED] Subject: [PHP] Session Problem I can't get session variables to work I know this has been done to de

[PHP] Session Problem

2001-08-23 Thread Lawrence . Sheed
I can't get session variables to work I know this has been done to death in the past, but I've looked on php.net, and google for a solution, have tried the suggestions, and seem to fix it. My php session settings are as follows: NameLocal Global settings session.au

Re: [PHP] The future of PHP

2001-08-23 Thread Egan
On Thu, 23 Aug 2001 20:32:10 -0500, "Christopher CM Allen" <[EMAIL PROTECTED]> wrote: >hmmm, I might live in a smaller world than you but I find tons of small to >middle businesses that have no clue as to why or how things are done in >applications(primarily web). Sure they know the buzz words o

[PHP] Re: Re: sysvsem extention question

2001-08-23 Thread Jason T . Greene
> As far as creating the new module goes, it shouldn't be 'to much effort'. The basic >implimentation of system v semaphores > is actualy quite simple, its the usage of sempahores that can be very confusing :-) >sysv sem's are often refered to as the > most difficult to comprehend of the sysv st

[PHP] Re: Re: sysvsem extention question

2001-08-23 Thread Jason T . Greene
> > Last, i don't see why the implementation as exists, requires 3 > > semaphores. I just looked over the code, and the reason for this is it specifically designed for a multi-process web environment. The most common method for semaphore initialization is in the parent process right before

Re: [PHP] Re: order of update??

2001-08-23 Thread David Robley
On Fri, 24 Aug 2001 04:57, Gerard Samuel wrote: > Im currently hacking away at a current setup that uses php/mysql on a > user table. I have successfully inserted and selected from it, but I > cannot update. Yes there were quotes, but thanks for letting me know > that the order didn't matter, th

RE: [PHP] Mixing PHP with a FAX Gateway? HELP!!! IDEAS???

2001-08-23 Thread Jason
Hey, If anyone has any better solutions too, let me know, I'm open to anything. > -Original Message- > From: Fotwun [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 5:32 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Mixing PHP with a FAX Gateway? HELP!!! IDEAS??? > > > > > He

Re: [PHP] konquerer and php

2001-08-23 Thread Scott
What's happening specifically is that I have an html form with action "whatever.php" and when I click on submit I get code echoed to the screen. As I said it works normally in Netscape, I get the php page with all the data displayed perfectly. Thanks, SW On Thursday 23 August 2001 20:28,

Re: [PHP] The future of PHP

2001-08-23 Thread Christopher CM Allen
> > I'm afraid that PHP is not yet very credible in that world. The truth is > there is not great marketing force behind PHP like there is Sun behind > Java or Microsoft behind .Net Good point, and how does one go about marketing a language that is open-source? I do it by not allowing FP like ext

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread David Robley
On Fri, 24 Aug 2001 01:52, Gabe da Silveira wrote: > I was looking thru the mysql functions, and there doesn't seem to be > one that gives you the amount of time a query takes. Is there anyway > to get this information (since it gives it to you when you type queries > directly into the mysql shel

[PHP] incorrect Timezone using mail()

2001-08-23 Thread jeffrey jeffrey
Hi, When i use this function mail(), mail was sent successfully but when recipient receive the mail the date timezone is incorrect. It displayed -0800 instead of +0800. Im from +0800. The timezone does not display correctly. I have tried different servers but still the same. And all clients g

[PHP] Mixing PHP with a FAX Gateway? HELP!!! IDEAS???

2001-08-23 Thread Fotwun
Hey, I'm wondering if anyone here has any experiencing mixing webware with a FAX solution on the unix platform, particulary FreeBSD 4.2. I have 2 seperate possilble solutions here. The first involves faxing using software configured on the server. The 2nd is a PHP type solution, capturing HTML

[PHP] send mail to mailing list using mail() or smtp?

2001-08-23 Thread Matthew Delmarter
I would appreciate some feedback. I am writing a script to fire off emails in HTML or text format to everyone in a mailing list. It works no problem - but I am concerned with how many emails it can deal with over time. The script has no timeout setting, I am not sure if it needs one. It fires off

[PHP] The future of PHP - object orientation

2001-08-23 Thread Orr, Steve
What kind of PHP application development frameworks, class libraries, or templates are widely used? Is SiteManager any good? How about phplib? Others? Doesn't the future of object oriented PHP depend on good foundation classes? Any comments on PHP object orientation? Steve Orr -- PHP General M

[PHP] Re: how do i remove non html special characters??

2001-08-23 Thread Yasuo Ohgaki
"Sunny at wde" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all! > > i'm building a registration system, and i want to strip all funky > character map symbols from the username as well. i know strip_tags() > gets rid of html, but how do i get rid of them??

RE: [PHP] konquerer and php

2001-08-23 Thread Jason Murray
> I have a database browser that I made with php and mysql. When I use it in > Netscape it behaves normally. However when I view it using Konquerer, all > kinds of php code shows up on the screen when I execute a php page. I > thought that Konquerer might not be recognizing the start and end

[PHP] konquerer and php

2001-08-23 Thread Scott
I have a database browser that I made with php and mysql. When I use it in Netscape it behaves normally. However when I view it using Konquerer, all kinds of php code shows up on the screen when I execute a php page. I thought that Konquerer might not be recognizing the start and end tags

Re: [PHP] Informix - ifx_num_rows

2001-08-23 Thread Martín Marqués
On Jue 23 Ago 2001 21:21, Chris Fry wrote: > This function does not work reliably with most databases, not just > Informix. Caused me a lot of problems as I have a number of pages where I'd > like to display a "No records found message". I normally have a count(*) query to know how much records b

Re: [PHP] Informix - ifx_num_rows

2001-08-23 Thread Chris Fry
This function does not work reliably with most databases, not just Informix. Caused me a lot of problems as I have a number of pages where I'd like to display a "No records found message". Just have to do it the hard way. I think there's a disclaimer in the docs about this being unreliable. Chr

[PHP] Array's in classes

2001-08-23 Thread Scott Mebberson
Hi Guys, I have written a class in which it uses the global command to get the value of a variable from outside of this class which I use within the class. I have recently changed this variable to an array and added 5 extra keys to this array. It is a string indexed array. In now seems as though

RE: [PHP] SSL Advice

2001-08-23 Thread SED
Hi Berber, I was reading the agreement for Verisign certificate and they request a fee for each machine and, if I remember it correctly, each domain, and it's not a cheap one! Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone: (+354) 4

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

Re: [PHP] The future of PHP

2001-08-23 Thread Manuel Lemos
Hello, Rasmus Lerdorf wrote: > > > So, the jist is, what does PHP have to offer to the web in the future? I > > think it's still a viable option that will be around for at least another > > 6-7 years. This kid thinks it's shelf life is another 3. What do ya'll > > think? > > Personally I woul

[PHP] Re: Creditcard checksum and identification

2001-08-23 Thread Manuel Lemos
Hello, Peter Ostry wrote: > > Has anyone a PHP Script for the checksum of Creditcards? > And a Script which can identify card types based on their first numbers? > (VISA, AMEX, MASTER, DINERS, JBC, DISCOVERY) > > There where a lot of JavaScript pages on the web some years ago, but I > have lost

[PHP] Re: print_r question: Jim, Phil, Mike Thanx!

2001-08-23 Thread james
I appreciate your responses. A wrapper function using the suggestions works fine for my immediate purposes -- viewing output in the browser as I learn the language. Thanx again, James "James" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When I print an a

Re: [PHP] always last

2001-08-23 Thread Dave Freeman
On 23 Aug 01, at 11:10, Jeremy Morano wrote: > $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); > > > while ($row = mysql_fetch_array($result)) { > $uid = $row['uid'] > $team = $row['team']; if ($uid == $row['uid']) { $option_block .= "$team"; } else { >

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Dave Freeman
On 23 Aug 01, at 14:30, John Bass wrote: > > $query = "SELECT image_link, web_url FROM testdata"; > $result = mysql_query ($query) or die ("Query Failed"); > while ($row = mysql_fetch_object ($result)) > { > printf ("%s%s %s%s\n", $row->image_link, > $row->web_url,$row->image_link, $row->web_u

[PHP] Sorting and foreach of MultiDimensional Array failing

2001-08-23 Thread Montz, James C. (James Tower)
In the following code, I'm reading a variable set of random numbers into a multi-dimensional array. The first iteration runs properly, but when I get to my 2nd+ iteration, I get the following errors; Warning: Wrong datatype in sort() call in /home/usrlinux/WWW/pballs.php on line 18 Warning: Inval

[PHP] FW: upgrading PHP

2001-08-23 Thread Joseph Bannon
Has anyone come up with an upgrade proceedure for upgrading PHP to a higher version? Joseph -- 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 PROTECTE

[PHP] Dynamic Pages and Search Engines

2001-08-23 Thread Georgie
Ok, i have a script that creates a page that will be submitted to search engines. I had originally planned on having one line of code on the search engine page: include(http://localhost/freelance.php3?id=1); But for some reason, it doesnt work. I've tried everything, changing the php3 to php and

[PHP] compiling php-4.0.6 with imap-4.2

2001-08-23 Thread Juan Pablo Rivera
Hi to all: Can anybody help me, I need to compile php-4.0.6 with imap-4.2 thaks. -- 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] print_r question

2001-08-23 Thread Philip Olson
About the simplest way to accomplish what you want is : \newlines don't show up in browser but will in the source, check your html source and see how pretty it is (full of newlines). Here's an example : $string = "a\nb\nc\n"; print $string;(newlines in source) print nl2br($st

[PHP] Re: print_r question

2001-08-23 Thread jimw
James <[EMAIL PROTECTED]> wrote: > When I print an array out with print_r (php 4.06 on IIS 4.0) it does not > print newlines even if newlines are embedded in the array element. I must > embed , instead. it probably is printing the newlines, but in html, newlines are treated like any other whites

Re: [PHP] print_r question

2001-08-23 Thread mike cullerton
one thing i do is put print_r inside . function my_print_r($obj) { ?> When I print an array out with print_r (php 4.06 on IIS 4.0) it does not > print newlines even if newlines are embedded in the array element. I must > embed , instead. > > The manual examples use \n and the output sh

Re: [PHP] mcrypt trouble, still

2001-08-23 Thread Andrew Libby
Dominic, These locations can be set by in php.ini or passed as parameters to the mcrypt functions they pretain to (notably those used to initialize). Andy On Thu, Aug 23, 2001 at 07:24:42AM -0500, Dominic Schanen wrote: > Well, in response to my previous post and its reply, the server > adm

[PHP] print_r question

2001-08-23 Thread james
When I print an array out with print_r (php 4.06 on IIS 4.0) it does not print newlines even if newlines are embedded in the array element. I must embed , instead. The manual examples use \n and the output shows that newlines are created. Am I missing something? Newbie, here. Hope this is the

[PHP] SSL Advice

2001-08-23 Thread Boaz Yahav
Hi We are running a very successful PHP site with lots of traffic. We decided to move to a configuration of a few front ends and a back SQL. Till now it was one server and the SSL was for that server. Now we will have 2-4 front ends which are practically the same. The machine name is different an

Re: [PHP] Re: order of update??

2001-08-23 Thread Gerard Samuel
No visible errors per se. When I run the script, it either doesn't update the database or if I specify the password, it deletes the entry in the database. Its something on my end. I got to look it over, Thanks Sam Masiello wrote: > Why "can't you update" ? What error message are you getting

Re: [PHP] Informix - ifx_num_rows

2001-08-23 Thread Martín Marqués
On Jue 23 Ago 2001 16:50, you wrote: > Hi all, > > I have Php 4.0.6 on Linux with Informix Dynamic Server 7.31.UD1. > I try to use the function ifx_num_rows after afx_query and the value > returned is always "0", but i can see > the result with ifx_fetch_row. > Does Anyone know if there is a bug

RE: [PHP] Re: order of update??

2001-08-23 Thread Sam Masiello
Why "can't you update" ? What error message are you getting? Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 3:28 PM To: PHP Subj

[PHP] Re: I get "headers already sent by" error each time I use setcookie function

2001-08-23 Thread Inércia Sensorial Trabalhando
It will fail if the first line is a blank line. For example (numbers are line numbers): 1. 2. While: 1. It should work... -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Ha Minh Nguyen" <[EMAIL PROTECTED]> wrote in message 006701c12bbd$49a2bda0$[EMAIL PROTECTED]">n

[PHP] Informix - ifx_num_rows

2001-08-23 Thread Leila
Hi all, I have Php 4.0.6 on Linux with Informix Dynamic Server 7.31.UD1. I try to use the function ifx_num_rows after afx_query and the value returned is always "0", but i can see the result with ifx_fetch_row. Does Anyone know if there is a bug with this function "ifx_num_rows" ? Thanks in adv

Re: [PHP] code check

2001-08-23 Thread mike cullerton
on 8/23/01 11:51 AM, Tom Malone at [EMAIL PROTECTED] wrote: > Sorry to bother you all with this, but I have no way to test this, as I have > no access to a Mac. Could you tell me if this little piece of code looks as > if it would work (detect whether someone's using the Mac OS)? ie 5.0 macos 9,

Re: [PHP] Re: order of update??

2001-08-23 Thread Gerard Samuel
Im currently hacking away at a current setup that uses php/mysql on a user table. I have successfully inserted and selected from it, but I cannot update. Yes there were quotes, but thanks for letting me know that the order didn't matter, that narrows my list of possibilities down. Talk to you a

[PHP] Re: order of update??

2001-08-23 Thread jimw
Gerard Samuel <[EMAIL PROTECTED]> wrote: > My seem stupid to some, but when running > update tablename set x='$x', y='$y', z='$z' where a=$a; > Does it matter if it the set were in backwards order ie z, y, x ?? the order does not matter. (although unless you're sure $a is an integer value, you ma

[PHP] Re: Newbie Question re: Select boxes

2001-08-23 Thread jimw
Lb <[EMAIL PROTECTED]> wrote: > 1) I thought that PHP automatically created variables for all form elements > on a page. When I run this, the dropdown box contains the first item, but > $Report evaluates as null. I am unclear why. > > > 1 Test Report A > 2 Test Report B > 3 Test Repo

RE: [PHP] order of update??

2001-08-23 Thread Sam Masiello
The order doesn't matter, but perhaps you might want to put single quotes around your $a at the end of your SQL statement. You didn't mention the error that you were getting, but this might help nonetheless :) update tablename set x='$x', y='$y', z='$z' where a='$a'; HTH Sam Masiello Software

Re: [PHP] Re: The future of PHP

2001-08-23 Thread Hugh Bothwell
"Christopher Cm Allen" <[EMAIL PROTECTED]> wrote in message 003201c12be2$f9309b00$[EMAIL PROTECTED]">news:003201c12be2$f9309b00$[EMAIL PROTECTED]... > Greetings Php'ers: > <2 cents> > bahh to servelts-asp these are new kids on the block. Template this or that, > it doesnt matter, most templates a

[PHP] Variables not changing problem...

2001-08-23 Thread Nicholas A. Zukin
I'm using the function below to create a listing of name/value pairs to use in Flash. The first time it runs it works fine, but then after the first time, it uses the originally used variables. So if the URL looks like this: mydomain.com/hum_images.php?hub_section=product&hub_subsect

[PHP] Re: Need help to create HTML table with 2 columns.

2001-08-23 Thread Hugh Bothwell
"John Bass" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > > I am trying to generate a table with two columns. Each column should print > 2 fields named image_link and web_url. Have spent over week looking > documentations and trying different codi

[PHP] order of update??

2001-08-23 Thread Gerard Samuel
My seem stupid to some, but when running update tablename set x='$x', y='$y', z='$z' where a=$a; Does it matter if it the set were in backwards order ie z, y, x ?? Just curious, Im having a problem and I dont know if its because of the order Thanks -- PHP General Mailing List (http://www

[PHP] Your invitation to the Legal Solutions Europe 2001 Conference

2001-08-23 Thread Webmaster
Hi My apologies for writing to you unannounced. I came across your name whilst researching some data for the above event and I thought it might be of interest to you. For more info see below or visit www.lseurope.com This is Europe's largest and most prestigious IT solutions event. It incorpor

[PHP] Newbie Question re: Select boxes

2001-08-23 Thread LB
1) I thought that PHP automatically created variables for all form elements on a page. When I run this, the dropdown box contains the first item, but $Report evaluates as null. I am unclear why. 1 Test Report A 2 Test Report B 3 Test Report C 2) Is there any way for PHP to dete

[PHP] Does not deliver mail

2001-08-23 Thread Christof Coetzee
ID: 12932 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Mail Related Operating System: win2k PHP Version: 4.0.4pl1 New Comment: [2001-08-23 14:18:01] [EMAIL PROTECTED] I have a mail account that points to my mail server, my domain name is www.cdeso

[PHP] Re: Dynamic check boxes...

2001-08-23 Thread Hugh Bothwell
"Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 009201c12bff$de696af0$76a1a8c0@LEWISJCIT">news:009201c12bff$de696af0$76a1a8c0@LEWISJCIT... > I have a form where users can enter a link > (kind of a free for al links type of thing) > When they add their site to the database > a 0 is added to the

Re: [PHP] The future of PHP

2001-08-23 Thread Elias Santiago
Almost all modern technologies are the evolution of previous ones: C -> C++,Perl, PHP, Python; Basic -> QBasic -> VBasic/ASP; Even new languages like Rebol are based (in one way or another) to previous languages. Anyone could develop a parser/interpreter for any new language they could devis

[PHP] Re: code check

2001-08-23 Thread Gabe da Silveira
Perhaps you could put it on a webpage and ask a Mac user to see if it works. BTW, there is no reason to use preg_match for that. Instead use strpos(), it is MUCH faster. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Tom Malone) wrote: > Sorry to bother you all with this, but I have no

Re: [PHP] The future of PHP

2001-08-23 Thread Gabe da Silveira
Let's not forget the ecosystem in which these different technologies thrive. It's all based on who's paying whom to do what. The reality of the situation is that the people in charge don't know (or care) about all these different technologies. They may make some broad decisions (linux vs wi

Re: [PHP] The future of PHP

2001-08-23 Thread Jim Jagielski
This whole discussion is kind of bogus anyway :) It's like saying that the age of Pliers is over because you bought a set of Wrenches. PHP is a different tool that JSP. PHP is a much more comprehensive tool that JSP, which is really geared for a very specific task. Despite the fact that at some l

[PHP] Dynamic check boxes...

2001-08-23 Thread Jeff Lewis
I have a form where users can enter a link (kind of a free for al links type of thing) When they add their site to the database a 0 is added to the "approved" field. When I load an admin script I can check all of the ones that have a 0 in that field. I want to have checkboxes form down the si

Re: Re[2]: [PHP] printing

2001-08-23 Thread Bill MacAllister
The way that I do it on Linux is to generate TeX output, invoke TeX using system(), and then just lpr the output to the printer. The current production system that I am using actually uses a perl script invoked from a php script, really ugly, but I had the perl script from another project. H

[PHP] code check

2001-08-23 Thread Tom Malone
Sorry to bother you all with this, but I have no way to test this, as I have no access to a Mac. Could you tell me if this little piece of code looks as if it would work (detect whether someone's using the Mac OS)? if (preg_match("/mac/i", "$HTTP_USER_AGENT") || preg_match("/macintosh/i", "$HTTP_

Re: [PHP] Re: force download in IE -- conclusion

2001-08-23 Thread Tim Frank
I have had success getting IE 5.5 for PC recognising the suggested filename by changing the content type to something other than application/octet-stream. If it was left as that for IE 5.5(which the script snippet indicates) it would tend to take the filename of the script that execut

Re: [PHP] numrows

2001-08-23 Thread Martin Kampherbeek
This is the error I get. I tested in MYSQLadmin and there it works. I think there is something with numrows. MySQL Query Failed. Error 1030: Got error -1 from table handler Message-ID: <[EMAIL PROTECTED]> Date: Thu, 23 Aug 2001 10:11:17 -0700 (PDT) From: "ERISEN, Mehmet Kamil" <[EMAIL PROTECTED

[PHP] Re: numrows

2001-08-23 Thread Martin Kampherbeek
This is the error I get. MySQL Query Failed. Error 1030: Got error -1 from table handler Message-ID: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] From: "Johannes Janson" <[EMAIL PROTECTED]> Date: Thu, 23 Aug 2001 12:40:21 +0200 Subject: Re: numrows Hi, >$query = "SELECT * FROM question WHERE an

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Andrey Hristov
$this->starttime=explode(' ',microtime()); // query. $this->endtime=explode(' ',microtime()); $this->starttime=$this->starttime[1]+$this->starttime[0]; $this->endtime=$this->endtime[1]+$this->endtime[0]; $this->parse_time=$this->endtime-$this->starttime; I've copied that from a clas

RE: [PHP] The future of PHP

2001-08-23 Thread Jeff Pearson
Thomas, Keeping in mind that preaching Languages is the same as religion. If someone is decided for something, nothing you can say will change their mind; my point in bringing up the numbers was that again, these numbers include ONLY IT'S OWN CUSTOMERS If everyone was included in the poll, Im

Re: [PHP] The future of PHP

2001-08-23 Thread B. van Ouwerkerk
> > Notice it even gives info on PHP use :-) > >He would see JSP at 19.9% and PHP at 11.2 and say that proves his point. Ask the same question to PPL on this list.. I'll bet you see the opposite. It only proves your favorite kid doesn't understand a thing about statistics. I think PHP is

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Gabe da Silveira
Thank you Andrey & Nathan. THat was probably going to be the next thing to research. I think I figured out why my code got slow though. I have a preg search of a large field with .* in it at the beginning of an if,elseif,elseif,elseif struct that I should move to the end of it. In article

[PHP] Re: The future of PHP

2001-08-23 Thread J Smith
XML is pretty standardized, but the implementation of it in various web browsers isn't. I wouldn't consider XML all that comparable to HTML. They don't serve the same purpose. XML is generally used to order and describe data (metadata, basically), and although HTML serves roughly the same pur

RE: [PHP] The future of PHP

2001-08-23 Thread Dave
>He would see JSP at 19.9% and PHP at 11.2 and say that proves his point. And flash developers will claim that the only way to create a site is have the whole thing Flash and crap flying across the client screen all the time... Untill the modem access market drops below 50% of the users on the ne

RE: [PHP] Re: strange error

2001-08-23 Thread Dave
>if you have structure like > >if (isset(...)){ >...; >} [...] >?> > >you have to insert "endif;" >If you think you did it but still have an error, try to count your "if" >statements and "endif;" maybe something is missing. This is a matter of personal preference, but use formatting that is help

Re: [PHP] numrows

2001-08-23 Thread ERISEN, Mehmet Kamil
Hello, Chris, with all due respect, DESC is a reserved word for SQL. is english ORDER BY ID DESC meand sort by id in descending order. Martin, your SQL seems to be fine. Are you sure that you are connected to your database. I have run the following SQL against my database SELECT * FROM users

Re: [PHP] The future of PHP

2001-08-23 Thread Thomas Deliduka
On 8/23/2001 11:59 AM this was written: > On its Solaris Developer Connection site, Sun posed the question, "What > language do you use to develop Web-based client applications?" The responses > went like this: Perl, 41.3 percent; JSP, 19.9 percent; C/C++, 14.2 percent; > Linux script language PH

RE: [PHP] The future of PHP

2001-08-23 Thread Dave
>On its Solaris Developer Connection site, Sun posed the question, "What >language do you use to develop Web-based client applications?" The responses >went like this: Perl, 41.3 percent; JSP, 19.9 percent; C/C++, 14.2 percent; >Linux script language PHP, 11.2 percent; Microsoft Active Server Page

RE: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Jon Haworth
> I was looking thru the mysql functions, and there doesn't seem to be one > that gives you the amount of time a query takes. Is there anyway to get > this information (since it gives it to you when you type queries > directly into the mysql shell client)? A script of mine is starting to > g

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Nathan Cook
IMO, you are better off printing microtime [http://www.php.net/manual/en/function.microtime.php] before and after the query, and after you loop through it. This will give you a better idea of where the hangups may be. You may also want to sprinkle mircotimes throughout your code to get a good id

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Andrey Hristov
Use microtime before and after the query. $this->starttime=explode(' ',microtime()); // query() $this->endtime=explode(' ',microtime()); $this->starttime=$this->starttime[1]+$this->starttime[0]; $this->endtime=$this->endtime[1]+$this->endtime[0]; $this->parse_time=$this->endtime-$this->

[PHP] PHP object orientation with "Application Frameworks" or "Foundation Class Libraries"

2001-08-23 Thread Orr, Steve
PHP Wizzards, I'm a PHP newbie but I think I'm falling in love... or at least becoming infatuated with PHP. I'm contemplating a significant PHP development effort on a toolset for Oracle DBA's and I want to architect wisely. Based on prior object oriented development experience with PowerBuilde

Re: [PHP] Re: conf file access on host server

2001-08-23 Thread Andrey Hristov
Many conf variables can be setup at runtime. Just include(require) in every script setup.php Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Diane Mulberry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 7:12 PM Subject:

Re: [PHP] Script timeout

2001-08-23 Thread Julian Wood
Well just to follow up, Apache was the culprit. There is an Apache timeout directive that was set to 300 s that I somehow missed on my first glance. The things that timeout, as far as I know, are PHP, Apache, and several commands within PHP (such as fsockopen()). The Apache directive is cal

Re: [PHP] constant arrays or something like #define in c

2001-08-23 Thread Andrey Hristov
Ok, the solution is : in script1.php define("ARRAY_NAME","array1"); in script2.php define("ARRAY_NAME","array2"); in template.php: ${ARRAY_NAME}['some_index'] I didn't tested this but think that it will work. If not post a message to think for other way. Andrey Hristov IcyGEN Corporation http://

Re: [PHP] File upload problem

2001-08-23 Thread Sheridan Saint-Michel
Change To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:31 AM Subject: [PHP] File upload problem > Hello there, > > I am trying to create a form for uploading files to the local intranet. > Therefore I created a form for uploading files as mentioned in the PHP > manual. After submittin

[PHP] Re: mail function

2001-08-23 Thread Gabe da Silveira
There are not a lot of guarantees. A big part of the problem is that you can't get instant feedback. Your mail server may queue the message and not even send it right away, or it could get sent, and your mail server doesn't find out for several minutes while the message goes out on the 'net

[PHP] Getting MySQL Query Times.

2001-08-23 Thread Gabe da Silveira
I was looking thru the mysql functions, and there doesn't seem to be one that gives you the amount of time a query takes. Is there anyway to get this information (since it gives it to you when you type queries directly into the mysql shell client)? A script of mine is starting to get fairly

[PHP] Re: conf file access on host server

2001-08-23 Thread Diane Mulberry
can no one help me? "Diane Mulberry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > i'm a relative new comer to php and was wondering if someone could give me > some advice on hosting. specifically, access to my own conf file, and > whether this is entir

[PHP] parse_url and cgi?

2001-08-23 Thread Jaxon
can someone answer the question - does parse_url in fact NOT work when using PHP as a cgi? i'm unable to make it work, and getting different answers from my isp, etc. cheers, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

RE: [PHP] The future of PHP

2001-08-23 Thread scott [gts]
:-) for the type of sites that i develop (non-mission-critical, non-financial), i find PHP's simplicity and elegance more than offsets a lack of things like strong typing and a harshly BDSM compiler (and whatever else Java/JSP has that PHP doesn't) for most websites out there, Java is probably o

[PHP] Re: strange error

2001-08-23 Thread BRACK
if you have structure like then you need to insert "}" before " or if you use syntax you have to insert "endif;" If you think you did it but still have an error, try to count your "if" statements and "endif;" maybe something is missing. Youri -- PHP General Mailing List (http://www.php

[PHP] Re: 2 NEWBIE QUESTIONS

2001-08-23 Thread Yura
On 23 Aug 2001, at 0:16, Georgie wrote: > 1) Is there any PHP command that'll convert a MySQL database timestamp into > a format that humans can read?!! For example, I want to change > "20010822001245" into "00:12.45 on the 22-08-2001"? I believe all previous replies on this qwestion were good f

RE: [PHP] The future of PHP

2001-08-23 Thread Jeff Pearson
Sorry, Should have given specific information. The original article I read was from InfoWorld. It can be found at: http://www.infoworld.com/articles/op/xml/01/07/09/010709opcringely.xml Following is the excerpt from it: Place in the Sun Meanwhile the light finally dawned on archrival Sun Mi

Re: [PHP] The future of PHP

2001-08-23 Thread Sean C. McCarthy
Hi, Well you are not well informed then. Java is the most popular solution to big web sites with the need to have something fault tolerant and stable. If you look a lot of banks have not JSP or servlets but EJB which are transactional, persistant through connections, multithreaded and have all th

  1   2   >