Re: [PHP] Stop neurotic posting

2003-08-14 Thread John Manko
I tend to think that PHP will take over the world Just my $0.02. Robert Cummings wrote: Hitler began his conquest by taking a country here, a country there while other countries sat around saying to each other oh he won't keep doing it. Let's DO NOTHING! Obviously that plan was flawed -- and t

Re: [PHP] Session does not end when browser is closed.

2003-08-14 Thread John Manko
make sure the process has terminated. Lee Hanxue wrote: Hi, I am using $_SESSION and each php page has session_start() Session Handling is working fine, except for one problem: when I close my browser and re-open it again, I am still logged in. I tested the log in and log out functions and th

Re: [PHP] Adding days to a date

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

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

2003-08-14 Thread John Manko
Many people over look this, but maybe you should contact publishers who have PHP based books. Would such books be needed if there wasn't a php market? Cantact them regarding sales. Perhaps they will provide some numbers regarding literature for PHP and all open source publications. Not to ment

Re: [PHP] Stop neurotic posting

2003-08-14 Thread John Manko
e: On Wednesday 06 August 2003 14:35, John Manko wrote: perhaps there should be two lists (novice and advanced), and the advanced listed shouldn't answer questions if it's considered trivial enough for the novice list to answer. On many lists you get this kind of suggestion. Almost alw

Re: [PHP] Stop neurotic posting

2003-08-14 Thread John Manko
hardly. I've answered questions on this list that I thought the answer could be easily found on google or php.net. Even more so, there are questions on this list that are CLEARLY "this is what I need, can you give me code." That is silly. What people should be asking is, "I can't find the a

[PHP] REMOVE THIS ADDR! Re: [ERR] Re: [PHP] PHP vs ASP.NET "formal opinions"request

2003-08-14 Thread John Manko
bject: Re: [PHP] PHP vs ASP.NET "formal opinions" request From: John Manko <[EMAIL PROTECTED]> Date: Sun, 10 Aug 2003 23:12:43 -0400 To: Dan Anderson <[EMAIL PROTECTED]> I hate to be the one to break it to you but this isn't the real world. It's a senior projec

Re: [PHP] hanmir!!

2003-08-14 Thread John Manko
oh, haha! John Manko wrote: huh? Chris W. Parker wrote: hanmir!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hanmir!!

2003-08-11 Thread John Manko
huh? Chris W. Parker wrote: hanmir!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-08-11 Thread John Manko
I hate to be the one to break it to you but this isn't the real world. It's a senior project, and he has a chance to justify the reason to do a project in the language he see's fit, not what the political machine wants. I just don't buy the "don't go against the tide" mentality, and obviously

[PHP] Re: [ERR] DEAD MAILBOX

2003-08-09 Thread John Manko
arrg. [EMAIL PROTECTED] wrote: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) Subject: Re: [PHP] Still can't pass variable through url From: John Manko <[EMAIL P

Re: [PHP] Still can't pass variable through url

2003-08-08 Thread John Manko
and. Joe Harman wrote: echo " href=\"http://www.thingamajigger.com/index.php?year=$year&month=$month\"; yeah this is the link"; ?> -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 2:47 AM To: Marti

Re: [PHP] Stop neurotic posting

2003-08-07 Thread John Manko
perhaps there should be two lists (novice and advanced), and the advanced listed shouldn't answer questions if it's considered trivial enough for the novice list to answer. Curt Zirzow wrote: * Thus wrote andu ([EMAIL PROTECTED]): This is a very busy list, over 100 message in a quiet day a

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread John Manko
can expand on the details. - John Manko Decapode Azur wrote: I would expect compiled C/C++ to be faster as there is no need for the code to be interperated and compiled on each request. Is it possible to compile PHP to improve the speed execution ? -- PHP General Mailing List (

Re: [PHP] Please Help

2003-07-31 Thread John Manko
umm... ok. www.google.com www.php.net that should get you started. Sathiyabama wrote: Dear PHP Team, I request your help to sort some issues in using PHP. 1.Chennai IIT has developed one recorder.We can record our voice and video.Its user defined extenion is MV4. My requirement is 1.I wan

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

2003-07-31 Thread John Manko
"You have to be deviant if you're going to do anything new." - David Lee Nka wrote: On Thu, 31 Jul 2003 12:35:55 -0500, you wrote: I know this is a little off topic but I really need some help with this. The company I work for just got bought out by a larger company. The larger com

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

2003-07-31 Thread John Manko
trolling! ha binc2 wrote: Hi guys what does trolling mean? Never heard of it before. Angelo -Original Message- From: Joel Rees <[EMAIL PROTECTED]> To: "Joe Harman" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Date: Thu, 31 Jul 2003 16:10:24 +0900 Subject: Re: [PHP] Possible My Website was

Re: [PHP] session header issue

2003-07-31 Thread John Manko
I usually included a global variable prefixed to the page, like such.. header("Location: $ssl_server/mypage.php"); or header("Location: $server/mypage.php"); and a myserversetting.php setting these. Now, I can globally change the servers by editing one file. Chris Shiflett wrote: --- Sam Folk-Wi

Re: [PHP] Re: php path statement appears on my webpages

2003-07-31 Thread John Manko
Have you set Apache httpd.conf? Gronquist, Jim M wrote: Ivo, Thanks, but if I leave off this line then I get an error when I try and view my pages. Jim -Original Message- From: Ivo Fokkema [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: [P

Re: [PHP] Where am i screwing up?

2003-07-31 Thread John Manko
oh, don't forget, '$key' will not get evaluated. "$key" will. John Manko wrote: Can someone correct me on this if i'm wrong... try (meaning, I think that $vars as $keys will put the value into $key, not the key itself): foreach ($vars as $key=>$valu

Re: [PHP] Where am i screwing up?

2003-07-31 Thread John Manko
Can someone correct me on this if i'm wrong... try (meaning, I think that $vars as $keys will put the value into $key, not the key itself): foreach ($vars as $key=>$value) // clear all previous sessions { if(isset($_SESSION['$key'])) { unset($_SESSION['$key']); } } Ryan A wrote: Hi, I

Re: [PHP] Article: PHP vs ASP

2003-07-31 Thread John Manko
because it would be funny Jay Blanchard wrote: [snip] I'm wondering if there is an IIS extention for allow PHP in ASP. Wouldn't that be a kick in the ass. (I'm not talking about PHP for IIS, either) [/snip] But why go to the extra-effort? Just to save yourself the installation of PHP o

Re: [PHP] Article: PHP vs ASP

2003-07-31 Thread John Manko
Chilisoft for PHP on a IIS server... LOL.. That would be funny -Original Message----- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 10:13 AM To: Jay Blanchard Cc: Ralph Guzman; PHP General Mailing List Subject: Re: [PHP] Article: PHP vs ASP I'm wondering if

[PHP] Ticketmaster.com and Word Images

2003-07-31 Thread John Manko
Does anyone know how sites like Ticketmaster.com creates the "Word Image" used for ticket purchase verification? Do they generate the image on-the-fly from a dictionary, or do the images pre-exist and they are pulled from a DB along with the word. John -- PHP General Mailing List (http://www.

Re: [PHP] Article: PHP vs ASP

2003-07-31 Thread John Manko
I'm wondering if there is an IIS extention for allow PHP in ASP. Wouldn't that be a kick in the ass. (I'm not talking about PHP for IIS, either) Jay Blanchard wrote: [snip] Might want to file this link, next time somebody asks about PHP vs. ASP http://www.wowwebdesigns.com/wowbb/forum12/149

Re: [PHP] I don't understand...

2003-07-31 Thread John Manko
>You're trying to assign to a function, seriousley messed up. I reccomend you make sure you know PHP before going any >further. Leif, Let's try and be a little more constructive. Jason, mysql_query is a function, so you need to "call" it, not "assign to it". For example. (is th

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, JavaScript and populating DropDowns

2003-07-29 Thread John Manko
assuming you have a table with colors, and each color has car associated with it (yes, there might be dup color entries). This should work (check spellings and case, etc..etc...) $query="SELECT * from colors"; $results = mysql_query($query) or die ("DB ERROR:" . mysql_error()); $num = mysql_numro

Re: [PHP] MySQL limitations

2003-07-28 Thread John Manko
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=mysql+max+columns&btnG=Google+Search Mike Mannakee wrote: Does anyone know what the maximun number of columns I could put in a table is?? I can't find it in manual. Like, could I have a table with 200,000 columns? Mike -- PHP Ge

Re: [PHP] PHP should know my data!

2003-07-24 Thread John Manko
this is funny. John, you've captured the irony of a number of recent posts. Congrats. Been a while since I laughed this hard. Cobol. egad. That's a nice touch. Thanks for the levity. chris -----Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2

[PHP] PHP should know my data!

2003-07-24 Thread John Manko
will last when there are incompetent languages like PHP, Perl, and Java. Color me disappointed. John Manko IT Professional -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_connect, client flags, php < 4.3, oh my!

2003-07-22 Thread John Manko
mysql_connect() added support for client flags in 4.3+ I'm wondering if there is another method to supply these flags for any php < 4.3? thanks, john -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-22 Thread John Manko
This is what I decided to do. So the pages that need to be secured, I send the the SID as a GET QUERY variable. I don't like it, but it's the only thing I seems right. Joel Rees wrote: if you do sniff the hash, the key, and the session. You will have to get your request in before the key beco

Re: [PHP] controlling winamp with COM

2003-07-22 Thread John Manko
I would think that a Java applet would be your best bet. You can have real-time updates instead of page reloads. However, you will need to write a server to handle the specific requests for the applet. That can be done in Java, C/C++, or even Perl. I would prefer Perl because of it's string

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread John Manko
Just a small point, you can have both GET and POST. -- search.html - - page.php $sid = $_GET['sid']; session_id($sid); session_start(); $search = $_POST['search']; Also, for those who don't know, you can even reference hash links Hope that helps. Chris = Become a

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
More like: echo(date('Jennifer Lopez',strtotime('next Friday'))); John Manko wrote: Ha. Not what I have in mind. :) Adam Voigt wrote: Umm. echo(date('U',strtotime('next Friday'))); Notice the strtotime part. On Mon, 2003-07-21 at 09:25, John Manko

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
Ha. Not what I have in mind. :) Adam Voigt wrote: Umm. echo(date('U',strtotime('next Friday'))); Notice the strtotime part. On Mon, 2003-07-21 at 09:25, John Manko wrote: I'd settle for a function that will generate a date for this upcoming friday. ;) Elliot To

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
I'd settle for a function that will generate a date for this upcoming friday. ;) Elliot Tobin wrote: I need a function to create the dates of previous Fridays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Register Globals

2003-07-21 Thread John Manko
whoa, i didn't know that. i love this mailing list! :) Petre Agenbag wrote: a simple extract($_POST) or extract($_GET) would also work -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread John Manko
You dont need to touch any php code, just modify the html so the properlinks point to https where needed. I tried that. However, the session is different when going from 80 to 443. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread John Manko
I'm having a little trouble understanding how to accomplish this. Should the entire browsing session be HTTPS after login, or just for important functions like "login" and "checkout" If noly for those function, who should I design to jump back an forth. I know DB should be used for cart items, b

Re: [PHP] Re: TESTERS Needed!

2003-07-19 Thread John Manko
the the following table, when you onmouseover the MSN addy, the enlargement of the font size changes the table width, and it does restore on onmouseout: _*Stats*_ Style: Devil's Bloom Host: www.BritneySpy.com Projects: 3 Hits 321 MSN [EMAIL PROTECTED]

[PHP] MYSQL Client Flags

2003-07-19 Thread John Manko
I was interested in how to determine the number of rows matched on an update, even if they weren't updated. The reason for this was mysql_affected_rows() returns the number of rows affected, which my not be the number of rows matched by the query (see the manual). So, I came accross a post in

Re: [PHP] Help with UPDATE command...

2003-07-19 Thread John Manko
what error message are you getting? mysql_error() and mysql_errno() Tony Tzankoff wrote: Here is the code I am trying to implement... update table set col1=value where condition=true and condition=true order by col2 desc, col3 desc limit 1; The UPDATE command does not seem to support the ORDER

Re: [PHP] what is the problem?

2003-07-19 Thread John Manko
just a few more tips. the following ensures that an form input field by the name of 'sentence' is actually sent via method=post, otherwhile you can escape it. this is good for low level script integrity if( isset($_POST['sentence']) ) echo $_POST['sentence']; you might want to also look into th

[PHP] Something to watch look for when getting HEADER Warnings

2003-07-18 Thread John Manko
Recently, I ran into a problem where I continually got a "Header already sent" message. I took me a while to figure out because the file that was "included" only contained function definitions, or so I thought. After the closing php tag, I had a new line with a single space on it. This space wa

Re: [PHP] Re: A new FREE web server can do PHP faster than Apache'smod_php

2003-07-18 Thread John Manko
You should leave an identification tag in your url. This way when people click the link you supplied, you can track where they are coming from LiteSpeed wrote: Hi there! Do you feel the need for speed? Lite Speed Technologies proudly introduces you LiteSpeed Web Server 1.0 LiteSpeed Web S

Re: [PHP] Re: PHP code beautifier?

2003-07-17 Thread John Manko
I really think that this depends on the topic. I know that if I'm looking for an editor (esp for a language just starting in), I can search google all day, but end up with a list full of fud. In situations like this, I would prefer to go straight to the source and ask the people who have put

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread John Manko
On Jul 16, 2003, "John Manko" claimed that: |page1.php |$_SESSION['myvars_VARNAME'] = $varname; |the 'myvars_' is just for identification purposes, so avoid over-writing |anthing that you might not want to. | |page2.php |$varname = $_SESSION['myvars_VARNAME'

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
And I still don't see how your proposed method handles the problem you mentioned above with Image2... RDB Now, first, what would you prefer? Second, I hope you understand how the new feature would address the issue (and that you know what the issue is - if i explained it clearly, of course) As

[PHP] PHP explodes without using isset()

2003-07-16 Thread John Manko
I've tried checking if $_POST and $_GET vars are set with just if($_POST['yuck']) When 'yuck' is not present my code always explodes with *"Notice*: Undefined index: yuck" on the page output. I never see any mention in the codes examples referencing a php function that instructs the preprocessor

Re: [PHP] multi file multi colomn

2003-07-16 Thread John Manko
is there a max file handle pool in php? look at: http://us3.php.net/fopen http://us3.php.net/fwrite FB wrote: Hi, I have 40 text files.. each files have 1 colomn of a data. I want to write a script to merge them like datafrom1;datafrom2;datafrom3;datafrom40 how can I do that? TIA

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread John Manko
page1.php $_SESSION['myvars_VARNAME'] = $varname; the 'myvars_' is just for identification purposes, so avoid over-writing anthing that you might not want to. page2.php $varname = $_SESSION['myvars_VARNAME']; Valentin wrote: Hi, is any way to pass a $Var from one to other php pages without usi

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread John Manko
Yes, use preg_match("/^[0-9]{6}$/",$str) since it takes care of both number and length. You dont want to you is_numeric(), because that will match "4e5", etc..etc.. Brent Baisley wrote: I'm pretty sure there will be a problem with using the is_int() function. A similar problem was discussed a f

Re: SPAM: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
easily :) http://au.php.net/manual/en/function.getimagesize.php In fact, there are some functions and notes in the user-contributed section of the above URL that do this for you :) Justin On Wednesday, July 16, 2003, at 11:31 PM, John Manko wrote: Ok, I'm surprised that this is not taken c

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
You will note that I did say that I was looking for a PHP solution to this, anyhow. HTML isn't smart enough to figure that out and this is a PHP list, anyhow. Thank you for the info. I still think that HTML should handle it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
ok, i see what you mean.. John Manko wrote: but that won't address the space limit for display for image larger than 75x75 Brian S. Drexler wrote: Leave out the height or width tag and it will keep the ratio by itself won't it? -Original Message----- From: John Manko [mai

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
but that won't address the space limit for display for image larger than 75x75 Brian S. Drexler wrote: Leave out the height or width tag and it will keep the ratio by itself won't it? -Original Message----- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
as 75x150 (which clearly does not fit the 75x75 constraints) now, if i specify "width=75 height=75", again, this works for Image1, but not Image2, since the new Image2 ratio will be 1:1, with Image2 losing 1/2 of it's heigth ratio. John Manko wrote: Ok, I'm surprised that this

[PHP] KEEP IMAGE RATIO

2003-07-16 Thread John Manko
Ok, I'm surprised that this is not taken care of with HTML. I propose the following standard (but also looking for a PHP workaround if available) for the Img HTML tag: RATIO = Keep|Ignore, default Ignore < img width='x' height='y' RATIO='Keep|Ignore' > Where, RATIO=Keep will inlarge the image

Re: [PHP] How to store a file into MSSQL?

2003-07-16 Thread John Manko
Look here http://www.mysql.com/doc/en/BLOB.html Actually, if you don't care if the images can be view from outside the DB, you can do what I do. I simplely put the name of the file in a varchar field, then let the browser do the work for you. This is good for files that are referenced from multip

[PHP] PHP Best practices

2003-07-16 Thread John Manko
I'm looking for a book on PHP best practices for such things as security, performance, session (esp jumping from http to https), design layout, etcetc... I'm not interested in something that will teach basic PHP. Do you know of any good books, online resources,etc? Thanks. John -- PHP G

[PHP] Check if php file is an included file?

2003-07-15 Thread John Manko
If have file1.php that includes file2.php, is there any way to check, from file2.php, if it is indeed included. In other words, I don't want file2.php to display (rather redirect to file1.php) if it's not being requested as a file1.php include file. did I confuse you? -- PHP General Mailing

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread John Manko
oops - maybe i should have kept my big mouth shut! ha. anyway, it doesn't look like it's going to change. >php_thread --end "php-general as REPLY TO" Mark wrote: But that would not solve the problem being discussed. None of the webmail services that I've tried have a "reply-to-list" feature. ---

Re: [PHP] IsSet() and $_SESSION - BUG?

2003-06-30 Thread John Manko
esetSessionVariables(); $_SESSION['username'] = strtolower(formatformdata($user)); $_SESSION['adminlogin'] = True; $_SESSION['fname'] = mysql_result($results,0,"fname"); $_SESSION['lname'] = mysql_result($results,0,"lna

Re: [PHP] php-general as REPLY TO

2003-06-30 Thread John Manko
Keep in mind that many people post without being subscribed to the list, This is false. In fact, I tried sending a message to the list from another account that wasn't subscribed, and I got a reply stating the following: Because you are not subscribed to "[EMAIL PROTECTED]" using the email addres

[PHP] php-general as REPLY TO

2003-06-30 Thread John Manko
Hello, I'm wondering why the listed "Reply To" address is not "[EMAIL PROTECTED]" Thing would be so much easier to just reply than cut-n-paste when reply to the entire list on a subject (which is the norm). Can the maintainer set this up? John -- PHP General Mailing List (http://www.php.ne

[PHP] Re: IsSet() and $_SESSION

2003-06-30 Thread John Manko
in some cases. best of luck, -shiva - Original Message - From: "John Manko" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 6:49 AM Subject: IsSet() and $_SESSION I'm having a problem with the value that isset retur

Re: [PHP] Securing PHP code

2003-06-29 Thread John Manko
For some people, putting information outside the docroot isn't possible, especially when your site is hosted. On thing you can also try (which is nowhere near the security of outside the docroot) is to put ocnfig data (user, pass, etc...) inside it's own php file that is included in outfiles. F

[PHP] IsSet() and $_SESSION

2003-06-29 Thread John Manko
I'm having a problem with the value that isset returns on $_SESSION variables. For some reason, even if $_SESSION['uid'] is set, isset returns FALSE. Here is the code: -- file1.php --- include "file2.php"; if (!isset($_SESSION["uid"])) { // This first time $_SESSION["uid"] is