Re: [PHP] The return of mysql_fetch_assoc()

2003-07-30 Thread Curt Zirzow
* Thus wrote Ney André de Mello Zunino ([EMAIL PROTECTED]): > Hello. > > I wonder why the following code is not accepted by the PHP interpreter > > $fooVar = mysql_fetch_assoc($result)["barColumn"]; Because that is not an acceptable way to assign a variable. > > I am forced to create an interm

Re: [PHP] Why wouldn't a simple script work on my server thatworks on other servers?

2003-07-30 Thread Dan Anderson
> Also, what (if any) errors does PHP/Browser report? That's the really bizarre thing. It spits out the entire PHP code as the web page. The browser then tries to render it and can produce some really humourous results. And execute permissions shouldn't matter, right? -Dan -- PHP General Ma

Re: [PHP] Why wouldn't a simple script work on my server that works on other servers?

2003-07-30 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): > > Also, what (if any) errors does PHP/Browser report? > > That's the really bizarre thing. It spits out the entire PHP code as > the web page. The browser then tries to render it and can produce some > really humourous results. That is a sign tha

Re: [PHP] Strip Numbers

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Joe Harman" claimed that: |Hey could someone help me out here | |I need to strip numbers from a passed variable | |ex. 3899007 | |all the numbers will have 990 (so that is the 4th, 5th & sixth |numbers... from the right...) I want to keep everything to the left of |the two 9s

[PHP] Re: debuging and getting mor information about failures

2003-07-30 Thread Ivo Fokkema
"Chrstian Brensteiner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > whats the best option to get more information about a failure in your sorce > code ? > > whenever i get failures that are situated at the very end of my script how > do i get to know wherer they start? > > now i ha

[PHP] THX Strip Numbers

2003-07-30 Thread Joe Harman
Hey Thanks you guys... I appreciate your help! Cheers Joe Harman http://www.HarmanMedia.com This `telephone' has too many shortcomings to be seriously considered as a means of communication. The device is inherently of no value to us. - Western Union internal memo, 1876

Re: [PHP] Re: PHP suexec: html files as PHP.

2003-07-30 Thread Joan McGalliard
On Tuesday, July 29, 2003, at 01:43 PM, erythros wrote: it depends on what webserver your provider is running. all they have to do is add .html to the list of files parsed by php. Thanks! this was enough to get them to fix the problem. Just to explain the back story. I had a website, that was

[PHP] Re: include and imagejpg() weird behavior - maybe header?

2003-07-30 Thread Oli
Nobe, the image.php script starts with wrote in message news:[EMAIL PROTECTED] > "Oli" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I have a function that resizes images. If I put it in the same php file > that > > calles it it workes fine. Gives a nice thumbnail or whatever s

Re: [PHP] learning php - problem already

2003-07-30 Thread Ivo Fokkema
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote John W. Holmes ([EMAIL PROTECTED]): > > [snip] > don't but all that matters to most is: it works.. and foreach has > taken over its job anyway. Just a small comment... foreach() is not equal to a while/each

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-30 Thread Ivo Fokkema
""Ney andré de mello zunino"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the quick response, but I am not sure I understand your > argument. Yes, I am aware that the function returns an array > corresponding to a single row/record; what I don't understand is why I > am

[PHP] Search in PhP

2003-07-30 Thread khuram noman
Hello i have a site in php but not using database i want to add the search facilty in that site means user can search into the contents of the site .so how can i do that in php without using database.waiting for ur soon reply thanks khuram noman __ Do you Yahoo!?

[PHP] Re: Search in PhP

2003-07-30 Thread Nadim Attari
> i have a site in php but not using database i want to > add the search facilty in that site means user can > search into the contents of the site .so how can i do > that in php without using database.waiting for ur soon > reply Hello, - First of all try to get a list of all files (php, html, et

php-general Digest 30 Jul 2003 10:22:15 -0000 Issue 2206

2003-07-30 Thread php-general-digest-help
php-general Digest 30 Jul 2003 10:22:15 - Issue 2206 Topics (messages 157459 through 157503): Re: Rounding issue 157459 by: Kevin Ison Re: session_set_cookie_params 157460 by: John W. Holmes 157462 by: Curt Zirzow Re: learning php - problem already 157461 by

Re: [PHP] Search in PhP

2003-07-30 Thread Nicholas Robinson
Try running a exec() running a grep command on your DocumentRoot. something like 'grep -ril fred * would just produce the filenames containing fred or -ri would display the context. You could then produce links to the files from the resulting output. HTH On Wednesday 30 Jul 2003 10:51 am, khu

[PHP] Re: Mail funtion question

2003-07-30 Thread Irvin Amoraal
Thanks for your reply Bobby. I thought I might be able to use the @ to supress the errors. The way you wrote the code below is close to what I am doing, sending the bulk emails one at a time. I didn't see anything like $result= @mail($to, $subject, $msg) in the online PHP documentation. but it

[PHP] mnoGoSearch

2003-07-30 Thread imran
hi Anyone tell that abt mnoGoSearch function can config on WNT server. imran

[PHP] Location header - slow redirect

2003-07-30 Thread admin
I'm using the following short script to redirect users to another page on my site (php 4.3.2, Apache 2.0.47). http://"; . $_SERVER['HTTP_HOST'] . "/" . $goLang . "/"); exit; ?> I'm having a problem where it takes up to 15 seconds for the redirect page to load, but for other redirects on the site

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-30 Thread John W. Holmes
Ney André de Mello Zunino wrote: Ray Hunter wrote: $fooVar = mysql_fetch_assoc($result)["barColumn"]; No bug here...mysql_fetch_assoc($result) is a function that takes a result set as an argument and returns only one row as an associated array...that is why you need to do Thanks for the quick

[PHP] hehe....is this a repost?

2003-07-30 Thread Dan Anderson
Student Suspended over Use of PHP: http://bbspot.com/News/2000/6/php_suspend.html -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Location header - slow redirect

2003-07-30 Thread Nicholas Robinson
try putting this after the header: echo ""; It forces the redirect to take place immediately (in most cases!). HTH On Wednesday 30 Jul 2003 11:53 am, admin wrote: > I'm using the following short script to redirect users to another page > on my site (php 4.3.2, Apache 2.0.47). > > $goLang='en';

Re: [PHP] Location header - slow redirect

2003-07-30 Thread Phill Ashworth
Excellent, that does the trick. Thank you Phil On Mercoledì, lug 30, 2003, at 13:56 Europe/Rome, Nicholas Robinson wrote: try putting this after the header: echo ""; It forces the redirect to take place immediately (in most cases!). HTH On Wednesday 30 Jul 2003 11:53 am, admin wrote: I'm usin

[PHP] Updating a table after a successful download

2003-07-30 Thread Luis Lebron
I currently have some code in a document management system that is used to check-out a document. It looks like this: //Update the status of the document $query = "UPDATE $table_data SET status = '$SESSION_UID' WHERE id = '$id'"; $result=&$conn->Execute($query); //Download the document. header ("

[PHP] Querying a form

2003-07-30 Thread Gerard Samuel
Im looking for links to tutorials, or if someone can post code here, where php can be used to query a form, so that I can retrieve its results. Thanks for any pointers... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Fw: [PHP] debuging and getting mor information about failures

2003-07-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: 29 July 2003 19:22 > To: Ford, Mike [LSS]; Gabriel Guzman; Peter James > Cc: [EMAIL PROTECTED] > Subject: RE: Fw: [PHP] debuging and getting mor information about > failures > > > Ford, Mike > on Tuesday,

[PHP] capturing reloads

2003-07-30 Thread Diana Castillo
anyone know how to catch if someone has reloaded a page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Updating a table after a successful download

2003-07-30 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 30 Jul 2003 at 13:46, lines prefixed by '>' were originally written by you. > The problem I am having is that when the download is canceled by the > user > the document still shows up as being checked out. Is there a way to > know if > the

RE: [PHP] capturing reloads

2003-07-30 Thread Donald Tyler
The only way I know is to use sessions. Each time they load the page, you would check a session variable that you use store the status of a specific page. E.g. if($_SESSION['ReloadStatus']['ContactUs'] == true) { //Page has already been loaded once. This is a reload. //---

[PHP] Free'ing Sockets Error

2003-07-30 Thread Adam Voigt
I cannot make PHP release the port after it binds to it, the following script should just open a port, accept one line of input, write the contents to the out file, then unbind and close the connection. It works fine, with the exception of if I run it again, it reads the port as still being bound.

Re: [PHP] capturing reloads

2003-07-30 Thread Chris Boget
> The only way I know is to use sessions. > > Each time they load the page, you would check a session variable that you > use store the status of a specific page. E.g. > > if($_SESSION['ReloadStatus']['ContactUs'] == true) > { > //Page has already been loaded once. This is a reload. > //[

RE: [PHP] Updating a table after a successful download

2003-07-30 Thread Luis Lebron
I tried changing the code to: // send headers to browser to initiate file download header ("Content-Type: application/octet-stream"); header ("Content-Disposition: attachment; filename=$realname"); readfile($filename); if(connection_aborted()==0) {

[PHP] [bug?] good old upload problem

2003-07-30 Thread Robert Janeczek
php 4.2.3 apache 1.3.20 when uploading files bigger than limits set in php.ini warning is being reported (in files) and no further script execution takes place. to be specific - it looks like no execution is being made at all. i get 0 bytes response. i don`t want to upload files bigger then limit

Re: [PHP] Updating a table after a successful download

2003-07-30 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 30 Jul 2003 at 14:43, lines prefixed by '>' were originally written by you. > I tried changing the code to: > // send headers to browser to initiate file download > header ("Content-Type: application/octet-stream"); > header ("

[PHP] Re: include and imagejpg() weird behavior - maybe header?

2003-07-30 Thread Rob Adams
I copied and pasted your code into two different files, changed the image name (of course) and it worked just fine on the first try for me. You must have something being output before your header() call. If you can't find it, send me your two files and I'll try running them on my server. -- Ro

[PHP] Please Help

2003-07-30 Thread Safal Solutions
Hello friends, 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. what is my requirment --- that assigned value in simple.php to a variable should displa

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.

[PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Hi! I've got a problem with preconfigured server (Apache 1.3/MySQL 3/PHP 4): Files and directories created by a PHP script are always owned by the apache user and apache group. But the script itself is inside of a virtualhost which has another user and group (web2 / ftponly)! So in fact the sc

Re: [PHP] capturing reloads

2003-07-30 Thread Curt Zirzow
* Thus wrote Diana Castillo ([EMAIL PROTECTED]): > anyone know how to catch if someone has reloaded a page? The way I prevent reloads is with a combination of session variables and an extra form field, here is how I go about it: form_page.php: process_page.php: http://www.php.net/) To unsubsc

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread CPT John W. Holmes
> I've got a problem with preconfigured server (Apache 1.3/MySQL 3/PHP 4): > > Files and directories created by a PHP script are always owned by the apache > user and apache group. But the script itself is inside of a virtualhost > which has another user and group (web2 / ftponly)! > > So in fact t

[PHP] Re: How can I add records to database every 60 minutes???

2003-07-30 Thread erythros
even when youre not online? is the database online or local? another question is how is the game played in php? i take it scripts are being called over and over right? if so then add a time function to one of those scripts. when gameplay starts load the time to mysql (or a file) and then ever

Re: [PHP] Re: How can I add records to database every 60 minutes???

2003-07-30 Thread skate
>i take it scripts are being called over and over right? if so then add a > time function to one of those scripts. when gameplay starts load the time to > mysql (or a file) and then everytime the script is run check the time to see > if the time has exceeded 60 minuets, if it has run you php s

[PHP] Global variables in a class? Nested classes VS inheritance...

2003-07-30 Thread anachronism
Hello, I'm lookin for some tips on the best way to do this... I make a database connection outside of my classes... lets call it $myDBConnection. I need to use this connection in a class nested in a class... Was wondering the most efficient way of doing this? I don't want to create a new db conne

[PHP] Re: looking for some kind of CMS breakthough (slightly OT)

2003-07-30 Thread bill
I'd recommend starting simple. Paragraph breaks are two carriage returns (Enter, Enter). Give the writers some ability to do bold, italic, etc. by using something that isn't html (I don't store html tags in text fields). For example +b+would make this bold-b-, or +i+would make this italic-i-. Y

Re: [PHP] Search in PhP

2003-07-30 Thread Pradeep D'souza
Option 1 : use Javascript { Lot of free scripts on the internet } Option 2 : Use an array filled with information Rgds, Pradeep - Original Message - From: "khuram noman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 3:21 PM Subject: [PHP] Search in PhP >

[PHP] formating date

2003-07-30 Thread Gronquist, Jim M
My script currently works; printing the date that it extracts from mysql table. It prints the date as: 2004-01-29 $mailed=$row["mailed"]; $payment=$row["payment"]; $ID=$row["ID"]; echo "$mailed$payment"; I'm trying to change the format so that the date appears as: January 29, 20

Re: [PHP] Re: How can I add records to database every 60 minutes???

2003-07-30 Thread erythros
yea... if no one hits the website for hours then only a few updates will occur. you could however write a very small javascript to call on a php script every hour. "Skate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >i take it scripts are being called over and over right?

Re: [PHP] Global variables in a class? Nested classes VS inheritance...

2003-07-30 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 1:30:54 AM, you wrote: amc> Hello, amc> I'm lookin for some tips on the best way to do this... amc> I make a database connection outside of my classes... lets call it amc> $myDBConnection. I need to use this connection in a class nested in a amc> class... Was wonderi

RE: [PHP] formating date

2003-07-30 Thread Peter Knight
> -Original Message- > > > My script currently works; printing the date that it extracts from mysql > table. > > It prints the date as: > > > > 2004-01-29 > > > > $mailed=$row["mailed"]; > > $payment=$row["payment"]; > > $ID=$row["ID"]; > > echo "$mailed$payment"; > > > > > > I'm trying to

Re: [PHP] capturing reloads

2003-07-30 Thread Pete James
My personal favourite is to logically separate actions and views, which is very easy to do and is virtually foolproof. This way a user submits a form to a page that outputs nothing. This page does its work, then redirects to another page which only shows data. This is invisible to the user, a

[PHP] solution/thanks re: date format

2003-07-30 Thread Gronquist, Jim M
Great! I actually had 2 dates - using your suggestion as follows worked: $mailed=3D$row["mailed"]; $payment=3D$row["payment"]; $ID=3D$row["ID"]; $Timestamp=3Dstrtotime($row[mailed]); $mailedf=3Ddate("F d, Y",$Timestamp); $Timestamp=3Dstrtotime($row[payment]); $paymentf=3Ddate("F d, Y",

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Cpt John W. Holmes wrote: >> So in fact the script has to run with the rights of the user web2?? > Perhaps >> it does, but files/dirs are create with owner apache. > > PHP runs as a module inside of apache, so any files it creates are owned > by the Apache user. That's the way it works. > > If y

[PHP] PHPSESSID AND SID

2003-07-30 Thread Daryl Meese
This should be a simple question but I can't find the answer in the manual. is it necessary to global variables or constants in functions? i.e. function Foo() { global $PHPSESSID; global SID; // how would you do that anyway? } Thanks in advance Daryl -- PHP General Mailing List (http://ww

Re: [PHP] Re: looking for some kind of CMS breakthough (slightly OT)

2003-07-30 Thread Mark
But isn't this just defining your own version of something like bbcode? And wouldn't you be better off using bbcode in that case, when there are plenty of classes for parsing it already out there? You could even edit the parsers to limit the set of tags available to your users. --- bill <[EMAIL

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Curt Zirzow
* Thus wrote Joachim ([EMAIL PROTECTED]): > Cpt John W. Holmes wrote: > > >> So in fact the script has to run with the rights of the user > >> web2?? > > Perhaps > >> it does, but files/dirs are create with owner apache. > > > > PHP runs as a module inside of apache, so any files it creates > > a

[PHP] looking for scheduling program

2003-07-30 Thread Chris W. Parker
Hello, I'm looking for a fairly simple program. What I want is a program that will send an email to a predetermined address at a predetermined time. For example, I forget my family and friends birthdates very easily. I'd like to enter a "task" or a "note" for each person and tell the program to r

RE: [PHP] looking for scheduling program

2003-07-30 Thread Dan Joseph
Hi Chris, its always more fun to write your own, however, check php project our (might be spelled projekt, I can't remember). Should be on freshmeat or sourceforge. It might do what you want. -Dan Joseph > -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > S

Re: [PHP] looking for scheduling program

2003-07-30 Thread Richard Baskett
Or just go to http://www.birthdayalarm.com/ and have them do it for you :) I regard as a mortal sin not only the lying of the senses in matters of love, but also the illusion which the senses seek to create where love is only partial. I say, I believe, that one must love with all of one's being, o

Re: [PHP] Re: looking for some kind of CMS breakthough (slightlyOT)

2003-07-30 Thread Pete James
Why not use a wysiwyg edit box? There are quite a few of them... unless you don't want to restrict your users too much. http://www.labs4.com/htmleditbox/2.0/demo.php Mark wrote, On 2003/Jul/30 11:11 AM: But isn't this just defining your own version of something like bbcode? And wouldn't you be

RE: [PHP] looking for scheduling program

2003-07-30 Thread Chris W. Parker
Richard Baskett on Wednesday, July 30, 2003 10:44 AM said: > Or just go to http://www.birthdayalarm.com/ and have them do it for > you :) That is a very cool idea, except that I want to schedule anything at all and have access to the code. But still that's a great t

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Curt Zirzow wrote: >> This way, it seems to me like security hole, because I have to >> use 0777 while creating, then everybody could do everything with >> the files. Well, there is the open_basedir setting, put then, >> what's about other user doing other things (not PHP)? >> > > Yes that is a

[PHP] List Administrator

2003-07-30 Thread Johnny Martinez
List Administrator, Google spidered the web view to the list and is indexing our email addresses. Any chance you can edit the code to change "[EMAIL PROTECTED]" to show as "user at domain dot com" as many of the public message boards do? This will help reduce the spam we get. Johnny -- PHP Gener

[PHP] php error log : productinfo finished message

2003-07-30 Thread Merlin
Hi there, I have some wired messages inside my php errorlog file, telling me: [30-Jul-2003 20:02:53] ProductInfo finished There is an entry every few seconds! Does anybody know what this means? Thanx, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP] List Administrator

2003-07-30 Thread Chris W. Parker
Johnny Martinez on Wednesday, July 30, 2003 11:07 AM said: > Google spidered the web view to the list and is indexing our email > addresses. Any chance you can edit the code to change > "[EMAIL PROTECTED]" to show as "user at domain dot com" as many of the > public m

RE: [PHP] List Administrator

2003-07-30 Thread Johnny Martinez
www.phpbuilder.com is doing this. J -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:07 AM Cc: [EMAIL PROTECTED] Subject: [PHP] List Administrator List Administrator, Google spidered the web view to the list and is indexing our email a

RE: [PHP] List Administrator

2003-07-30 Thread Johnny Martinez
ack! these folks are doing it too: http://archives.neohapsis.com -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:14 AM Cc: [EMAIL PROTECTED] Subject: RE: [PHP] List Administrator www.phpbuilder.com is doing this. J -Original Mess

RE: [PHP] List Administrator

2003-07-30 Thread Lars Torben Wilson
On Wed, 2003-07-30 at 11:11, Chris W. Parker wrote: > Johnny Martinez > on Wednesday, July 30, 2003 11:07 AM said: > > > Google spidered the web view to the list and is indexing our email > > addresses. Any chance you can edit the code to change > > "[EMAIL PROTECTED

[PHP] Simple date question

2003-07-30 Thread Roy W
If I have: $firstdate = "2003-06-28"; then how can I get $firstdate plus 4 days? Thanks!

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Curt Zirzow
* Thus wrote Joachim ([EMAIL PROTECTED]): > Curt Zirzow wrote: > > >> This way, it seems to me like security hole, because I have to > >> use 0777 while creating, then everybody could do everything with > >> the files. Well, there is the open_basedir setting, put then, > >> what's about other user

Re: [PHP] List Administrator

2003-07-30 Thread Curt Zirzow
* Thus wrote Johnny Martinez ([EMAIL PROTECTED]): > List Administrator, > Google spidered the web view to the list and is indexing our email > addresses. Any chance you can edit the code to change "[EMAIL PROTECTED]" to > show as "user at domain dot com" as many of the public message boards do? > T

Re: [PHP] php error log : productinfo finished message

2003-07-30 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): > Hi there, > > I have some wired messages inside my php errorlog file, telling me: > > [30-Jul-2003 20:02:53] ProductInfo finished > > There is an entry every few seconds! Does anybody know what this means? most likely a php script is using syslog() to

Re: [PHP] List Administrator

2003-07-30 Thread Lars Torben Wilson
On Wed, 2003-07-30 at 11:07, Johnny Martinez wrote: > List Administrator, > Google spidered the web view to the list and is indexing our email > addresses. Any chance you can edit the code to change "[EMAIL PROTECTED]" to > show as "user at domain dot com" as many of the public message boards do? >

Re: [PHP] List Administrator

2003-07-30 Thread John Manko
do they just scan the pages, or do they look at the final ouput (ei, after all the document.write's)? I dont know much about this stuff. document.write("user" + "@" + "domain." + "com"); Johnny Martinez wrote: List Administrator, Google spidered the web view to the list and is indexing our em

Re: [PHP] php error log : productinfo finished message

2003-07-30 Thread Merlin
> most likely a php script is using syslog() to report that > 'ProductInfo finished'. what is syslog and which ProductInfo? Can you be more specific? Thanx, merlin --