[PHP] counting array elements

2003-02-24 Thread Kevin Waterson
Hi all, I wish to fine the most occurringest value in an array. eg: $arr = array('dog', 'cat', 'dog', 'zebra', 'cat', 'dog', 'dog', 'dog'); if I use array_count_values it gives dog = 5 I would like to get 'dog' and '5' into a $variable. Kind regards Kevin -- __

[PHP] Re: Flash interaction with PHP

2003-02-24 Thread pei_world
I only found the actionscript for click button to load the varialbes. but If I want to load variable when the moive start? on (release) { gotoAndPlay(2); Status = Beginning Login Process.. Please Hold; loadVariablesNum (Login.php?Name=+Name, 0); } -- Sincerely your; pei_world (

Re: [PHP] radio buttons

2003-02-24 Thread Gonzo
he wants 3 radio buttons on a form .. something to the affect of: input type=radio name=general value=this is a general statement?this is a general post input type=radio name=urgent value=this is an urgent messagethis is an urgent post input type=radio name=concern value=this is bothering

[PHP] Renaming an uploaded file

2003-02-24 Thread Steve Jackson
Hi all, I am in the process of building a CMS and need to know how to rename an uploaded template. I can upload the page fine (ie. Template.php) but then I want to be able to save the file as a user specified name after the upload is done. Either that or copy the template from the server and save

[PHP] fopen woes....

2003-02-24 Thread Chris Blake
Greetings, According to PHP manual example this is supposed to open a file and write a line of text to itbut it doesn`t. === html head titleFile Open/title /head body ?php $handle = fopen

Re: [PHP] include

2003-02-24 Thread Jason Wong
On Monday 24 February 2003 15:09, John Taylor-Johnston wrote: $_SERVER is outdated now isn't it? Read the docs please. This is one of the new 'super globals' and deprecates $HTTP_SERVER_VARS (or whatever it was called). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] fopen woes....

2003-02-24 Thread Ferhat Can
Hi Chris, The mode rw is contradictory. You say open the file in the read-only and write-only modes. I think you the append mode(a) is the candidate to solve your problem. Ferhat Can - Original Message - From: Chris Blake [EMAIL PROTECTED] To: PHP General [EMAIL

Re: [PHP] counting array elements

2003-02-24 Thread janet
In a message dated 2/24/2003 12:05:09 AM Pacific Standard Time, [EMAIL PROTECTED] writes: I wish to fine the most occurringest value in an array. eg: $arr = array('dog', 'cat', 'dog', 'zebra', 'cat', 'dog', 'dog', 'dog'); if I use array_count_values it gives dog = 5 I would like to get 'dog'

Re: [PHP] session_start

2003-02-24 Thread Ernest E Vogelsinger
At 05:52 24.02.2003, Mr Percival said: [snip] According to the PHP manual session_start always returns true. Ther are times (like when there is a disk full error on the server) that the sesison_start will fail because its unable to write the session tmp

Re: [PHP] Renaming an uploaded file

2003-02-24 Thread Jason Wong
On Monday 24 February 2003 16:39, Steve Jackson wrote: I am in the process of building a CMS and need to know how to rename an uploaded template. I can upload the page fine (ie. Template.php) but then I want to be able to save the file as a user specified name after the upload is done.

Re: [PHP] counting array elements

2003-02-24 Thread Jason Wong
On Monday 24 February 2003 16:12, Kevin Waterson wrote: I wish to fine the most occurringest value in an array. eg: $arr = array('dog', 'cat', 'dog', 'zebra', 'cat', 'dog', 'dog', 'dog'); if I use array_count_values it gives dog = 5 I would like to get 'dog' and '5' into a $variable. $arr

Re: [PHP] Renaming an uploaded file

2003-02-24 Thread Ernest E Vogelsinger
At 10:20 24.02.2003, you said: [snip] Sex is like air. It's only a big deal if you can't get any. [snip] :)) This is one I like... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^

[PHP] What is wrong with this?

2003-02-24 Thread Miguel Brás
Hi, here's the script * body topmargin=0 leftmargin=0 link=#0F057E vlink=#0F057E alink=#0F057E bgcolor=#E6E6E6 table border=0 cellpadding=0 cellspacing=5 style=border-collapse: collapse bordercolor=#11 width=100% id=AutoNumber153 height=12 td width=43% height=33

Re: [PHP] Re: sending results by email

2003-02-24 Thread Christoph Christ (Wien)
did you set up the correct email address and smtp server in you php.ini configu file? First try to send mails without bells and whistels, and when you can do that fine, then go on and implement that formular feature. ?php $toaddr = [EMAIL PROTECTED]; $subject = Testmail; $mailmessage = This is a

Re: [PHP] What is wrong with this?

2003-02-24 Thread Ernest E Vogelsinger
At 10:37 24.02.2003, Miguel Brás said: [snip] //logical request if ($nome) { $sql=aviao = '$nome' ; } if ($code) { $sql=code = '$code' ; } $query = SELECT * FROM ssr WHERE; $query .= $sql; [snip] Hi,

[PHP] cookie problemes

2003-02-24 Thread kale
hy, i have a probleme with cookie. this is my code Setcookie($n_sessid, $sessid, time()+$cookie_life); and work, 80%. some machines (all windows - 98 and XP) with internet explorer (ver.5 and 6, some with the last upgrade) can write the cookie. same machines have cookie enable because the users

RE: [PHP] Renaming an uploaded file

2003-02-24 Thread Steve Jackson
OK, Thanks that helped. I've sorted that part of the problem. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 24. helmikuuta 2003 11:20 To:

Re: [PHP] cookie problemes

2003-02-24 Thread Gonzo
hy, i have a probleme with cookie. this is my code Setcookie($n_sessid, $sessid, time()+$cookie_life); and work, 80%. some machines (all windows - 98 and XP) with internet explorer (ver.5 and 6, some with the last upgrade) can write the cookie. same machines have cookie enable because the

Re: [PHP] What is wrong with this?

2003-02-24 Thread Miguel Brás
Hi, yes in fact it worked...I also had the $numrows with wrong mysql command, it should be mysql_num_rows() instead of the mysql_fetch_rows(). Thx Ernest But now that this is working, i have another big problem...my $drop_down_list isn't assuming the value of the shown option...right here on the

RE: [PHP] cookie problemes

2003-02-24 Thread kale
What path and what domain? Thanks. Kale -Original Message- From: Gonzo [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:04 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] cookie problemes hy, i have a probleme with cookie. this is my code

RE: [PHP] cookie problemes

2003-02-24 Thread Gonzo
What path and what domain? See path and domain here: http://php.net/setcookie Gonzo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] creating flat versions of php pages

2003-02-24 Thread electroteque
hi guys we have 2 very high traffic sites and we need to be able to make these pages load faster , we are coming up with a solution to make flat file versions of the sites in the short term before we start using caching technologhies is this the right way to go about this ? also whats is the best

Re: [PHP] creating flat versions of php pages

2003-02-24 Thread Gonzo
hi guys we have 2 very high traffic sites and we need to be able to make these pages load faster , we are coming up with a solution to make flat file versions of the sites in the short term before we start using caching technologhies is this the right way to go about this ? I think anyone

Re: [PHP] What is wrong with this?

2003-02-24 Thread Chris Hayes
At 02:04 24/02/03, you wrote: Hi, yes in fact it worked...I also had the $numrows with wrong mysql command, it should be mysql_num_rows() instead of the mysql_fetch_rows(). Thx Ernest But now that this is working, i have another big problem...my $drop_down_list isn't assuming the value of the

Re: [PHP] Help needed - move_uploaded_file

2003-02-24 Thread David T-G
Hi! ...and then Fat Lizard said... % % Hi, % I'm trying to use move_uploaded_file, but so far with no success, no matter % what I try. Do you have register_globals turned on? Did you really use input name='userfile' in your form code? Are you sure that $userfile has a value? What is it?

Re: [PHP] creating flat versions of php pages

2003-02-24 Thread electroteque
i dont understand what you mean , anyway, this is a short term situation as the site is pretty slow and cpu intensive, the setup is a sun solaris box running apache 1.3 and php3 , just had a meeting today to push through apahe 2 and php 4.3 ut wont happen for a while , we need a solution in the

RE: [PHP] cookie problemes

2003-02-24 Thread kale
:( don't work. I put Setcookie($n_sessid, $sessid, time()+$cookie_life, $path, $domain, 0); In script but don't work. Same. No cookie in cookie folder. Other idea? Kale -Original Message- From: Gonzo [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:13 PM To: [EMAIL

RE: [PHP] cookie problemes

2003-02-24 Thread Gonzo
:( don't work. I put Setcookie($n_sessid, $sessid, time()+$cookie_life, $path, $domain, 0); In script but don't work. Same. No cookie in cookie folder. Other idea? Nothing other than 1) What are in the $path and $domain variables? and 2) did you grep in your cookies folder? Sometimes IE

RE: [PHP] cookie problemes

2003-02-24 Thread kale
$path = /; $domain = .mydomain.ro; And in my cookie folder i find a cookie named: [EMAIL PROTECTED] But other computer (with problems) i don't have any cookie with same name. And if i reload the page and print $HTTP_COOKIE_VARS[$n_sessid] it's nothing. I have 12 computers and 10 are ok. kale

[PHP] Me again...

2003-02-24 Thread Francisco Mosse \(c\)
Hi, please see the following red code... it adds info to a MySQL Table called Schools. Whats the problem? Although the first time you execute it, it works, after the first time you send the form you get ERROR. $qs = 'INSERT INTO Schools (LongName, Abbreviation) VALUES (' . ' .

RE: [PHP] creating flat versions of php pages

2003-02-24 Thread Mark Cubitt
Are all the news stories in a database? If so we are current in devolopment of a simaliar site (although not news), we are using Perl scripts to build all the HTML pages (both Index's and Pages) during the evening (4am), it takes about 8 secs to build 2500 pages and the Perl scripts could be a

Re: [PHP] creating flat versions of php pages

2003-02-24 Thread rush
Electroteque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i dont understand what you mean , anyway, this is a short term situation as the site is pretty slow and cpu intensive, the setup is a sun solaris box running apache 1.3 and php3 , just had a meeting today to push through

[PHP] Question about how to use pfsockopen()

2003-02-24 Thread Arjan Gijsberts
I'd like to know how to use the pfsockopen() method correctly. I'm experimenting with creating a webbased IM client. I was hoping I could resume a socket from script to script (by using POST or GET or a Session). This is not working. In the documentation I found that php looks if a connection to

Re: [PHP] Me again...

2003-02-24 Thread Chris Hayes
At 03:48 24/02/03, you wrote: Hi, please see the following red code... (i get plain text, so not red) it adds info to a MySQL Table called Schools. Whats the problem? Although the first time you execute it, it works, after the first time you send the form you get ERROR. $qs = 'INSERT INTO

Re: [PHP] session_start

2003-02-24 Thread Mr Percival
So how do I check if the session write failed? I thought perhaps if(session_id() == ){ echo error; } but if all session_start does is basically assign a session ID then session_id will never be empty even when the write fails. Thanks! :) -- PHP General Mailing List

RE: [PHP] Flash interaction with PHP

2003-02-24 Thread SED
The easiest way to do this is putting variables behind ? in the filename: myFlashMovie.swf?myVarA=123myVarB=456 The variable above will be assign in the _root in the Flash file: _root.myVarA _root.myVarA Regards, Sumarlidi E. Dadason SED:DESIGN

[PHP] Problem with readfile on jpegs

2003-02-24 Thread Patrick Teague
I found info on php.net about how to set content type for a file then cause it to be a downloaded file. So far it's been working for showing everything until I tried having it display a jpeg. Here's the code I have - header(Content-type: .$atype); readfile(include($afile)); The only problem

Re: [PHP] session_start

2003-02-24 Thread Ernest E Vogelsinger
At 13:36 24.02.2003, Mr Percival said: [snip] So how do I check if the session write failed? I thought perhaps if(session_id() == ){ echo error; } but if all session_start does is basically assign a session ID then session_id will never be empty

Re: [PHP] Problem with readfile on jpegs

2003-02-24 Thread Ernest E Vogelsinger
At 13:45 24.02.2003, Patrick Teague said: [snip] readfile(include($afile)); [snip] You don't need to include the file you're going to read... simply give readfile($file) and you'll be set. include() tries to

Re: [PHP] Problem with readfile on jpegs

2003-02-24 Thread Rick Emery
Show us code. The error refers to line 87. We need to see that, and other code surrounding 87. - Original Message - From: Patrick Teague [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:45 AM Subject: [PHP] Problem with readfile on jpegs I found info on

[PHP] Live chat screen

2003-02-24 Thread Sami Kyösti
Hi! Is it possible to create a chat screen that updates screen in some kind of loop from the database? So if someone sends a message to database it immediately shows on chat screen? Kind regards, Sami -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Live chat screen

2003-02-24 Thread bbonkosk
Sure, in JAVA. Hi! Is it possible to create a chat screen that updates screen in some kind of loop from the database? So if someone sends a message to database it immediately shows on chat screen? Kind regards, Sami -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] MS SQL Server problem

2003-02-24 Thread Adam Voigt
Let me guess, your using NTEXT datatypes in one or more columns on that table right? It's not a big deal to work around this, just use: mssql_query(SELECT CAST(field1 AS TEXT) AS field1 FROM table;); Essentially you have to cast your NTEXT colums (or any which could have more then 255

RE: [PHP] Live chat screen[Scanned]

2003-02-24 Thread Michael Egan
Sami, You could put the 'chat screen' within a frame and set the page with a refresh value within the meta tags so that it reloads every few seconds, i.e. meta http-equiv=refresh content=5;URL=filename.php Hope this helps, Michael Egan -Original Message- From: Sami Kyösti

[PHP] crypt() MD5 problem on PHP 4.2.3

2003-02-24 Thread Adrian Ciutureanu
hi all, ?php echo 'pre' . 'CRYPT_STD_DES ' . CRYPT_STD_DES . \n . 'CRYPT_EXT_DES ' . CRYPT_EXT_DES . \n . 'CRYPT_MD5 ' . CRYPT_MD5 . \n . 'CRYPT_BLOWFISH ' . CRYPT_BLOWFISH . '/pre'; echo crypt('clear_pass', '$1$salt1234$'); ? // outputs CRYPT_STD_DES 1 CRYPT_EXT_DES 0

[PHP] dynamic list box

2003-02-24 Thread Edward Peloke
Hello, I have an sql statement that pulls data into a dynamic list box, the problem is, I have this list box twice on my form, since the query returns a lot of rows, I do not want to have the query executed twice but I populate my list box using the while loop so when it is time for the second

Re: [PHP] Live chat screen[Scanned]

2003-02-24 Thread Sami Kyösti
Michael, I have tryed refeshing the screen but sometimes when i.e. reloads the page it blinks. Sami Michael Egan wrote: Sami, You could put the 'chat screen' within a frame and set the page with a refresh value within the meta tags so that it reloads every few seconds, i.e. meta

Re: [PHP] dynamic list box

2003-02-24 Thread 1LT John W. Holmes
I have an sql statement that pulls data into a dynamic list box, the problem is, I have this list box twice on my form, since the query returns a lot of rows, I do not want to have the query executed twice but I populate my list box using the while loop so when it is time for the second list

[PHP] Piping to a PHP cgi-binary... broken in v4.3.2?

2003-02-24 Thread Dan Hardiker
Hey all, echo ?php echo \hi\; ? | /path/to/php That works on php v4.2.x but Ive got 3 machines on v4.3.x and none of them seem to respond to the piping of the php config. v4.2.x Response

Re: [PHP] dynamic list box

2003-02-24 Thread Chris Hayes
At 15:01 24/02/03, you wrote: Hello, I have an sql statement that pulls data into a dynamic list box, the problem is, I have this list box twice on my form, since the query returns a lot of rows, I do not want to have the query executed twice but I populate my list box using the while loop so

RE: [PHP] dynamic list box

2003-02-24 Thread Mark Cubitt
don't know if this will help, but you could do something like this foreach ($hashes as $name = $variable) { switch ($name) { case 'board': $nameText = PCB Type; break;

RE: [PHP] dynamic list box

2003-02-24 Thread Edward Peloke
Thanks all, I will give all these ideas a shot! Eddie -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:07 AM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] dynamic list box I have an sql statement that pulls

[PHP] emailing a web-page

2003-02-24 Thread neko
Hi guys, I want to automate the process of connecting to a web-page and sending it as a HTML email (like a weekly newsletter in html). I've been reading up a bit on PEAR's Mail_mime (http://pear.php.net/manual/en/core.mail.mime.php) but I just wanted to know what the fastest way to accomplish my

Re: [PHP] emailing a web-page

2003-02-24 Thread Chris Hayes
At 15:31 24/02/03, you wrote: I want to automate the process of connecting to a web-page and sending it as a HTML email (like a weekly newsletter in html). I've been reading up a bit on PEAR's Mail_mime (http://pear.php.net/manual/en/core.mail.mime.php) but I just wanted to know what the fastest

[PHP] Re: regex question?

2003-02-24 Thread Shawn McKenzie
Anyone? please? Thanks! Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using the following to try and replace urls in my html output: $newhrefs = preg_replace(/script.php\?(.*)=(.*)(.*)=(.*)(.*)=(.*)/, script-$1-$2-$3-$4-$5-$6.html, $hrefs); This works

Re: [PHP] emailing a web-page

2003-02-24 Thread neko
is it a webpage you create with php or is it a webpage that you get from just any site? It's a dynamically generated page on my site - I wanted to just include the url's contents into a string, or something. So no I can't cheat and just grab from the filesystem :) cheers, neko -- PHP

Re: [PHP] emailing a web-page

2003-02-24 Thread Arjan Gijsberts
Call to the mail function like this, notice the Content-type header to be set to HTML mail($emailaddress, $subject, $email, From: Me $myemailaddress\r\nContent-type: text/html; charset=iso-8859-1\r\n); Make sure that $email contains plain text html. I guess you already know how to generate

[PHP] Re: Live chat screen

2003-02-24 Thread Arjan Gijsberts
Immediately won't be possible as far as I know. For that, you have to create a server socket, which is not (easily) able in php-scripts. But you can use javascript to refresh the page. You could even create a 0 frame which reloads by javascript and use DHTML to add the messages to the main chat

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
update: I think I just need to work out how to grab a web-page and include it into a string to supply to the mail I'm generating (using pear). Provided that the hyperlinks aren't relative I should have a funky looking email going on.. neko Neko [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: emailing a web-page

2003-02-24 Thread Arjan Gijsberts
That shouldn't be a problem. You could use fopen() to open the file. Neko [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] update: I think I just need to work out how to grab a web-page and include it into a string to supply to the mail I'm generating (using pear). Provided that the

[PHP] Maximum execution time explanation needed

2003-02-24 Thread Mathieu Dumoulin
Ok, i got this script i run on my server, this script runs exactly 47 secs or so (45 to 49) each time i run it. I run it from the command line cause it's going to be a CRON job i'll run every month. My question is, why after 47 seconds or so does my script end saying: bFatal error/b: Maximum

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
http://www.php.net/manual/en/function.file-get-contents.php I was thinking of using this, however the website I want to pull the HTML from uses relative links, so that places me in a pretty pickle if I want to have the email make use of stylesheets and images. :) neko_ Arjan Gijsberts [EMAIL

RE: [PHP] What is wrong with this?

2003-02-24 Thread Tim
hi, i think there is an error in the html part: $drop_down_list .= optionvalue=$aviao$aviao/option; ^ should that not be?: $drop_down_list .= option value='$aviao'$aviao/option; HTH t. -Message d'origine- De : Miguel Brás

[PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Joel Colombo
stick a. set_time_limit(XXX); at the top of the page where XXX is the maximum time u would like it to run. ex... 180 for say 3 minutes. Joel Colombo Mathieu Dumoulin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok, i got this script i run on my server, this script runs

[PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Mathieu Dumoulin
Thank you, but it doesn'T explain why i can run the other script for 5 minutes without any set_time_limit i'd like to get a precise explanation on why it's doing it, for the time being i will use set_time_limit for this script. Mathieu Dumoulin Joel Colombo [EMAIL PROTECTED] a écrit dans le

Re: [PHP] why this ?????????

2003-02-24 Thread Luis A
it works but i nnned one more favor :) how can i make the results of that form .. send it to me by email how can i explain ... down here is the form ... it workit ass well on my unix server but he does not send to me the form result by email how can i do that ??? please? :) -

[PHP] to Christoph Christ Re: [PHP] Re: sending results by email

2003-02-24 Thread Luis A
and how can i do that??? mai you please___?? :) - Original Message - From: Christoph Christ (Wien) [EMAIL PROTECTED] To: Luis A [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:40 AM Subject: Re: [PHP] Re: sending results by email did you set up the correct

Re: [PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Ernest E Vogelsinger
At 16:27 24.02.2003, Mathieu Dumoulin spoke out and said: [snip] Thank you, but it doesn'T explain why i can run the other script for 5 minutes without any set_time_limit i'd like to get a precise explanation on why it's doing it, for the time being i will

[PHP] Multiple Data Requests

2003-02-24 Thread Randum Ian
Hi guys, Wonder if you can help me with this. I have a recording_global table which has recording_global_id in and dj_global_id. I want to be able to sort the recording_global table alphabetically by dj name which I need to find from the dj_global_id table referencing it from the ID in the

[PHP] Re: [PHP-DB] Checkboxes to gather rows to delete

2003-02-24 Thread 1LT John W. Holmes
It is wrong to use that way of doing it John, cause this will delete ALL lines that where printed with a checkbox And also, if you are using a old version of PHP with register globals OFF, the _POST array will not be available You are mistaken. $_POST['checkboxes'] will only contain those IDs

[PHP] Problem with php and ldap...

2003-02-24 Thread Jim Greene
Hello, I am having a problem with using LDAP and PHP... The two seperate scripts work fine, but when I try to combine them in anyway It does not complete... The scripts are below.. ldap_add.php ?php //require_once (ldap-search-uid.php); $dn=cn=Directory Manager; $dn2=uid=default,

Re: [PHP] Multiple Data Requests

2003-02-24 Thread 1LT John W. Holmes
Hi guys, Wonder if you can help me with this. I have a recording_global table which has recording_global_id in and dj_global_id. I want to be able to sort the recording_global table alphabetically by dj name which I need to find from the dj_global_id table referencing it from the ID in

[PHP] Creating my own super global variables

2003-02-24 Thread Siddharth Hegde
Hello, Is there any way I can creat my very own super global variables? - Sid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Repeating Templates

2003-02-24 Thread Jordan Elver
Hi, I checked the archives for this but couldn't find a simple answer. I'm working on my own templating class. Mainly as a learning experience, but also because I only want something really simple. I sort of know how to do simple variable substitution. I have something along the lines of this

Re: [PHP] Creating my own super global variables

2003-02-24 Thread Ernest E Vogelsinger
At 17:07 24.02.2003, Siddharth Hegde spoke out and said: [snip] Hello, Is there any way I can creat my very own super global variables? [snip] No. If you have scalar variables you may define() them, but define()

[PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Mathieu Dumoulin
Could it be because i fopen the php://stdin stream that i can execute my script for 5 minutes? Mathieu Dumoulin Mathieu Dumoulin [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Ok, i got this script i run on my server, this script runs exactly 47 secs or so (45 to 49) each

[PHP] it woks !!!!)

2003-02-24 Thread Luis A
HE Y IS REALY WORKSA PHP S' THA BEST ) i love it php im newbabe yet using php but i like it ) thanks for your atecion l )) - Original Message - From: R'twick Niceorgaw [EMAIL PROTECTED] To: Luis A [EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:54 AM Subject: Re: [PHP] why this

Re: [PHP] Creating my own super global variables

2003-02-24 Thread 1LT John W. Holmes
Is there any way I can creat my very own super global variables? You can assign values directly to $_POST, $_COOKIE, etc arrays and reference them wherever you want later. It's just for the duration of the script, though. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

[PHP] Received: (from www@localhost) ???

2003-02-24 Thread MIKE YRABEDRA
I am using sendmail and php and it works great... However, It always says this in the header of the email Received: (from [EMAIL PROTECTED]) Is there a way I can change this to something less generic, more specific to my server? TIA -- Mike Yrabedra President 323, Inc. Home of The

Re: [PHP] Received: (from www@localhost) ???

2003-02-24 Thread 1LT John W. Holmes
I am using sendmail and php and it works great... However, It always says this in the header of the email Received: (from [EMAIL PROTECTED]) Is there a way I can change this to something less generic, more specific to my server? Read the manual page on the mail() function along with the

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
Question : When people send you junk e-mails they often have image refs and so forth - does that mean they are using absolute links in the img refs? I need to find a way to allow a non-technical user to quickly and easily send off a web-page (generated on the fly) in email format, but so far I'm

[PHP] Reading Text file by line

2003-02-24 Thread Anthony
I need to read a text file by line, if I open the file and use fgets() then it doesn't pick up the EOL corretly. So I was planning on reading the whole file in with fread() and then breaking it up by EOL characters. My question is, how do I do it? What character do I search for in the string?

[PHP] Re: emailing a web-page

2003-02-24 Thread Mathieu Dumoulin
What i would actually do is this: Generate simple HTML code that creates a FRAMESET with only one FRAME point the source directly on the page you wish to show to the user in the mail. Here are the good reasons: 1) Updated content cause it stays on the web 2) Small email, no image, not even the

[PHP] Re: Reading Text file by line

2003-02-24 Thread Mathieu Dumoulin
Depends on what OS you are: Windows: Search for \n\r (or chr(13) . chr(10)) Unix/linux: Search only for \n (or chr(13)) MAC: Search for only \r (or chr(10)) If you want to READ line by line instead of Exploding your complete content, use this: $myLine = fgets($myFilePointer, 1048576) The 2

[PHP] Detecting number of pages in a multi-page .TIFF file

2003-02-24 Thread Joseph Szobody
Can PHP tell how many pages there are in a multi-page .TIFF file? The tif file would be on the local machine. Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Ernest E Vogelsinger
At 17:12 24.02.2003, Mathieu Dumoulin spoke out and said: [snip] Could it be because i fopen the php://stdin stream that i can execute my script for 5 minutes? [snip] Sure, if the script sits and waits until there's

RE: [PHP] Reading Text file by line

2003-02-24 Thread M.A.Bond
Using $var=file('filename.txt'); Creates an array, with each element in the array being 1 line of the file. Thanks Mark -Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: 24 February 2003 16:24 To: [EMAIL PROTECTED] Subject: [PHP] Reading Text file by line I need to

[PHP] Re: emailing a web-page

2003-02-24 Thread neko
4) Easy to do for anyone, even for you, it's simple. Thanks for that sly jab ;) neko_ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: emailing a web-page

2003-02-24 Thread Van Andel, Robbert
The downside to this method is that many email clients (mine included) do not allow content from the web to be downloaded or for frame displays. You can always have the pictures linked to save on download time, but I would highly recommend that you create your content in the body of the email.

[PHP] MING with PHP

2003-02-24 Thread Adam Voigt
Ok, trying to make even a simple test work with PHP using the MING extension under windows, I've uncommented the MING dll in the php.ini and I don't get any error's, but my test shockwave movie just spins and spins, no error log, no nothing, the code I'm using is: $t = new SWFText();

[PHP] Zend Encoder

2003-02-24 Thread Thomas Johnsson
This might sound a bit paranoid, but since I don't know how it works, i'll ask anyway. If I encrypt a file using the Zend Encoder, is there anyone at zend who can view it, or it it an unreversable encryption? // Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Reading Text file by line

2003-02-24 Thread Ernest E Vogelsinger
At 17:24 24.02.2003, Anthony spoke out and said: [snip] I need to read a text file by line, if I open the file and use fgets() then it doesn't pick up the EOL corretly. So I was planning on reading the whole file in with fread() and then breaking it up by

Re: [PHP] Creating my own super global variables

2003-02-24 Thread Jason Wong
On Tuesday 25 February 2003 00:07, Siddharth Hegde wrote: Is there any way I can creat my very own super global variables? All variables defined in the global scope can be accessed via $GLOBALS. So: $my_very_own_variable = 'whatnot'; can be accessed anywhere as:

Re: [PHP] Creating my own super global variables

2003-02-24 Thread Ernest E Vogelsinger
At 17:54 24.02.2003, Jason Wong spoke out and said: [snip] On Tuesday 25 February 2003 00:07, Siddharth Hegde wrote: Is there any way I can creat my very own super global variables? All variables defined in the global scope can be accessed via $GLOBALS.

Re: [PHP] button and /button

2003-02-24 Thread Sunfire
this is true i guess but he doesnt want an image that looks like a button he wants a 100% true authentic button that is depressed when you click it and if the image doesnt move when you click on it he will throw a 600% royal fit and none the less he doesnt really care if people with no java

RE: [PHP] Creating my own super global variables

2003-02-24 Thread Siddharth Hegde
U'r 100% right Mr Ernest. - Siddharth -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Creating my own super global variables At 17:54 24.02.2003, Jason Wong spoke out and

[PHP] search script

2003-02-24 Thread Bryan Brannigan
Ok, my problem of the day. I need to take a field from a form that has either a first name, last name or both and then search the database for all records that match one of those items. The problem, the database only has one field for the name.. where both the first and last name are stored.

Re: [PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Chris Hayes
At 01:27 25-2-03, you wrote: Thank you, but it doesn'T explain why i can run the other script for 5 minutes without any set_time_limit In php.ini the default time limit is set. And when you set the time limit in a script at the start of a loop, the limit counter starts counting at zero again, or

[PHP] Re: search script

2003-02-24 Thread Paul Chvostek
On Mon, Feb 24, 2003 at 12:40:45PM -0500, Bryan Brannigan wrote: Ok, my problem of the day. I need to take a field from a form that has either a first name, last name or both and then search the database for all records that match one of those items. The problem, the database only has one

RE: [PHP] cookie problemes

2003-02-24 Thread Gonzo
$path = /; $domain = .mydomain.ro; And in my cookie folder i find a cookie named: [EMAIL PROTECTED] But other computer (with problems) i don't have any cookie with same name. And if i reload the page and print $HTTP_COOKIE_VARS[$n_sessid] it's nothing. I have 12 computers and 10 are ok.

  1   2   >