RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] Is there any way to log the $_POST values passed to the PHP scripts in Apache's access log? [/snip] fopen the log file, write the $_POST variables and any other data you would like to record along with a newline ("\n"). Make sure to fclose the log file. HTH! -- PHP General Mailing List (

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] But that is my point - and I think we are going in circles now. It just doesn't do that. It returns 4 (as per your example). :\ [/snip] Then something else is wrong Mikevery, very wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] I wanted to know if Apache has a feature that could log the $_POST values. [/snip] I don't think so, you would probably have to consult an Apache list or the Apache manual. [snip] By the way, fopening the log file and write the $_POST variables won't work on a server with high activity bec

RE: [PHP] Weird Problem

2003-07-29 Thread Jay Blanchard
[snip] $sql = "SELECT setting from settings where name='display_rows'"; include("connect.inc.php"); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $path; [/snip] Because $result is not being gotten properly... $sql = "SE

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] I don't think I would have a problem with a separate log because I write into the log file all the datas I want(URL, Referer, etc, and $_POST) at once so the log would be OK. The difference from writing into Apache's log is that Apaches writes the URL, Referer, etc and then I write the $

RE: [PHP] Please Help

2003-07-30 Thread Jay Blanchard
[snip] I have two files one is letter.php and another is simple.php in simple.php i assign a value to a php variable , after assigning, i call letter.php in the same file. [/snip] http://www.php.net/include HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] has anyone seen this done?

2003-07-30 Thread Jay Blanchard
[snip] i know this is possible with php, but have been wracking my brain trying to figure this out, in any case, i am just a beginning php programmer, but what i want to do is...when a link is clicked, i need to be able to pull some text from a static html page and dynamically create a new window i

RE: [PHP] php-cli - Controlling external programs

2003-07-31 Thread Jay Blanchard
[snip] Bah, not the answer I was looking for...I really wanted to use PHP and I have most of what I wanted accomplished. Thanks for the tip, I will investigate. [/snip] http://us3.php.net/features.commandline If you use -a for your command line script the script will run interactively example:

RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Jay Blanchard
[snip] Might want to file this link, next time somebody asks about PHP vs. ASP http://www.wowwebdesigns.com/wowbb/forum12/149.html [/snip] And the thing is that you cannot compare ASP to PHP. ASP is a platform, PHP is a language. This arg has been going on for a couple of years. ASP (Active Ser

RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip] I'm a beginner in php. I want to manipulate xml file with Php (add some element, modify some element, delete some element and consult some element) but when I try domxml_open_file I obtain system error : Call to undefined function: domxml_open_file() I heard about use --with-do

RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip] so I can parse and read xml file but I can't add or modify nothing in my xml file and even not create xml file ! [/snip] Uh, XML files are text files which you can modify with any of the text handling functions in PHP. What exactly are you trying to accomplish? -- PHP General Mailing List

RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Jay Blanchard
[snip] I'm wondering if there is an IIS extention for allow PHP in ASP. Wouldn't that be a kick in the ass. (I'm not talking about PHP for IIS, either) [/snip] But why go to the extra-effort? Just to save yourself the installation of PHP on the IIS box? -- PHP General Mailing List (http://

RE: [PHP] Ticketmaster.com and Word Images

2003-07-31 Thread Jay Blanchard
[snip] Does anyone know how sites like Ticketmaster.com creates the "Word Image" used for ticket purchase verification? Do they generate the image on-the-fly from a dictionary, or do the images pre-exist and they are pulled from a DB along with the word. [/snip] The word can be pulled from the D

RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Jay Blanchard
[snip] Yes I agree it would be funny... In my opinion there is no need for the ASP platform... But then again, who am I for having an educated opinion, I let a hacker put a shell script on my site NOW THAT'S FUNNY! [/snip] Proving once again that 'funny' is relative and someone will develop a

RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip] 1 Title 1 Description 1

RE: Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Jay Blanchard
[snip] what does trolling mean? Never heard of it before. [/snip] Ever been fishing? It means fishing. It also refers to the nasty troll that lived under the bridge in the classic Grimm's fairy tale. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Jay Paulson
I know this is a little off topic but I really need some help with this. The company I work for just got bought out by a larger company. The larger company uses .NET from Micro$oft. I of course use all open source stuff for our web sites and now the new company wants to come in and pretty muc

RE: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Jay Blanchard
[snip] I've basically got a month to do research and get my guns loaded for what I'm sure will be a heated debate about the Open Source Solution vs the Micro$oft .NET solution. So what I am looking for is personal and professional opinions about both solutions (specifically PHP etc), any and all l

RE: [PHP] load the PHP script last on the page

2003-07-31 Thread Jay Blanchard
[snip] I have a page with a particular PHP section that takes quite a time to load. Is there a way I can delay that script to run after everything else has loaded. I suppose it may need to use Javascript [/snip] For any insight to take place we would need to see the code. -- PHP General Mai

RE: [PHP] include() as last thing to execute on page

2003-07-31 Thread Jay Blanchard
[snip] I have a PHP included page that takes quite a time to load. I would like to have the entire main page loaded and displayed and then the final include page executed. Is this possible? Thanks for your help - appreciate it. [/snip] Why do people insist on sending two e-mails to the list with

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '" . '"' . "' "; {/snip] try ... $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '"' "; The period concats were not needed.

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] Sorry...Because of the double quote near the ENCLOSED BY .. It delivers a PARSE ERROR $query = "LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '"' "; [/snip] Are the fields enclosed by a quote? If not... $query = "LOAD DATA LOCAL INFILE '/h

RE: [PHP] Escaping nasty quotes

2003-07-31 Thread Jay Blanchard
[snip] Unfortunately, they are indeed enclosed by double quotes [/snip] Can you show us a snippet of data.txt? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form Retain Info on Back?

2003-07-31 Thread Jay Blanchard
[snip] Is there a simple way of retaining this information so the user doesn't has to retype all the information in? [/snip] The answer is in the archives young Grasshopper. Are you saving the data to a database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] Search Engine

2003-08-01 Thread Jay Blanchard
[snip] Does anyone know any free search engine for web application [/snip] Google for "web application"? It's free. Oh, I get it! Google for "free search engine for web application". HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Frames and variables

2003-08-01 Thread Jay Blanchard
[snip] I have a site that uses frames. On one frame i have buttons to select the language. When user hits the button to select the language it is supposed to change in both frames. Any idea how to do this? [/snip] Please read http://www.w3.org/TR/html4/present/frames.html -- PHP General Mailing

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] John Manko on Thursday, July 31, 2003 11:26 PM said: > umm... ok. > > www.google.com > www.php.net > > that should get you started. It's always funny how people think these kinds of posts are helpful. [/snip] They're not? -- PHP General Mailing List (

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] > It's always funny how people think these kinds of posts are helpful. > [/snip] > > They're not? Yes, they are not. [/snip] Hmmm, let's see. The post had no clarity in the subject line, the post showed no sense of "I tried to look it up", the post was vague, shall I go on? Folks on the l

RE: [PHP] Please Help

2003-08-01 Thread Jay Blanchard
[snip] 1. Which do you think is most helpful and benefits the list the most? [/snip] Give a man a program, frustrate him for a day, teach a man to program, frustrate him for a lifetime. IOW send a person to start learning. The question was so vague that the answers given were appropriate. [snip]

RE: [PHP] using mail()

2003-08-01 Thread Jay Blanchard
[snip] If I am using this code: mail("[EMAIL PROTECTED]", "test", "testbody"); and want to add a From: line, how do I do it? Also, is this an excepted way of sending mail from a web page? [/snip] Read http://us4.php.net/manual/en/function.mail.php Example 2 (How's that Chris?) And yes, it is a

RE: [PHP] Globals

2003-08-01 Thread Jay Blanchard
[snip] $GLOBALS [/snip] >From http://us2.php.net/language.variables.scope "The $GLOBALS array is an associative array with the name of the global variable being the key and the contents of that variable being the value of the array element. Notice how $GLOBALS exists in any scope, this is because

RE: [PHP] Globals

2003-08-01 Thread Jay Blanchard
[snip] just to let you know, the $GLOBALS[] superglobals was around long before php 4.1.0 // Superglobals are available in any scope and do // not require 'global'. Superglobals are available // as of PHP 4.1.0 [/snip] This is the quote in the online manual -- PHP General Mailing List (http://

RE: [PHP] Relevant PHP market research

2003-08-04 Thread Jay Blanchard
[snip] I would appreciate any figures on the web development market - because this is the market for most of us - and knowing the market could only be a good thing. I think we should consider this key figures: [/snip] {IMHO} I understand why your focus would be on the web development market, but I

[PHP] Functions in Safe Mode

2003-08-04 Thread Jay Fitzgerald
is the wrong way? ==== Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified Professional Web Developer (CPWDV-A) - Certified E-Commerce Manager (CECM-A) - Certifie

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] I tried doing as you said and it returned 0. Is there another way to add up the column? [/snip] $sql = "SELECT foo FROM table WHERE you have conditions "; if(!($result = mysql_query($sql, $connection))){ print("MySQL reports: " . mysql_error() . "\n"); exit(); } while($row = mysql_f

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE End- What I want to do from here is add up all the 'paid' figures. [/snip] while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; $total = $total + $paid; }

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] $sql_2 = "SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \"$id\" "; [/snip] Ben I would also check the query with echo"$sql_2 \n"; You may be surprised that what you get back is not what you intended. -- PHP General Mailing List (http://www.php.net/) To

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] It still returns '0'. I think we are missing something. Any other ideas? Anyone else have any ideas? [/snip] echo the SELECT statement to make sure that $id is worth something -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] CODE Begin- $sql_2 = "SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \"$id\" "; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_error()); while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE En

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] I tried the code again and still returns a '0'. It looks like the while() is only looping one record at a time. It does looks like it is add all the records. Do you or anyone have any other suggestions? [/snip] D'oh! *slaps forehead*! It IS getting only one record! Dang! SELECT SUM(foo

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. [/snip] Are you looping through the id's somehow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] Let me try and explain a little better and easier. What I am trying to do is take a list of values and add them to get. I am getting the values from a database query. Assuming that I had the following: val_1 100.00 val_2 150.00 val_3 200.00 val_4 250.00 val_5 100.00

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] Unsure. How would I do that? [/snip] Ben I think that we have a communications failure. Let's start over...you wish to total a database column using php, correct? Everything that you have been shown so far will do that. Is it possible that there are no query results? If not, then we are do

[PHP] Functions in Safe Mode?

2003-08-04 Thread Jay Fitzgerald
d 65534 in /home/***/public_html/news.php on line 10 0 The Question: Is there a way to get the file size of files if safe mode is on? I need to do an IF/ELSE statement so that if the file size is less than a certain size, then it does not display the text contained in that file. Am I going about this the w

RE: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Jay Blanchard
[snip] However, why not just SUM all the rows in the table in the query if you just want a total? $sql_2 = "SELECT SUM(partpaidamount) as partpaid FROM $tb_name"; [/snip] That is what he is doing. The SELECT SUM will only return ONE row! I am not sure that the problem is being explained clearly t

RE: [PHP] dev style guide

2003-08-06 Thread Jay Blanchard
[snip] They use the One True Brace Style, which is encouraging: function fooFunction($arg1, $arg2 = '') { if (condition) { statement; } return $val; } [/snip] At the risk of starting a flame/religious/holy war I find the

RE: [PHP] dev style guide

2003-08-06 Thread Jay Blanchard
[snip] Just a remark but isn't it pointless to use Hungariannotation in a language that is by default typeless??? [/snip] We use it becuase we have a group of programmers, so the notation makes it easier for one in the group to understand the intention of another in the group. The notation also h

RE: [PHP] Stop neurotic posting

2003-08-06 Thread Jay Blanchard
[snip] Andu's right. I've left several lists in the past, not because of people listing questions where they should have read the manual first, but because I couldn't stand the sad b**ds who get their kicks by belittling people with less knowledge but more manners than themselves. [/snip] n

RE: [PHP] mail

2003-08-07 Thread Jay Blanchard
[snip] * Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > > GIS for "send attachments with PHP mail()" GIS? Google Search? [/snip] Information :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stop neurotic posting

2003-08-08 Thread Jay Blanchard
[snip] This is a very busy list, over 100 message in a quiet day and most people are helpful and decent, don't mind reading and learning. Unfortunately there are some who mostly post stuff like 'read the manual' and other shit like that. Stuffing e-mailboxes with such garbage day after day doesn

RE: [PHP] PDF Thumbnail with PHP?

2003-08-08 Thread Jay Blanchard
[snip] Does anyone know if there is a way to generate a thumbnail of the 1st page of a PDF document using PHP. I have an application that archives PDF files, beeing able to generate small preview images of the documents would be really cool :) [/snip] This may be just what you are looking for htt

RE: [PHP] FDF support in RedHat (make error)

2003-08-08 Thread Jay Blanchard
[snip] For me this is a very intelligent question (and advanced too) because I have no idea of linux or compilers. (or as a metter of fact, what is a .h file). [/snip] You'll note that the library file began with "lib". The files are C or C++ files witha .h being a header file for the compiler.

RE: [PHP] magical file writing truncation

2003-08-09 Thread Jay Blanchard
[snip] i really can't get my head around this one at all. could it possibly be a windows issue??? i know windows can be an arse in dealing with files, but i can't see how it could pick up on a variable inside PHP and truncate it? [/snip] I just have one more thought because you brought up Windows.

RE: [PHP] FDF support in RedHat

2003-08-09 Thread Jay Blanchard
[snip] I'm ready for step 2. =) [/snip] './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--included

RE: [PHP] com obj from php

2003-08-09 Thread Jay Blanchard
[snip] Does anyone know if ti is possible or not to create a com object from php?? [/snip] Please refer to the manual at http://www.php.net/manual/en/faq.com.php for a start. Have a pleasant and magical day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] magical file writing truncation

2003-08-09 Thread Jay Blanchard
[snip] okay, the first few lines of raw text are as follows... it's a chat log btw... Session Start (Yahoo! - fatcubanskate:the_lady_in_waiting1982): Thu Jul 10 21:23:42 2003 [21:23] the_lady_in_waiting1982: hey sexy!!! [21:24] fatcubanskate: hey sugar [21:24] fatcubanskate: how\'s thing? [21:25]

RE: [PHP] Is PHP cable of handling ASCII characters???

2003-08-09 Thread Jay Blanchard
[snip] Yea, receiving the data in a serial stream through cURL from someplace into an array() by using exec() function. [/snip] I would suggest receiving the data intact, explode into an array, and then go from there. That eliminates any serialization issue. -- PHP General Mailing List (http://ww

RE: [PHP] Max script size

2003-08-09 Thread Jay Blanchard
[snip] I have a 6MB PHP script that just won't exe on the live server. It works on the local one. Any ideas on a setting that may limit the script. It is not timing out, it only takes about 3 sec to exe. [/snip] I'll take a SWAG at itare the PHP versions the same? Do the ini files have the s

RE: [PHP] Stop neurotic posting

2003-08-09 Thread Jay Blanchard
[snip] I love that I can shoot off a question while at work and get an answer quick. It's too bad that my novice questions annoy people, but I'm just learning, and that's WHY I joined this list. It's a resource, just like the manual. [/snip] Generally you present a well thought out question due

RE: [PHP] Passing Values between Pages : $_SESSION / $_GET

2003-08-09 Thread Jay Blanchard
[snip] My question here is " How do I get the name of the company that was passed to this script as a $_GET Parameter. I cannot use the $company because it is out of scope. [/snip] How about $_GET['company'] ? Or am I missing something? Have a pleasant day. -- PHP General Mailing List (http://

RE: [PHP] undefined function imagecreate()

2003-08-10 Thread Jay Blanchard
[snip] What am I looking for in the output of phpinfo? Must I alter extensions in php.ini? Is this gd librabry not inlcuded in the originial install of php? [/snip] You are looking to see soemthing like this in the Configure Command section Configure Command './configure' '--with-apxs=/usr/local

RE: [PHP] Max script size

2003-08-10 Thread Jay Blanchard
[snip] URL's correct. If I cut the script in half it runs fine. FYI The scrpit in full of 4000 or so mysql SQL statements. [/snip] It is not a PHP issue then. It is probably an issue with Apache (look in httpd.conf or perhaps a local .htaccess). 4000 MySQL statements? WOW. Why? Is it necessary t

RE: [PHP] Hitler and Recent Threads

2003-08-11 Thread Jay Blanchard
[snip] I pity the poor sap who just joined the list and instead of finding php topics discussed finds quotes,jokes,godwins laws, quirks laws,name calling, referneces to Hitler and other topics... Can we end this now please? [/snip] This from a guy who ends his posts with [snip] We will slaughter

RE: [PHP] FDF support in RedHat

2003-08-11 Thread Jay Blanchard
[snip] Thanks for your help. I have only one question for you... Where is the "PHP directory (where the php library files are)" ... [/snip] Well, unfortunately I cannot answer that for sure, but it is usually something like /usr/local/php-4.x.x or something like that Good luck and may all your

RE: [PHP] magical file writing truncation

2003-08-11 Thread Jay Blanchard
[snip] OK, put stripslashes back in and show the echo'd out put again. - $text = urlencode(stripslashes(nl2br($text))); print $text; [/snip] I didn't see anything right off of the bat. You may want to output the text both ways and then compare them using http://us3.php.net/manua

RE: [PHP] PHP vs ASP.NET "formal opinions" request

2003-08-11 Thread Jay Blanchard
[snip] I'm not so sure it's an entirely horrible idea for a university to focus on one area over another. I went to art school - so I'm sure I'll be burned at the stake for having comments :P But a great deal of my friends who took comp sci or comp eng in uni are greatly unemployed - why you ask

[PHP] Freelance code optimizations

2003-08-11 Thread Jay Fitzgerald
learn ====== Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified Professional Web Developer (CPWDV-A) - Certified E-Commerce Manager (CECM-A) - Certified Small Business Web Consultant (CWCSB-A)

RE: [PHP] FDF support in RedHat

2003-08-12 Thread Jay Blanchard
[snip] the manual is so far away [/snip] The manual is right here, http://us3.php.net/fdf. The third major heading on the page is installation. Good luck and have a pleasant day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] Yes. PHP versions differnt. Ini's Diffiernt, don't want to to match those. I assmue the reason is because of a differnt ini setting...I just can't find it. [/snip] How identical are the servers themselves? We may need to see some code (PLEASE do not post the entire thing here, just the fir

RE: [PHP] detecting referer

2003-08-14 Thread Jay Blanchard
[snip] What is the best way, using php, to detect information about the referrer to a page. Is this possible/difficult using PHP? [/snip] Please take the time to peruse the manual at http://www.php.net/manual/en/reserved.variables.php and look at $_SERVER variables. Have a pleasant and productiv

RE: [PHP] setting function variables

2003-08-14 Thread Jay Blanchard
[snip] I am trying to specify a single php file to contain all the variables and I just call this file where necessary. What I am running into is that I want to do this for all the built in functions (i.e. mssql_query) as well. I've tried numerous attempts but can't get it to operate without wanti

RE: [PHP] for loop and FTP

2003-08-14 Thread Jay Blanchard
[snip] I need to grab five pages from a web site every day and then FTP those pages to another site. I was wondering if I should grab all five pages (and store them somewhere) and then FTP all five. [/snip] This sounds like the more prudent move as it is more efficient. You can also confirm that

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] Yes. PHP versions differnt. Ini's Diffiernt, don't want to to match those. I assmue the reason is because of a differnt ini setting...I just can't find it. [/snip] And you say this file is 6MB? Have you set any error reporting on the file at all? -- PHP General Mailing List (http://www.ph

RE: [PHP] WYSIWYG editor for PHP

2003-08-14 Thread Jay Blanchard
[snip] I need a WYSIWYG editor for PHP. That is all. Can any1 advice me one( or more :-) )? [/snip] Dreamweaver? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Building an XML Parser Class

2003-08-14 Thread Jay Blanchard
[snip] xml_set_element_handler($this->xml_parser, '$this->startElement', "$this->endElement"); xml_set_character_data_handler($this->xml_parser, "$this->valueHandler"); I get an error message: Warning: xml_parse(): Unable to call handler $this->startElement() in c:\program files\apache group\php\

RE: [PHP] Sum a column of values from a MySQL query

2003-08-14 Thread Jay Blanchard
[snip] 1) The code returns the sum of a partially paid invoice. The individual invoice is 'partpaid'. WORKS...NO PROBLEM 2) The while() then return a list of partially paid invoices which is $invoicepartpaid. WORKS..NO PROBLEM 3) I then want to add the list of partially paid invoices ($invoicepar

RE: [PHP] mail

2003-08-14 Thread Jay Blanchard
[snip] Hi! Kann anyone tell me how to send attachments with the mail function? [/snip] +2 this week and some wonder why we say RTFM, STFW, or STFA GIS for "send attachments with PHP mail()"

[PHP] Zend Studio 2.6 CVS

2003-08-14 Thread Jay Blanchard
I know that this is somewhat off-topic, but has anyone set up the Zend CVS for local use within a small group of developers? The manual is very terse and information in the Zend forums is sparse as well. Does the executable for the CVS need to live on the development server? If so, where? We have t

RE: [PHP] magical file writing truncation

2003-08-14 Thread Jay Blanchard
[snip] $newFile = "xml/".$type."/".$now.".xml"; while(file_exists($newFile)) $newFile = "xml/".$type."/".$now++.".xml"; $text = $_POST['text']; $text = urlencode(stripslashes(nl2br($text))); [/snip] At this point (for testing putposes) I would echo "$text"; and start looking for clues.

RE: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Jay Blanchard
[snip] Is php Interpreted language or Compiled Language like C or C++. [/snip] PHP is an interpreted language in most applications. However, the PHP-GTK is available and there are other options for compiling PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] Hitler and Recent Threads

2003-08-14 Thread Jay Blanchard
our foot in your mouth and have people think you a fool, rather than remove your foot and all doubt along with it." :-) Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Reading remote, script-generated files

2003-08-14 Thread Jay Blanchard
[snip] I'm attempting to read a remote file and parse it for data. The problem I've having is that the file seems to be generated by Perl (http://alert.dot.pima.gov/scripts/1brpssd.pl) and when I read it the script-generated portion is not available. When I view the page with a browser it is displa

RE: [PHP] undefined function imagecreate()

2003-08-14 Thread Jay Blanchard
[snip] Browser returns: Fatal error: Call to undefined function: imagecreate() in c:\inetpub\wwwroot\draw4.php on line 4 Why is imagcreate() not understoodMarco [/snip] Do you have the GD library installed? Check by running a page with phpinfo(); in it -- PHP General Mailing List (http://www.p

RE: [PHP] Formatted text from mySQL DB

2003-08-14 Thread Jay Blanchard
[snip] Ah, this question again. Has it been four days already? [/snip] ROFLMFAO! I snorted coffee through my nose!!! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Jay Blanchard
[snip] Then, I issued a "make" command and unfortunately I got a new error: "/usr/include/ucd-snmp/asn1.h:7:2 Please update your headers or configuer using --enable-ucd-snmp-compatibility" Then all hell break lose, got tons of errors (ver like this one) and exit the make with error 1. [/snip]

RE: [PHP] PHP - MySQL Query...

2003-08-14 Thread Jay Blanchard
[snip] This is not true, the resource link identifier is optional! If unspecified, the last opened link is used. My suggestion is to check the results of mysql_error() for more information on the failed query. [/snip] You are right, of course...my sleepy brain just glanced at the code and fired of

RE: [PHP] Downloding files once

2003-08-14 Thread Jay Blanchard
[snip] I'm trying to allow users to download files from my servers. Files can be hundreds of MB in size and sometimes even a few GB. This is a closed section of the site and i would like to allow only members to be able to DL the files. [/snip] Since it is open to members only couldn't you requir

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] The scrpit in full of 4000 or so mysql SQL statements. [/snip] I am sorry Jeff, we have begun to wonder very seriously what you would be doing with that many SQL statements in a single script. Sounds rather convoluted. Would you enlighten us? Thanks! -- PHP General Mailing List (http://www

RE: [PHP] XMl Parsing within PHP

2003-08-14 Thread Jay Blanchard
[snip] xml_set_element_handler($this->xml_parser, '$this->startElement', "$this->endElement"); xml_set_character_data_handler($this->xml_parser, "$this->valueHandler"); I get an error message: Warning: xml_parse(): Unable to call handler $thiss->startElement() in c:\program files\apache group\php

RE: [PHP] magical file writing truncation

2003-08-14 Thread Jay Blanchard
[snip] > > [snip] > > $newFile = "xml/".$type."/".$now.".xml"; > > while(file_exists($newFile)) > >$newFile = "xml/".$type."/".$now++.".xml"; > > $text = $_POST['text']; > > $text = urlencode(stripslashes(nl2br($text))); > > [/snip] > > ack, sorry to double post... it appears that it

RE: [PHP] Sum a column of values from a MySQL query

2003-08-14 Thread Jay Blanchard
[snip] Sorry, Jay, but that's a horrible method. You could just run one query with a GROUP BY clause to get the sum for each invoiceID, instead of running multiple queries like you've mentioned... $query = "SELECT invoiceid, SUM(partpaidamount) AS partpaid FROM $tb_name GROUP BY

RE: [PHP] FDF support in RedHat

2003-08-14 Thread Jay Blanchard
[snip] I have 4 versions: FDFTK.H, fdftk.h, FdfTk.h, Fdftk.h. Same problem. [/snip] Change the configure line to --with-fdftk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is PHP cable of handling ASCII characters???

2003-08-14 Thread Jay Blanchard
[snip] Is PHP cable of handling the ASCII characters? Back then, I had no problem with it when there are 'a', 'b', 'c' characters as well as 'LF', 'CR', etc. But when there is a 'NUL' character, it tripped up PHP so I am wondering if ASCII characters is fully supported. [/snip] How is the NU

RE: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Jay Blanchard
[snip] I'll tell you what really forced me to go in the matter of interpreted or Compiled language. In the heart of PHP 4+ is Zend Engine which compiles (often says) the php code into some intermediate code called opcode and then Zend executor executes them converting these opcodes to machine lan

RE: [PHP] searching date

2003-08-14 Thread Jay Blanchard
[snip] The user have to choose 2 date ($date_begin & $date_last) and i want to know howcan i make to find field in mysql where field included between ($date_begin & $date_last) "SELECT * FROM `news` WHERE `date` included in ($date_begin & $date_last)" [/snip] This is better suited

RE: [PHP] size of submitted textarea field in bytes

2003-08-14 Thread Jay Blanchard
[snip] You receive a string, so you need to find a function that will return the size of a string. I bet you will find the function in string section of the manual. [/snip] A good starting place for this is string length in the manual at http://www.php.net/strlen Have a productive and positive

RE: [PHP] PHP - MySQL Query...

2003-08-14 Thread Jay Blanchard
[snip] $dbh = mysql_connect("localhost", "login", "password") or die('cannot connect to the database because: ' . mysql_error()); mysql_select_db("database"); $query = 'SELECT * FROM cities'; $result = mysql_query($query); while ($row = mysql_fetch_row($result)) { echo (' '

RE: [PHP] saving images into pdf file using PDFlib

2003-08-14 Thread Jay Blanchard
[snip] im saving image into pdf with: $image = pdf_load_image($p, 'jpeg', $picture_path, ""); pdf_fit_image($p, $image, $x_im, $y_im, ""); pdf_close_image($p, $image); image is 150px x 100px but in genereted pdf file it looks much smaller. im viewing mentioned pdf file with 100% view ratio. i'v

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] Let's be clear -- a DNS error has nothing to do with the script (whether it is there or not). In fact it has nothing to do with your webserver at all. [/snip] Well said Jason, I rushed in too quickly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] Sorry, in terms of PHP error no. I get a page cannot be displayed/DNS error. It happens instantly...in fact, not 1 line of script exe. [/snip] So, is the URL path to the script correct? What is the server path to the file? Let's just double check. A DNS error has nothing to do with the scr

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