Re: [PHP] Sending POST vars to pop-up window - How?

2002-11-24 Thread Scott Houseman
Hi there Try this: Leave your form tag as it is. Put a TARGET="_NEW" parameter into your form tag. This should submit the form via POST to a new window. You could then put some javascript into this window's html to resize the window etc. OR when the submit button is clicked, in the onClick( )

[PHP] Connection string and Monday Morning blues

2002-11-24 Thread Paul Dionne
Ug, I hate Mondays. must drink more coffee. Anyway, got a problem I hope someone can help with or at least jumpstart my brain. I wrote a few web pages, work fine on my machine. Uploaded them on Friday and they don't seem to work. Looks like I am not connecting to the database because every

[PHP] Sending POST vars to pop-up window - How?

2002-11-24 Thread Monty
I'm writing a poll app. I want it to work this way: 1. On web page, user selects choice, clicks VOTE. 2. Clicking VOTE triggers a pop-up window. 3. PHP script running in pop-up records vote, displays results. Problem is, POSTed vars that come from forms aren't available in the popup

Re: [PHP] Re: BBCode?

2002-11-24 Thread Leif K-Brooks
Thanks a lot, but do you know how to do the same with ereg_replace? I'm trying to learn PCRE, but until I do, I won't be able to add anything to this... Jason Wong wrote: It's not working because it's doing a greedy match. Try (I prefer the PCRE functions over EREG): $text = preg_replace("/

[PHP] Re: image generation with PHP

2002-11-24 Thread Jason Young
Did you tell php.ini to load this extension, and then restart your webserver? (I am taking it that you're using IIS or PWS? -- Someone else will have to field the question on whether or not GD/PHP works with this.. I would imagine so, but I am not sure enough to put any money on it :) ) Myrage

Re: [PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
This code is simply not suitable. The object is to replace tags as an entity as opposed to simply replacing '[' with '<'. Obviously not. I was not fully aware of what he required. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.

Re: [PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
Thanks, but that isn't what I want. The point behind BBCode is allowing a small, simpler, securer, subset of HTML. I.e. [img=http://domain.com/image.gif] changes to http://domain.com/image.gif"; alt="" /> In that case: \\2',$text); return $text; } print bbcode('[i]This[/i] is a [i]test[/i].')

Re: [PHP] Re: BBCode?

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 14:20, Kyle Gibson wrote: > Leif K-Brooks wrote: > > I'm working on adding simple BBCode to my site. I'm currently using the > > [i] tag for testing, with the following code: > > > > > function bbcode($text){ > > $text = ereg_replace('\\[i\\](.{1,})\\[/i\\]','\\1',$text

Re: [PHP] Re: BBCode?

2002-11-24 Thread Leif K-Brooks
Thanks, but that isn't what I want. The point behind BBCode is allowing a small, simpler, securer, subset of HTML. I.e. [img=http://domain.com/image.gif] changes to http://domain.com/image.gif"; alt="" /> Kyle Gibson wrote: Leif K-Brooks wrote: I'm working on adding simple BBCode to my si

[PHP] Re: BBCode?

2002-11-24 Thread Kyle Gibson
Leif K-Brooks wrote: I'm working on adding simple BBCode to my site. I'm currently using the [i] tag for testing, with the following code: function bbcode($text){ $text = ereg_replace('\\[i\\](.{1,})\\[/i\\]','\\1',$text); return $text; } print bbcode('[i]This[/i] is a [i]test[/i].'); ?> Bu

[PHP] BBCode?

2002-11-24 Thread Leif K-Brooks
I'm working on adding simple BBCode to my site. I'm currently using the [i] tag for testing, with the following code: function bbcode($text){ $text = ereg_replace('\\[i\\](.{1,})\\[/i\\]','\\1',$text); return $text; } print bbcode('[i]This[/i] is a [i]test[/i].'); ?> But it prints "This[/i] is

[PHP] Re: image generation with PHP

2002-11-24 Thread Myrage
No luck I have installed GD lib and zlib and all into c:\php\extensions bur i still get an error Fatal error: Call to undefined function: imagecreate() in c:\inetpub\wwwroot\image.php on line 24 image.php code : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 13:33, John Taylor-Johnston wrote: > Sorry Jason ... No offense, Don't apologise to me. Apologise to the list members if you have to. > I learned my MySQL here :) Jolly good. > It's for a PHP > script, after all. And what has this got to do with the price of fish?

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread John Taylor-Johnston
Jason, Sorry Jason ... No offense, I learned my MySQL here :) It's for a PHP script, after all. Besides unless I want to fill my mail box quota in 3 minutes ... Here I can post using a news-reader. Can anyone out there help :) please? John > On Monday 25 November 2002 10:59, John Taylor-Johnst

[PHP] Re: image generation with PHP

2002-11-24 Thread Jason Young
You'll need the full PHP package (the 5 MB zip file, not the 400k quickie) .. it'll be in the extensions/ directory of there.. php_gd.dll.. Myrage wrote: i am using windows and I cannot seem to find the necessary libs and dlls "Jason Young" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

[PHP] Re: image generation with PHP

2002-11-24 Thread Myrage
i am using windows and I cannot seem to find the necessary libs and dlls "Jason Young" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I did this just today -- > http://www.php.net/manual/en/function.imagecreate.php > > Its real short and sweet. If you're runni

[PHP] Re: image generation with PHP

2002-11-24 Thread Jason Young
I did this just today -- http://www.php.net/manual/en/function.imagecreate.php Its real short and sweet. If you're running on Linux, I'm sure you'll be able to get it to work just fine - on Windows, make sure you have the gd extention, and that it will be loaded with php.ini. Hope this helps!

Re: [PHP] Passing Variables

2002-11-24 Thread Jason Wong
On Sunday 24 November 2002 03:42, Craig Edgmon wrote: > I am sure this question has been answered, but there is a ton of data to > sift through on this. By asking again and having people answer again you'll be generating MORE data for the next person who asks to sift through. >I am running Apac

RE: [PHP] dynamic arraynames

2002-11-24 Thread John W. Holmes
I'm sorry, but I'm still confused. Can you show us a sample of the data in the database and what you want the resulting form to look like for that data? Maybe that'll help. ---John Holmes... > -Original Message- > From: Floyd Baker [mailto:[EMAIL PROTECTED]] > Sent: Sunday, November 24, 2

[PHP] image generation with PHP

2002-11-24 Thread Myrage
is it possible to generate images with texts automatically?? like for eg. if the text is 7555 then automatically an image is generated with the text 7555 in it any help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamic arraynames

2002-11-24 Thread Floyd Baker
Thank you for your efforts. The ideas are helping but sorry I am not clear. Not used to expressing myself regarding the coding I do. What I am looking to do is this: >From a loop that is reading a list of titles, I want to input pieces of information to each... The input fields will be in a

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Jason Wong
On Sunday 24 November 2002 22:58, DL Neil wrote: > Neatly done Ernest! > Also in showing how these questions are best answered with five minutes on > the PC, than a msg to the list... ... until someone else comes along and asks a similar question and you have to show them again how it's best answ

Re: [PHP] Secureing PHP.

2002-11-24 Thread Jason Wong
On Sunday 24 November 2002 14:41, Steven Adams wrote: > Hi, > I am looking to secure my php install, like the settings in php.ini > etc. > > I am using apache 1.3.27 and running latest php. > > Is there like a tut or something that can take u thought the php.ini and > explain ina little more de

Re: [PHP] Stripslashes through an array.........

2002-11-24 Thread Jason Wong
On Sunday 24 November 2002 20:30, Cookra wrote: > Hi all is it possible to stripslahes from this query? > > > > $results = mysql_query("SELECT * FROM $DB_Table_A ORDER BY name ASC LIMIT > $page, $limit"); > > while ($data = (mysql_fetch_array($results))) > { > //-->< something here would be nice >

RE: [PHP] inserting preexisting image inside dynamic image

2002-11-24 Thread Martin Towell
try these: ImageCopy*() -Original Message- From: Eric Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] inserting preexisting image inside dynamic image Hi there... Just wondering... when creating a dynamic image, is there a w

Re: [PHP] Re: security of stand alone script

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 02:10, gamin wrote: > i guess i can use $remote_addr to see if the user has an IP. > > But still out of curosity - any way of knowing the user that called the > script ? Use phpinfo(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

[PHP] inserting preexisting image inside dynamic image

2002-11-24 Thread Eric Pierce
Hi there... Just wondering... when creating a dynamic image, is there a way/fuction to insert an existing image using x,y coordiantes for precision? I'm trying to make a statistical graph script using some nice looking graphics. Thanks for any tips! Eric ___

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 10:59, John Taylor-Johnston wrote: > MySQL4.0.1 Question. HTOK > > FULLTEXT index confusion. > > Why does my SQL work? > > SELECT YR,AU,ST,SD,SC,BT,BD,BC,AT,AD,AC,AUS > FROM ccl_main > WHERE MATCH (AUS) > AGAINST ('+margaret +atwood' IN BOOLEAN MODE) > ORDER BY id desc >

[PHP] PHP version of WebMin?

2002-11-24 Thread Petras Virzintas
Hi, is there a PHP version of WebMin (written in Perl) or something better? Thanks in advance Petras Virzintas

Re: [PHP] quick sanity check on user management / sessions

2002-11-24 Thread Justin French
Thanks all :) > That's what all my apps do - they just check if the user is already logged in. > > When there's no "user record" in session space, the login box gets > displayed, and as a response of user login the script checks the database. > It then reads all necessary data, including last log

[PHP] Browser going to page twice?

2002-11-24 Thread Leif K-Brooks
I'm having a weird problem. When I submit a form on my site, it often sends twice. I'm not sure if this is a client-side or server-side problem, but it doesn't happen on other sites. Is this a common problem, or am I making some dumb mistake? -- The above message is encrypted with double rot

Re: [PHP] quick sanity check on user management / sessions

2002-11-24 Thread Ernest E Vogelsinger
At 03:33 25.11.2002, Justin French said: [snip] >I know the above should be fine, but I'm just checking if there's any reason >why I choose to call the DB on every page... it was about 2 years ago, so my >guess is "inexperience" :) [snip]-

RE: [PHP] What is wrong here?

2002-11-24 Thread Ernest E Vogelsinger
At 03:27 25.11.2002, Cesar Aracena said: [snip] >what you mean by "snoop the HTTP traffic" but if it has something to do >with the server, then no I can't... [snip] Make a telnet www.mydomain.com 80 and transmit s

Re: [PHP] quick sanity check on user management / sessions

2002-11-24 Thread Chris Shiflett
--- Justin French <[EMAIL PROTECTED]> wrote: > I just need a quick sanity check. I'm no doctor, but I think you're sane. :-) > For some reason (inexperience probably, or a bad > article), it was set-up so that both the uid and pwd > were set as session variables, and EACH PAGE on the > site chec

[PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread John Taylor-Johnston
MySQL4.0.1 Question. HTOK FULLTEXT index confusion. Why does my SQL work? SELECT YR,AU,ST,SD,SC,BT,BD,BC,AT,AD,AC,AUS FROM ccl_main WHERE MATCH (AUS) AGAINST ('+margaret +atwood' IN BOOLEAN MODE) ORDER BY id desc AUS is not part of my FULLTEXT Index. So why does it work? How does FULLTEXT work

[PHP] quick sanity check on user management / sessions

2002-11-24 Thread Justin French
Hi all, I just need a quick sanity check. I was going through some old scripts, cleaning them up, optimising them, etc etc... and then I opened my OLD user/sessions management library... For some reason (inexperience probably, or a bad article), it was set-up so that both the uid and pwd were se

RE: [PHP] What is wrong here?

2002-11-24 Thread Cesar Aracena
In response to all of you wonderful people: Leif, yes and no... I've tried all kind of URLs Ernest, I think you're on the right track here... I'll try that. Kyle, no... I made those errors in the past, so now I make sure I don't (again :) Chris, I tend to forget to append the / after the URL so

Re: [PHP] Creating mySql search feature.....

2002-11-24 Thread Cookra
Thank you Marek "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You first need to separate the words and then build your query: > > $words = explode(' ',$S_For); > $cond=''; > foreach($word as $str) { > $cond .= " $S_From LIKE '%$s

RE: [PHP] date queries

2002-11-24 Thread John W. Holmes
> Sorry for this post I know this is a mysql related question, i just wanna > have other comments.suggestions from this list. > I have a problem regarding date queries in mysql. Im creating inventory > reports in PHP. I want to query from the date field a weekly report for a > specific month, year

Re: [PHP] What is wrong here?

2002-11-24 Thread Chris Shiflett
--- Cesar Aracena <[EMAIL PROTECTED]> wrote: > I have trouble with header("Location... because the > browser is NOT redirected. If I set an echo statement > after I detected that the username and password using > $_POST[""], the echo goes OK but if I comment the echo > and un-comment the > > hea

Re: [PHP] What is wrong here?

2002-11-24 Thread Kyle Gibson
I'm making a site which will reside in a remote server and had several problems... most of them where solved once I saw that register_globals are OFF, but now I don’t know which other settings are affecting my scripts. I have trouble with header("Location... because the browser is NOT redirected.

Re: [PHP] What is wrong here?

2002-11-24 Thread Ernest E Vogelsinger
At 03:05 25.11.2002, Cesar Aracena said: [snip] >I'm making a site which will reside in a remote server and had several >problems... most of them where solved once I saw that register_globals >are OFF, but now I don't know which other settings are affecting m

Re: [PHP] What is wrong here?

2002-11-24 Thread Leif K-Brooks
Are you using a relative url for the redirection? Cesar Aracena wrote: Hi all, I'm making a site which will reside in a remote server and had several problems... most of them where solved once I saw that register_globals are OFF, but now I dont know which other settings are affecting my script

[PHP] What is wrong here?

2002-11-24 Thread Cesar Aracena
Hi all, I'm making a site which will reside in a remote server and had several problems... most of them where solved once I saw that register_globals are OFF, but now I don’t know which other settings are affecting my scripts. I have trouble with header("Location... because the browser is NOT redi

[PHP] date queries

2002-11-24 Thread Michael P. Carel
Hi to all, Sorry for this post I know this is a mysql related question, i just wanna have other comments.suggestions from this list. I have a problem regarding date queries in mysql. Im creating inventory reports in PHP. I want to query from the date field a weekly report for a specific month, ye

Re: [PHP] perplexed as to why this is happening...

2002-11-24 Thread Kyle Gibson
Howdy, I'm doing a simple db check.. grabbing a db value, in this case $sec, based on the user name registered in the session, I've created a user called test with $sec equal to "2" but when i get to the second echo of $sec the value has changed to "1" and I can't understand why... can some one p

RE: [PHP] perplexed as to why this is happening...

2002-11-24 Thread Peter Houchin
thanks for that .. I must be going blind :) > -Original Message- > From: Michael Hazelden [mailto:[EMAIL PROTECTED]] > Sent: Monday, 25 November 2002 11:44 AM > To: 'Peter Houchin'; php_gen > Subject: RE: [PHP] perplexed as to why this is happening... > > > Ahem ... > > $sec=1 means "se

RE: [PHP] perplexed as to why this is happening...

2002-11-24 Thread Michael Hazelden
Ahem ... $sec=1 means "set $sec to 1" You want $sec==1 :-) M. -Original Message- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: 25 November 2002 00:53 To: php_gen Subject: [PHP] perplexed as to why this is happening... Howdy, I'm doing a simple db check.. grabbing a db value,

[PHP] perplexed as to why this is happening...

2002-11-24 Thread Peter Houchin
Howdy, I'm doing a simple db check.. grabbing a db value, in this case $sec, based on the user name registered in the session, I've created a user called test with $sec equal to "2" but when i get to the second echo of $sec the value has changed to "1" and I can't understand why... can some one p

Re: [PHP] Re: php and caching

2002-11-24 Thread Ernest E Vogelsinger
At 01:04 25.11.2002, Alex said: [snip] >If the page itself is never cached to force dynamic php pages to always be >"fresh", is there a way to cache only images to reduce bandwidth usage? [snip] Alex, images are a se

[PHP] Re: php and caching

2002-11-24 Thread Alex
If the page itself is never cached to force dynamic php pages to always be "fresh", is there a way to cache only images to reduce bandwidth usage? Thanks, (and thanks for all your good advices!) "Alex" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I h

Re: [PHP] Re: php and caching

2002-11-24 Thread Robert Cummings
Ernest E Vogelsinger wrote: > > If you read my complete post you'll notice that I suggested using session > variables. The issue why I first answered the question _without_ talking > about session variables is the fact that Alex was talking about a search > form. Search forms are often used on "no

Re: [PHP] Parse URLs

2002-11-24 Thread Stephen
Yes, I found that after posting my last message. Sorry and I'll use google more... - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Sunday, November 24, 2002 6:42 PM Subject: Re: [PHP] Parse URLs > Bef

Re: [PHP] Re: php and caching

2002-11-24 Thread Ernest E Vogelsinger
At 00:27 25.11.2002, Robert Cummings said: [snip] >> You can't have all of both worlds - either allow the browser to cache, then >> the form content will be still available from the button. Or you >> disallow caching, then it won't. > >Actually you can. Try

Re: [PHP] Re: php and caching

2002-11-24 Thread Robert Cummings
Ernest E Vogelsinger wrote: > > At 22:38 24.11.2002, Alex said: > [snip] > >But my main page, for instance mail.php, includes top.php and bottom.php. > >But top.php must be processed each time because it prints on every page on > >my site if the user has ne

Re: [PHP] Parse URLs

2002-11-24 Thread Justin French
Before asking, you should have done a search at google.com... I searched for 'emoticons replace php', and it returned HEAPS of results, including this one, which seems close to what you're asking... http://www.devarticles.com/art/1/161/2 Search the archives and google before posting please! Jus

[PHP] Re: Sorting parsed XML

2002-11-24 Thread Chris
I'm trying to write PHP code that will not only parse the XML but also allow me to sort the parsed information by the values parsed. Current code == class RSSParser { var $insideitem = false; var $tag = ""; var $ServerName = ""; var $ServerStatus = ""; var $ServerType = ""; var $Ser

Re: [PHP] Another cookie question

2002-11-24 Thread Ernest E Vogelsinger
At 22:14 24.11.2002, Øystein Håland said: [snip] >In the purpose of getting access to mydomain.se/ha/ I will set a cookie: >setcookie ("login", "OK", time()+3600, "/ha/"); >It looks like the cookie is set since I get the confirmation text (of course >placed i

Re: [PHP] Re: php and caching

2002-11-24 Thread Ernest E Vogelsinger
At 22:38 24.11.2002, Alex said: [snip] >But my main page, for instance mail.php, includes top.php and bottom.php. >But top.php must be processed each time because it prints on every page on >my site if the user has new messages. But if all pages are cached,

[PHP] Re: php and caching

2002-11-24 Thread Alex
But my main page, for instance mail.php, includes top.php and bottom.php. But top.php must be processed each time because it prints on every page on my site if the user has new messages. But if all pages are cached, then it's always the cached version that's printed to the user, so even if he has

php-general Digest 24 Nov 2002 21:40:01 -0000 Issue 1724

2002-11-24 Thread php-general-digest-help
php-general Digest 24 Nov 2002 21:40:01 - Issue 1724 Topics (messages 125773 through 125836): Re: Newbie: element index array 125773 by: Chase Urich 125774 by: Kyle Gibson Re: does //commenting reduce performance? 125775 by: Kyle Gibson 125781 by: DL Neil

[PHP] Re: Another cookie question

2002-11-24 Thread Kyle Gibson
In the purpose of getting access to mydomain.se/ha/ I will set a cookie: setcookie ("login", "OK", time()+3600, "/ha/"); Not sure if this is the case, but try this instead: setcookie ("login", "OK", time()+3600, "/ha/","mydomain.se"); -- Kyle Gibson admin(at)frozenonline.com http://www.frozenon

[PHP] Another cookie question

2002-11-24 Thread Øystein Håland
In the purpose of getting access to mydomain.se/ha/ I will set a cookie: setcookie ("login", "OK", time()+3600, "/ha/"); It looks like the cookie is set since I get the confirmation text (of course placed inside the codeblock where the cookie is 'set' (?). Probably it just confirm that it has found

Re: [PHP] php and caching

2002-11-24 Thread Ernest E Vogelsinger
At 20:34 24.11.2002, Marco Tabini said: [snip] >header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past [snip] You should avoid this since most modern search engines would throw the site away because

Re: [PHP] php and caching

2002-11-24 Thread Marco Tabini
Caching is usually managed through a set of headers--for example: You can use these in the pages that are dynamic and omit them in those pages where you want to keep the information. Cheers, Marco php|architect - The magazine for PHP Professionals The monthly worldwide magazine d

Re: [PHP] Insert file into sql server binary field.

2002-11-24 Thread Chris Shiflett
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > BLOB is like TEXT In what way? BLOB is binary large object. Text is ... text. One is binary, and the other is ASCII. The only similarity I can think of is that they both represent data. However, the format is completely different. Open up a binary

[PHP] getting mysql dump using php

2002-11-24 Thread See Kok Boon
thanks Edwin!! oki... now that i can create the dump, i'll just use lynx from crontab to send the dump as attachment to my email. thanks! -Original Message- From: @ Edwin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 9:24 PM To: See Kok Boon Cc: [EMAIL PROTECTED] Subject: Re:

Re: [PHP] Re: security of stand alone script

2002-11-24 Thread Ernest E Vogelsinger
At 19:10 24.11.2002, gamin said: [snip] >i guess i can use $remote_addr to see if the user has an IP. > >But still out of curosity - any way of knowing the user that called the >script ? [snip] If the script is called

[PHP] Cookies

2002-11-24 Thread Omid
Hello, I have PHP v4.2.3 on Windows 2000 Advanced Server with Microsoft SQL Server v7.0, and a script for domain registration via OnlineNIC. That script uses cookies to maintain session information, but it seems it can't store those cookies on the hard disk so it always asks me to login in every

Re: [PHP] php and caching

2002-11-24 Thread Marek Kilimajer
Provide a back_to_the_form link and pass all values, then on the form assign them to the fields. Alex wrote: Hi, I have a few pages on my site that contains dynamical content that must be "processed" each time the page is loaded. But I'd also want to allow the users to be able to use the back b

Re: [PHP] Creating mySql search feature.....

2002-11-24 Thread Marek Kilimajer
You first need to separate the words and then build your query: $words = explode(' ',$S_For); $cond=''; foreach($word as $str) { $cond .= " $S_From LIKE '%$str%' AND "; // replace AND with OR if you want ANY word } // remove trailing AND(last 4 chars) or OR(last 3 chars) $cond = substr($cond,

Re: [PHP] Insert file into sql server binary field.

2002-11-24 Thread Marek Kilimajer
Never heard of that, in fact, addslashes escapes also NUL, so it must be binary, and BLOB is like TEXT, except for comparison is case sensitive in BLOB. And what if the file contains malicious code - it might come from remote user's upload Sterling Hughes wrote: Read the file, addslashes(), and

Re: [PHP] security of stand alone script

2002-11-24 Thread DL Neil
Hi gamin, >Running Red Hat 7.2, PHP 4.0.6. Is there any way of knowing if a certain > PHP script was run from the command line, shell script or through the > webserver (Apache). May be i could check the user calling the script and > find out but how would i do that ? There is a difference in

[PHP] Re: php and caching

2002-11-24 Thread Stephan Seidt
Maybe Pear's Cache class could help you.. But I'm not sure, never played around with it in detail. On Sun, 24 Nov 2002 12:47:08 -0500 [EMAIL PROTECTED] (Alex) wrote: > Hi, > > I have a few pages on my site that contains dynamical content that must be > "processed" each time the page is loaded. B

Re: [PHP] Re: security of stand alone script

2002-11-24 Thread Stephen
Just a little note. Don't use $remote_addr. I would strongly recomend using $HTTP_SERVER_VARS["REMOTE_ADDR"]. - Original Message - From: "gamin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 24, 2002 1:10 PM Subject: [PHP] Re: security of stand alone script > i gues

[PHP] Re: security of stand alone script

2002-11-24 Thread gamin
i guess i can use $remote_addr to see if the user has an IP. But still out of curosity - any way of knowing the user that called the script ? gamin. Gamin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > >Running Red Hat 7.2, PHP 4.0.6. Is there any

[PHP] Parse URLs

2002-11-24 Thread Stephen
Thanks! Just one more question. I also want to replace emoticons, such as :-), :), or ;-), that are stored in a table. The structure is this: id, emote, replace. How could I check to see if the text the user typed in contains any of the emotes in the table then replace them with the correct replace

[PHP] php and caching

2002-11-24 Thread Alex
Hi, I have a few pages on my site that contains dynamical content that must be "processed" each time the page is loaded. But I'd also want to allow the users to be able to use the back button of their browser to go back to forms and that these forms still contain the information they entered (inst

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Chris Shiflett
--- Jean-Christian Imbeault <[EMAIL PROTECTED]> wrote: > This now hands me a dilemma ... I was building my site > conservatively, i.e. assuming the user would have > cookies turned off. And so I am making heavy use of > session variables. *But* I had thought that if the > user had cookies enabled

Re: [PHP] Insert file into sql server binary field.

2002-11-24 Thread Sterling Hughes
> Read the file, addslashes(), and then insert it > Rather, read the file, don't touch addslashes, then insert it. AddSLashes is not for binary data... -Sterling > Naif Al-Otaibi wrote: > > >How can I insert a file into a binary field in sql server 2000. Do I > >need some function in the que

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Vincent Vandemeulebrouck
> I have always had the opinion that the more comments you put into php > scripts, the slower they will run because there is more data to be read... > Can someone tell me if there is any truth in this or whether commenting has > absolutely 'no' impact on the performance of a script? If the overhea

Re: [PHP] Insert file into sql server binary field.

2002-11-24 Thread Marek Kilimajer
Read the file, addslashes(), and then insert it Naif Al-Otaibi wrote: How can I insert a file into a binary field in sql server 2000. Do I need some function in the query like upload or just read the file and insert it. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Linux Question

2002-11-24 Thread Marek Kilimajer
You might solve this by providing different style sheet to on linux running browsers: if(ereg('Linux',$_SERVER['HTTP_USER_AGENT'])) { echo ''; } else { echo ''; } conbud wrote: Hey. This really isnt a PHP question. but what fonts do you reccomend using so they look decent on linux. Mainly

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Michael Sims
On Sun, 24 Nov 2002 17:01:21 +0900, you wrote: >Michael Sims wrote: >> >> Then I suppose it's just an added feature of the session handler I am >> using. Maybe the OP should give it a shot, as I use it and I >> definitely don't have a problem with expired sessions > >I'll think about writing my

[PHP] security of stand alone script

2002-11-24 Thread gamin
Hi, Running Red Hat 7.2, PHP 4.0.6. Is there any way of knowing if a certain PHP script was run from the command line, shell script or through the webserver (Apache). May be i could check the user calling the script and find out but how would i do that ? thx in advance gamin -- PHP Gener

[PHP] Re: How do I Install PHP on Apache 2.0?

2002-11-24 Thread Tweak2x
windows xp pro "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > windows, unix ? > > > On Sun, 24 Nov 2002 10:26:21 -0500 > [EMAIL PROTECTED] (Tweak2x) wrote: > > > how do i do that? > > > > "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message > >

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Ernest E Vogelsinger
At 16:10 24.11.2002, DL Neil said: [snip] >However, if the "Loop without >comment" results make sense to you - you're a better man than I, Gunga Din! [snip] I'd rather have my scripts crawl than having no comments in

[PHP] Re: How do I Install PHP on Apache 2.0?

2002-11-24 Thread Stephan Seidt
windows, unix ? On Sun, 24 Nov 2002 10:26:21 -0500 [EMAIL PROTECTED] (Tweak2x) wrote: > how do i do that? > > "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > You must build a shared library by configuring php with --with-apxs2.

[PHP] Re: How do I Install PHP on Apache 2.0?

2002-11-24 Thread Tweak2x
how do i do that? "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > You must build a shared library by configuring php with --with-apxs2. > > On Sun, 24 Nov 2002 09:42:40 -0500 > [EMAIL PROTECTED] (Tweak2x) wrote: > > > can somebody please

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Sterling Hughes
> At 09:42 24.11.2002, Adam said: > [snip] > >I have always had the opinion that the more comments you put into php > >scripts, the slower they will run because there is more data to be read... > >Can someone tell me if there is any truth in this or whether c

[PHP] rad tools, form paser/validator

2002-11-24 Thread Robert Mena
Hi all, I've been working with php for a while and whenever I have the chance I give some tutorials/speeches about it to other developers, specially those with no experience with web development. They all find easy but in one point or another start asking about an IDE with a debugger, variable wa

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread DL Neil
Ernest, > Some time ago I've made myself a framework for such tests and have run it > against a commented loop. This test was run on a dual PIII/1000 Dell server. > > $hpr = _fwx_profile_start('Loop with end-of-line comment', true); > for ($i = 0; $i < 100; ++$i) { > $a += 1;

[PHP] Frequent question..Which Mailing List Script

2002-11-24 Thread Bret L Conard
Howdy List, I know this gets asked alot, but: Does anyone have a recommendation for a *good* mailing list management script? Requirements: Multiple domain support PHP 4 MySQL Any thought are appreciated

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread DL Neil
Neatly done Ernest! Also in showing how these questions are best answered with five minutes on the PC, than a msg to the list... > At 12:58 24.11.2002, DL Neil said: > [snip] > >Why don't you run a microtime testbench to time a commented and an > >uncomment

[PHP] Re: How do I Install PHP on Apache 2.0?

2002-11-24 Thread Stephan Seidt
Hi, You must build a shared library by configuring php with --with-apxs2. On Sun, 24 Nov 2002 09:42:40 -0500 [EMAIL PROTECTED] (Tweak2x) wrote: > can somebody please help me? I cant figure it out. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] How do I Install PHP on Apache 2.0?

2002-11-24 Thread Tweak2x
can somebody please help me? I cant figure it out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Ernest E Vogelsinger
At 14:15 24.11.2002, Jean-Christian Imbeault said: [snip] >Oh, this site is just your regular, run-of-the-mill, amazon.com copy. > >For each open session I store up to 20 variables. It's not a lot, but >each access to a script means a disk read/write so they

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Ernest E Vogelsinger
At 13:10 24.11.2002, Jean-Christian Imbeault said: [snip] >This now hands me a dilemma ... I was building my site conservatively, >i.e. assuming the user would have cookies turned off. And so I am making >heavy use of session variables. *But* I had thought

Re: [PHP] Huffman encoding / almost done

2002-11-24 Thread Hatem Ben
Sorry for the last email (i wasn't looking to highjack any thread :( very sorry guys !) - Original Message - From: "Hatem Ben" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Sunday, November 24, 2002 2:06 PM Subject: [PHP] Huffman encoding > Hey all > > I'm looking to impleme

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread @ Edwin
Hello, "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: > As PHP is an interpreter it needs to scan every line and every token of > code as it runs it. Thus said, of course using comments takes more time to > execute than having no comments. > > I have no profiling yet how much having comments o

  1   2   >