Re: [PHP] array looping

2003-08-14 Thread Micah Montoy
No, one long file. I can separate it out any way though. Any ideas? "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Micah Montoy on Tuesday, August 12, 2003 3:35 PM said: > I have this text file that I pull in and I need to transvers

[PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Binay Agarwal
Hi everybody One basic question but still couldn't find the answer. Is php Interpreted language or Compiled Language like C or C++. Thanks in advance Binay

Re: [PHP] Quick question - Warnings

2003-08-14 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > I know how to suppress warnings in my file locally but i want to suppress > warnings and notices in one whole directory using a .htaccess, i cant seem > to find my old file that does that, can someone refresh my memory please? > > This is how i do it in my local

RE: [PHP] POST/GET - if there is a dot in the name it's changes to "_"

2003-08-14 Thread Ford, Mike [LSS]
On 12 August 2003 18:29, Arnau Rebassa wrote: > Hi all, > I'm having the same problem as the bug report > http://bugs.php.net/bug.php?id=7987. They say that's not a bug it's a > feature... Anybody knows where I can find which characters > are changed and > by which character? The bug you quoted

[PHP] how to use array_map() with a class callback function?

2003-08-14 Thread Jean-Christian IMbeault
I'd like to use array map with the callback function being a static function in a class. How can I do that? I have tried: class Maker { function sGetNameId($a) { return 1; } } array_map("Maker::sGetNameId", array("1") ) But I get this error: array_map(): The first argument, 'Maker::sGe

[PHP] Forms

2003-08-14 Thread Kris Reid
I'm having trouble explaining this so please bare with me. Say there is a form hosted on server A on a web page Something simple like I have the data on server B in a mysql database that needs to be inserted via that form. I have written a script that will grab one record and sub

RE: [PHP] Freelance code optimizations

2003-08-14 Thread Robert Cummings
On Mon, 2003-08-11 at 13:29, Chris W. Parker wrote: > > * while loop > > $ctr = 0; > $val = 0; > while($ctr<10) > { > $val++; > $ctr++; > } > > ** for loop > > $val = 0; > for($ctr=0;$ctr<10;$ctr++) > { > $val++; > } > I get the following results (very consistently +

Re: [PHP] how do I spoof a get request

2003-08-14 Thread Analysis & Solutions
Hey Dan: On Tue, Aug 12, 2003 at 08:13:32PM -0400, Dan Anderson wrote: > I have noticed that sometimes I cannot fopen($web_address,'r') or use > any similar files if the web address contains a form get in it. (i.e. > ends in a ?var1=xxx&var2=xxx...). It should work. You said sometimes. What ar

[PHP] Semaphores

2003-08-14 Thread Cristiano Duarte
I know there is no support for semaphores in Windows. But does the Windows and Mac implement semaphores ? If they don't what is used instead ? Can PHP use this functionality on these OS like semaphores on *NIX ? Cristiano Duarte -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] php conditional loop question

2003-08-14 Thread Marek Kilimajer
I think you need to set the connection to nonblocking mode. Use bool stream_set_blocking ( resource stream, int mode) Then if no data is available for a longer time (it's up to you), you can break out of the loop and do something else. Randy L Johnson Jr wrote: I am running php as a clie

Re: [PHP] php conditional loop question

2003-08-14 Thread Curt Zirzow
* Thus wrote Randy L Johnson Jr ([EMAIL PROTECTED]): > > I have the program downloading the data and all that so I don't need help > with that. I just want to be able to reun the function if the data stops > or in more general a certain condition is met. I'm not entirely sure how you are readin

[PHP] how do I spoof a get request

2003-08-14 Thread Dan Anderson
I have noticed that sometimes I cannot fopen($web_address,'r') or use any similar files if the web address contains a form get in it. (i.e. ends in a ?var1=xxx&var2=xxx...). I was wondering if there is any way to spoof a get request to a web address? I looked at fsockopen and think I need to loo

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

2003-08-14 Thread Cesar Cordovez
Exactly! I agree with you 100%. That's why, even if you RTFM, google your question and search the archives, you need to ask some (very basic) questions to the list. Questions like: If the manual says fdftk.h is a header file, why it should be in the includes directory as opposed to the head

Re: [PHP] what is %s %d

2003-08-14 Thread Jackson Miller
They are codes for date formatting. Specifically: %s represents seconds with leading zeros. %d represents day of the month with leading zeros so date("%s %d",mktime()); would equal something like 59 08 you can find all the date codes at http://php.net/date -Jackson P.S. I hope you at least tri

Re: [PHP] array looping

2003-08-14 Thread Liam Gibbs
> I get all the content of file, so everything is in array 0. I need to > somehow break up the array by the comma. Wouldn't it be $file_contents = explode(",", $file_contents[0]); as in you've forgotten the array element? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Php - union

2003-08-14 Thread Ben
You could try... SELECT 'Count1', COUNT(*) FROM table1 WHERE cno = 3 UNION SELECT 'Count2', COUNT(*) FROM table2 WHERE cno = 3 UNION etc. At least you could fill an array to see what was missing. "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > In my php script i a

[PHP] Reading remote, script-generated files

2003-08-14 Thread Matt Daleo
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 displayed jus

Re: [PHP] Adding days to a date

2003-08-14 Thread John Manko
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=php+add+days+date&btnG=Google+Search Donpro wrote: I have a piece of code like so: $today =- getdate(); I am looking for a function that will add a variable number of days and return a valid date, i.e., the array elements for "mday", "m

[PHP] imap slow

2003-08-14 Thread andu
Why are imap(pop3) functions so slow? I am working on a webmail and it takes foreer to get 12 headers. I also looked at other php webmails and they are just as bad. I tested a pop3 function library I found on the net and it retrievs all 12 messages in no time. -- Regards, Andu Novac -- PHP Gene

[PHP] File ordering

2003-08-14 Thread Katherine Barry
I am doing a 'readdir' on a subdirectory. I did my file naming counting on it ordering based on numbering... But when I do the readdir it isn't doing it. My naming convention 002_2003_66.jpg would indicate the 66th picture for the month of Feb in 2003. This gave me automatic sorting. So I thought.

[PHP] LAMP > I need a good tutorial on how to install and configure GD2

2003-08-14 Thread Matt Babineau
Anyone have a good place to help with this... Google was seeming a bit light on good help. I tried to get it going but there seemed to be some dependant libraries tha tI could not build myself, they were erroring out..blah blah. Is there any easier way to do this? Thanks, Matt -- PHP General Ma

[PHP] Re: Pls Help-Looking for PHP Product for Articles

2003-08-14 Thread Stephen Toutonghi
Thanks Alexandru, I've been reading about KompleteLite, but it looks like you have to install the Kyrsalis Enterprise server before being able to use KompleteLite, and I don't think I'll be able to get that through our IT people. Any other ideas for how to create a page structured like this: http:

[PHP] shell script not working with shell_exec

2003-08-14 Thread Chris Overman
Hi, I have a shell script which works when executed from the command line, but doesn't when executed from PHP with shell_exec. Of course I realize that in the former case I am 'root' and in the latter 'apache', so I changed every involved file to have the owner:group apache:apache and also the perm

[PHP] Re: [PEAR-DOC] standardize @throws for phpdocumentor 2.0?

2003-08-14 Thread Greg Beaver
Alex: What do you think of allowing shortened syntax, since @package is implied. In other words, all packages have to have a @package tag for all classes, so we can safely assume that a package will throw a package_error or a package_warning, etc. then, if we encounter: @throws error::NOT_FO

RE: [PHP] Screen Resoultion

2003-08-14 Thread Mike Brum
You can do so with JavaScript and have that pass the information onto your PHP scripts to do whatever it is that you want. -M -Original Message- From: Uma Shankari T. [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 12:12 AM To: PHP Subject: [PHP] Screen Resoultion Hello, C

Re: [PHP] [Newbie Guide] For the benefits of new members

2003-08-14 Thread David
I believe in community and helping people out, if someone is struggling then I try to help. When you have been developing for several years it is much easier to produce code as you have the experience and also the tools. Someone who is just starting to learn a language it is hard to understand wha

[PHP] Re: fsockopen/ssl

2003-08-14 Thread Scott Fletcher
Try "https://"; instead of "ssl://", this is what is normally done. As for your problem. It look like the private key when generated was too short, this can be overcomed by entering more characters at the time of the generation of hte key. But from your comments, you mentioned that from the arti

Re: [PHP] global scope issue

2003-08-14 Thread Robert Cummings
The script below works fine for me. Do you have track_vars set to "On"? I'm not 100% sure it's related, but it might be since I don't have any problem with your sample script. Cheers, Rob. On Wed, 2003-08-13 at 10:26, Shawn McKenzie wrote: > I'm having problems using global vars. I have read th

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Fabio Rotondo
Mukul Sabharwal wrote: And the error is strange because you're doing something strange! I don't think I'm doing anything strange. What I have exposed here is a simplification of my own class loader. I have the main class that must load (include and then instance) other PHP classes. The problem i

Re: [PHP] how to change index.php?passwd to index.php in the address bar

2003-08-14 Thread murugesan
Can you explain me in detail to use the post method. Thanks, Murugesan - Original Message - From: "Peter James" <[EMAIL PROTECTED]> To: "murugesan" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 12:12 PM Subject: Re: [PHP] how to change index.

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Liam Gibbs
> I bet they do, did you check the HTML source as well? My guess is that the > source is reading the actual expected output, but your browser views "é", as > it should of course. Sorry, should have mentioned. The source code reads the actual character, not the é. -- PHP General Mailing List (ht

RE: [PHP] [Newbie Guide] For the benefits of new members

2003-08-14 Thread Mike Brum
While sometimes a new perspective is extremely useful on a topic, I think the problem is that a huge percentage of people don't try for themselves. If they've done all the steps in the proposed message, then it tells you to send a message explaining where you're at to the list. While it can be pre

[PHP] RE: Commands out of sync; You can't run this command now - "SOLVED"

2003-08-14 Thread Boaz Yahav
In case anyone is interested, I got several emails about this but no one actually gave me the right location to look. 1st, the solution was to change pconnect to connect. 2nd, the bug is reported here : http://bugs.php.net/bug.php?id=19529 Sincerely berber Visit http://www.weberdev.com/ Toda

Re: [PHP] Re: PHP - Interpreted or Compiled Language

2003-08-14 Thread Jackson Miller
PHP is most definitely an interpreted language. -Jackson On Thursday 14 August 2003 8:37, breath wrote: > php is c based programming language... > > and...maybe php is not interpreted language.. > > breath > > > > "Binay Agarwal" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi e

Re: [PHP] & before function name

2003-08-14 Thread Chris Boget
> In the code below what does the & (ampersand) at the beginning of the > function name do? > function &ADONewConnection($db='') Returns the value by reference. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini configuration can we have two include_path in php.in file

2003-08-14 Thread Ivo Fokkema
I think Justin means you could CREATE the file with that exact content he has given you. With a .htaccess file, you can override settings of your php.ini file. HTH, Ivo "Murugesan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am not able to locate the file you are referr

Re: [PHP] regex causing headache ;-(

2003-08-14 Thread Marek Kilimajer
try RewriteRule ^!partner/([^/]*)/contact([\.]*).html$ profiles?modrew_fa=6 Merlin wrote: Hi there, I am having trouble with a reg ex. What it should do is, terminate if the url is /*/contact.html but it should not terminate if it is /partner/*/contact.html where * stands for any value I tryed

Re: [PHP] Can you turn off safe_mode for a global alias path or directory?

2003-08-14 Thread Curt Zirzow
* Thus wrote Andrew Nelson ([EMAIL PROTECTED]): > Hi, > > > I do however set a global alias: > Alias /admin "/usr/local/www/data/admin/" > > > php_admin_value open_basedir "none" > php_admin_value safe_mode "0" > The paths arn't the same. Curt -- "I used to think I was ind

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Curt Zirzow
* Thus wrote Anthony Ritter ([EMAIL PROTECTED]): > Jennifer Goodie" <[EMAIL PROTECTED]> writes: > > > You didn't switch the aliases around, you just switched the join order. > > This will provide unexpected results. In order to understand it, you > should > > read up on left joins. > > http://www

Re: [PHP] Re: global scope issue

2003-08-14 Thread Shawn McKenzie
Sorry... nevermind. I was developing as part of a team and it seems that my script is included in a function written by someone else. So my vars from my included files are local to the other function and not global. Thanks! Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

RE: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Ford, Mike [LSS]
> -Original Message- > From: Anthony Ritter [mailto:[EMAIL PROTECTED] > Sent: 13 August 2003 02:57 > > Jennifer Goodie" <[EMAIL PROTECTED]> writes: > > > You didn't switch the aliases around, you just switched the > join order. > > This will provide unexpected results. In order to > un

[PHP] Simple HTTP request, with "Range" header

2003-08-14 Thread Ken
What I want to do is write something simple in PHP that makes an HTTP request, takes the data received, and passes it through. Specifically, I am hoping to retrieve just a part of a file from the web server. If I wanted the whole file I would just do header("Location:..."); I imagine I would w

[PHP] Re: shell script not working with shell_exec

2003-08-14 Thread Scott Fletcher
It doesn't really do you much by changing the file permission and ownership to Apache. By the way, it would be nobody:nobody when it come to Apache, not apache:apache. What you will need to do is to login using the Apache account from the terminal login and execute the command line code. If it d

[PHP] Display variable with spaces

2003-08-14 Thread Pushpinder Singh Garcha
Hello, I am trying to display the rows of a MySql Query in a table. I retrieve the result using the query : while ($row = mysql_fetch_array($result1, MYSQL_ASSOC)) { $email_1 = $row["email_1"]

[PHP] what's going on with the hanmir.com guy?

2003-08-14 Thread Chris W. Parker
Anyone know of anything? I'm surprised the email address hasn't been taken off the list yet. [EMAIL PROTECTED] you are my arch-nemesis!! Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime()

2003-08-14 Thread Marek Kilimajer
My feeling is you should use gmmktime() if you use GMT in strtotime() Chris Boget wrote: Yeah, but I missed something in my above example. If I did this: strtotime( '+1 month GMT', mktime( 0, 0, 0, 1, 1, 2003 )); It came back with 1/31/2003 and not 2/1/2003. Removing the GMT made it work. You

[PHP] Document root

2003-08-14 Thread Mukul Sabharwal
$_SERVER[REQUEST_URI] , $_SERVER[SCRIPT_NAME] They give abs. web server paths ... like /php/scripts/file.php HTH Mukul Sabharwal http://www.devhome.org - Original Message - From: "Mukta Telang" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, August 12, 2003 11:27 AM S

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Liam Gibbs
> I think php.net/htmlentities will do this. Apparently it *is*, but it won't for me. Any problems with this code? $result[] = "é"; $result[1] = htmlspecialchars($result[0]); $result[2] = htmlentities($result[0]); Both return the accented E unchanged. -- PHP General Mailing List (http://www.p

Re: [PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
Ford, Mike [LSS]" <[EMAIL PROTECTED]> writes: > You have a conceptual misconception. In effect, you need to read that query > as: > > "select ft.topic_id, ft.topic_title > from ( forum_posts as fp > left join forum_topics as ft > on fp.topic_id = ft.topic_id >

[PHP] Re: Determine OS and Java Ver

2003-08-14 Thread Kae Verens
Alexandru-Vlad Badut wrote: Hya, Can someone give me a hand on how to determine if the client (the visitor) is java & java enabled and the os he's using in php? couldn't you just get the Java to request a PHP file with it's version as a GET parameter? that, along with the IP address, should tell y

Re: [PHP] how to change index.php?passwd to index.php in the address bar

2003-08-14 Thread Ivo Fokkema
You will really need the post protocol if you don't want anything from a form displayed in the url. Apparently, Apache is not allowing the POST protocol for that directory/file. Is this a local server or don't you have access to the Apache config file? If it's a local server, fix this setting. Thi

Re: [PHP] counting files, choosing at random

2003-08-14 Thread David Otton
On Wed, 13 Aug 2003 10:54:58 +0200, you wrote: > > I want to choose a file at random from a > directory which adheres to certain naming scheme. > I can't get it to work. It's probably something > simple...Here is a relevant snippet: > >http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] GD 2.0.15

2003-08-14 Thread Vijay
Hi Friends, What should I do configure GD 2 support in my solaris 2.7 server, with Apache 1.3.27,PHP 4.3.1 Sincerely Vijay

Re: [PHP] Newbie Session Question

2003-08-14 Thread CPT John W. Holmes
From: "Tim Winters" <[EMAIL PROTECTED]> > Normally to start a session one would use session_start(); > > Is there a different command to do this if you're instead using the > $http_session_vars type coding? No, and it's $HTTP_SESSION_VARS. PHP is case sensitive, remember? ---John Holmes... --

Re: [PHP] Screen Resoultion

2003-08-14 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: i didnt understand a word of that , please rephrase ?? ASP doesn't do an upload meter by magic. PHP can do anything ASP can do, it simply doesn't have built-in features for anything unessential. -- The above message is encrypted with double rot13 encoding. Any unauthor

Re: [PHP] global scope issue

2003-08-14 Thread Ray Hunter
> /dir1/script1.php > include("/dir1/script2.php"); > print_r($test); //works great > print_r($GLOBALS['test']); //does not work > ?> Works fine for me when I have the include as include( 'script2.php' ); Make sure that the include is correct...I figure that you dont have dir1 off of the root

RE: [PHP] Application Dev -- Separating code for speed.

2003-08-14 Thread Ralph Guzman
http://bombusbee.com/ -Original Message- From: Jonathan Pitcher [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 7:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Application Dev -- Separating code for speed. I have a application, almost like a web portal. I am working on developing

[PHP] error problem

2003-08-14 Thread Kris Reid
When I have an error in my code nothing gets written to the screen. If I have It will works normal. but if I have Nothing gets written to the browser. Not even the error message. When I run php on the command line I get error messages just not when running through a browser. Where should I

Re: [PHP] cookie not setting in IE

2003-08-14 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > It works in Mozilla Firebird and it even works in a friends IE. > For some reason my computer won't accept the cookie. Can you show us the HTTP transaction using ethereal or something? Chris = Become a better Web developer with the HTTP Deve

Re: [PHP] Simple cookie question

2003-08-14 Thread Chris Shiflett
--- Liam Gibbs <[EMAIL PROTECTED]> wrote: > Does it have to be a cookie? I use the IP address and store > that somewhere. Please don't. An IP address is a terrible means of user identification. I would explain why, but I think it would be more informative to search through the archives, as previo

Re: [PHP] Screen Resoultion

2003-08-14 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: how is it possible to send a jscript variable to php thats impossible It would look something like this (unfinished, using comments instead of real code in a few places: if(!isset($_GET['height'])){ ?>