Re: [PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-15 Thread Robby Russell
On Thu, 2004-12-16 at 10:50 +0800, Jonathan wrote: Hi, I have developed a full email marketing application (using php, mysql) which supports tracking technology (i.e. whether the recipient has read the email, view online, unsubscribe, click on any of the link etc), bounce mail management,

Re: [PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-15 Thread Greg Donald
On Thu, 16 Dec 2004 10:50:52 +0800, Jonathan [EMAIL PROTECTED] wrote: Is it possible to make some $$ if I distribute the application as a shareware Probably not. or should I just sell it as an commercial package. If you plan to make any money, yes. If you have any experience with this,

[PHP] Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread Scott Fletcher
I'm wondering if it is possible to use Google search to search in hte news.php.net's past posting by using the keyword. If so, then how can it be done? Example of keywords. Etc.. Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread John Nichel
Scott Fletcher wrote: I'm wondering if it is possible to use Google search to search in hte news.php.net's past posting by using the keyword. If so, then how can it be done? Example of keywords. Etc.. Thanks, FletchSOD You mean like putting your keywords site:news.php.net In the google

Re: [PHP] Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread Scott Fletcher
Thanks.. That does work. I just never did the Google search of a newsgroup or Mailing List before, so I had no idea now to do that exactly. Thanks a million.. FletchSOD... John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Fletcher wrote: I'm wondering if it is

Re: [PHP] Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): I'm wondering if it is possible to use Google search to search in hte news.php.net's past posting by using the keyword. If so, then how can it be done? Example of keywords. Etc.. Or you could use google groups

[PHP] RE: . [PHP] Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread Cody Phanekham
PROTECTED] Subject: . [PHP] Possible to Google search the news.php.net past post with keywords??? I'm wondering if it is possible to use Google search to search in hte news.php.net's past posting by using the keyword. If so, then how can it be done? Example of keywords. Etc.. Thanks

[PHP] Possible Work in the Los Angeles Area...

2004-05-26 Thread Domains4Days
Hello, I hope it's OK that I put this email on this list I have some possible Web design work in the Los Angeles Area... regarding PHPMySQL. If anyone wants to: Can you call me ASAP to discuss the particulars? Thanks, Dave B. Ph. 818 763-9988 - Cel: 818 314-8900 -- Thanks - RevDave

RE: [PHP] Possible Work in the Los Angeles Area...

2004-05-26 Thread Tyler Replogle
hey, I'm not going to call you, but we can talk over the net with email. I also have msn ([EMAIL PROTECTED]) and aim (catim2005). That goes for anyone that want to talk. O and if see my buddy icon on aim don't be scared. From: Domains4Days [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP

[PHP] Possible to have Array in $_SESSION????

2004-03-18 Thread Scott Fletcher
Hi! Is it possible to have an array that contain 2 or more segment to be put into the $_SESSION and to retreived it back? FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Possible to have Array in $_SESSION????

2004-03-18 Thread Clifford W. Hansen
Scott, Yes it is, You can also store objects in $_SESSION Eg. $_SESSION['Config'] = array( DBName = Common, DBHost = localhost ); Eg. MySQL_Connect( $_SESSION['Config']['DBHost'] ); Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150

[PHP] Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread Rob Petty
I am getting incorrect results from strtotime: [dali]$ uname -a Linux dali 2.4.24-grsec+w+fhs5+gr1913+nfs+++p3+c3+bu+gr0b-v6.182 #1 SMP Mon Jan 5 12:43:44 PST 2004 i686 unknown [dali]$ date Sat Feb 28 14:33:39 PST 2004 [dali]$ cat t1.php ? $start = strtotime('next monday'); echo ('Start

Re: [PHP] Possible Leap Year bug with strtotime (4.3.4)?

2004-02-28 Thread hitek
I don't think it's so much a bug as it is just some odd behavior. If you use 'this monday' the results are correct. $start = strtotime('this monday'); Keith At 02:44 PM 2/28/2004, Rob Petty wrote: I am getting incorrect results from strtotime: [dali]$ uname -a Linux dali

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 00:01, Evan Nemerson wrote: What you would have to do is find a collision, which is thankfully difficult to do- if it were easy, MD5 would be useless. Theoretically, you could modify say John The Ripper and have it brute force something, but you may end up waiting a

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-23 Thread Sean McCarthy
Hi, At 04:20 23/02/2004, Simon Fredriksson wrote: I wonder if it's possible to write the MD5 or CRC checksum of my scriptfile to the scriptfile. I know that if I change it, the value will change, but is there any way to calculate what it will be? There's no way you can add the CRC after

[PHP] Possible to write CRC/MD5 to the file?

2004-02-22 Thread Simon Fredriksson
I wonder if it's possible to write the MD5 or CRC checksum of my scriptfile to the scriptfile. I know that if I change it, the value will change, but is there any way to calculate what it will be? Not just displaying it for the user, but actually having it written in the file. Could be pretty

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-22 Thread Evan Nemerson
On Sunday 22 February 2004 08:20 pm, Simon Fredriksson wrote: I wonder if it's possible to write the MD5 or CRC checksum of my scriptfile to the scriptfile. I know that if I change it, the value will change, but is there any way to calculate what it will be? What you would have to do is find a

[PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
Hi, i'm looking for a method to setup php to use a proxy for all http/ftp connections. i know it's possible to write a script that can do this, but i need to setup php itself for that (php.ini or something like this) i tried different tools for that to tunnel all connection but i didn't found

Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Raditha Dissanayake
Hi, There is a topic called transparent proxying. Don't have any links in my bookmarks but if you visit either the squid proxy websites or the iptables website you will find it. (this is usually done with this combination but can be done with other proxy/firewall combos as well). Basically

Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
The problem is that i'm using a windows for that, the anomizer i use to connect to different proxys waits on 127.0.0.1/localhost, so i can't redirect the whole outbound traffic on port 80 for that Hi, There is a topic called transparent proxying. Don't have any links in my bookmarks but if you

[PHP] possible bug in PHP function mysql_query() ?

2003-12-26 Thread Peter Walter
MySQL version: 4.0.16 PHP version: 4.3.2 Problem code: $query = SELECT * FROM tablename WHERE columnname LIKE '%any_eight_digits%'; mysql_query($query); Results: query fails, mysql_errno() returns 1064 (syntax error) I have tracked the problem down to the WHERE clause; using any other number of

[PHP] Possible query problem

2003-10-28 Thread Frank Tudor
Yestery day I got help from several of you on my function. I tried to get complicated today and so here it is. I am working on a peice of code where if a condition of a database entery is 0 then it will take you to one page if it is one it will take you to another page. Here is the function:

RE: [PHP] Possible query problem

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:50 AM Frank Tudor wrote: $query=SELECT payment FROM payment WHERE dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and users.password='.$_POST[password].'; Okay, there seem to be a few problems here. The first issue is: users.password Using this means you are

RE: [PHP] Possible query problem

2003-10-28 Thread Jay Blanchard
[snip] $query=SELECT payment FROM payment WHERE dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and users.password='.$_POST[password].'; [/snip] Breaking the above apart ... $query= SELECT payment FROM payment WHERE dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and

Re: [PHP] Possible query problem

2003-10-28 Thread Chris Shiflett
I didn't look into your problem, but I want to mention one thing that stands out to me. --- Frank Tudor [EMAIL PROTECTED] wrote: $query=SELECT payment FROM payment WHERE dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and users.password='.$_POST[password].'; Never, ever build an SQL query

[PHP] Possible Bug With $_FILES Global

2003-09-18 Thread Nathan Taylor
Hey Guys, I discovered a possible bug with the $_FILES super global and thought I'd pass it along to you guys to double check the accuracy of this being a bug before I reported it to the PHP team. So here goes.. The default format for $_FILES is $_FILES['variable']['element'] which of course

Re: [PHP] Possible Bug With $_FILES Global

2003-09-18 Thread Raditha Dissanayake
HI, Te first time i switched from $userfile_** to $_FILES i spent hours pulling my hair out trying to figure out why my arrays were not getting populated. I too felt like reporting it but decided against is because someone is sure to say 'this is a feature not a bug' :-)) Nathan Taylor

RE: [PHP] Possible bug w/ open_basedir?

2003-08-14 Thread Ford, Mike [LSS]
On 09 August 2003 18:02, Dan Brown wrote: There is no open_basedir restriction in my php.ini. The only place this restriction is set (with this path) in httpd.conf is in this block: Directory /home/e-smith/files/ibays/howtos/html AddType application/x-httpd-php .php .php3

[PHP] Possible bug w/ open_basedir?

2003-08-09 Thread Dan Brown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm running a Mitel SME Server v5.6, which is based on RedHat 7.3, on which I've upgraded PHP to version 4.3.2 (stock PHP version is 4.1.2). Since I upgraded to 4.3.2, I've encountered a recurring, but intermittent, problem with any of my

[PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Joe Harman
I found this on my server... I have no idea what it is... can someone tell me what it does... Thanks -- html head titlePHP Shell - CP/title /head body bgcolor=#FF text=#33 link=#00 vlink=#00 alink=#00 h1

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

2003-07-31 Thread Adrian
everyone can execute shell commands via system(); on your server. - delete the script ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-07-31 Thread Peter James
Message - From: Joe Harman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:06 AM Subject: [PHP] Possible My Website was hacked... with PHP... please tell me what this is??? I found this on my server... I have no idea what it is... can someone tell me what it does

RE: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Joe Harman
Fortunatly I don't think they were doing something correctly, cause it didn't deface my site like some of the others Thanks all Joe -Original Message- From: Adrian [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Possible My

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

2003-07-31 Thread Curt Zirzow
I'd be ashamed to put that code on someones computer :) Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-07-31 Thread Joel Rees
Assuming you are not just trolling, Fortunatly I don't think they were doing something correctly, cause it didn't deface my site like some of the others Don't count on it. They only deface servers they don't want to use. ... everyone can execute shell commands via system(); on your

RE: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Joe Harman
; [EMAIL PROTECTED] Subject: Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is??? Assuming you are not just trolling, Fortunatly I don't think they were doing something correctly, cause it didn't deface my site like some of the others Don't count

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

2003-07-31 Thread Joel Rees
Well, now I feel slightly embarassed. I wasn't thinking of the possibility your site was hosted. My apologies for being a little overly dramatic. Yeah, definatley reason to explore the possibilities... But this is really my own stupid fault it got there in the first place... I had an image

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

2003-07-31 Thread skate
Yeah, definatley reason to explore the possibilities... But this is really my own stupid fault it got there in the first place... I had an image upload form and I didn't tell it only to accept image/jpeg or image/gif i see this happen quite a lot, both in these lists, and the security

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

2003-07-31 Thread Randum Ian
Although this is a very good idea it would only benefit people who had access to their own installation of PHP. Most people are only able to use PHP on a shared server so perhaps wouldn't have access to the php.ini file. Yeah, definatley reason to explore the possibilities... But this is

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

2003-07-31 Thread skate
Although this is a very good idea it would only benefit people who had access to their own installation of PHP. Most people are only able to use PHP on a shared server so perhaps wouldn't have access to the php.ini file. but then most service providers could protect themselves? i don't see

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

2003-07-31 Thread John Coggeshall
Looks like it is a PHP script to give people shell access as the web server user. On Thu, 2003-07-31 at 02:06, Joe Harman wrote: I found this on my server... I have no idea what it is... can someone tell me what it does... Thanks --

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

2003-07-31 Thread binc2
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 hacked... with PHP... please tell

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

2003-07-31 Thread Curt Zirzow
* Thus wrote binc2 ([EMAIL PROTECTED]): Hi guys what does trolling mean? Never heard of it before. http://jargon.net/jargonfile/t/troll.html Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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 hacked

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

2003-07-31 Thread Chris Sherwood
I have seen this exact same header before in this list, so I am going to assume this is a troll Chris - Original Message - From: binc2 [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:26 AM Subject: Re: Re: [PHP] Possible My Website was hacked

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

2003-07-31 Thread Jay Blanchard
[snip] what does trolling mean? Never heard of it before. [/snip] Ever been fishing? It means fishing. It also refers to the nasty troll that lived under the bridge in the classic Grimm's fairy tale. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2003-07-31 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 4:06:12 PM, you wrote: JH I found this on my server... I have no idea what it is... can someone JH tell me what it does... if you use apache you can do this to protect against uploaded php scripts LocationMatch /uploads/ php_flag engine off /LocationMatch

[PHP] possible?

2003-03-28 Thread Sebastian
hello, I have some images in mysql, currently the images aren't resize, and this displays the image, like: image.php?id=1 But i'd like to resize the image with html tags: e.g. width=300 and print/echo it. since Content-type is for image is it even possible? If not then how about dynamically

RE: [PHP] possible?

2003-03-28 Thread Mike Brum
(another reason that keeping local thumbnails are a good idea). Disk space is relatively cheap. Bandwidth is still more of a commodity. -Mike -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:58 AM To: php list Subject: [PHP] possible? hello, I

Re: [PHP] possible?

2003-03-28 Thread Maciek Ruckgaber Bielecki
Hi there mate i'll suggest you to have a look to ImageMagick to do tricky things to images heres the address: http://www.imagemagick.org/ have fun!! On Sat, Mar 29, 2003 at 12:58:17AM -0500, Sebastian wrote: hello, I have some images in mysql, currently the images aren't resize, and this

[PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread Juan Antonio Ruiz Zwollo
Hello: Is it possible with PHP to check at what quality/compression a JPEG file has been saved? I.e. I have dummy.jpg that I got from somewhere else and I want to know with what quality it was saved. The second Note of the User Contributed Notes on the PHP manual regarding the function imagejpeg

RE: [PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread daniel
would exif work ? or maybe the binary jhead would work, it gets information out fo jpeg files , but they maybe have to be generated only from digital cameras i dont know. = Original Message From Juan Antonio Ruiz Zwollo [EMAIL PROTECTED] = Hello: Is it possible with PHP to check at

[PHP] possible mail() bug

2003-02-11 Thread Matt Phillips
I created a script that sent the contents of the form via the mail(). when I created it the server was running PHP 4.1.2. The server I am on was upgraded to ver 4.2.2. When that happend the script stop working correctly. It appeared to work, but the email never arrived. So, I wrote a simple

[PHP] Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
The following code is supposed to migrate data from an old database to a new one, but produces the error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...\convertdb.php on line 17 The code: ?php /* connect to database */ if(!($srcDB =

[PHP] Possible Bug in 4.3.0

2003-01-23 Thread Bob Horton
I've got a site running PHP w/ MySQL DBF extensions on Apache with mod_ssl/openssl. Yesterday, following upgrading to 4.3.0 (and upgrading mod_ssl/apache as well) the site stopped working. I quickly figured out there was a change in session processing and that I needed to no longer use global

[PHP] Possible values for get_browser()-css

2003-01-22 Thread Liam . Gibbs
When I run, $r = get_browser(); and take a look at the css value, I get 2. I would have figured that it could only be 0 (not supported) or 1 (supported). What are the possible values for get_browser()'s css, and what do those values mean? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Daevid Vincent
I'm not even sure how to classify this... Given: INPUT NAME=action TYPE=SUBMIT VALUE='?=$Enabled?'); Where $Enabled is either a 0 or 1 as read from a database ( TINYINT(1) ); And echo action = .$_POST[action].BR; if ($_POST[action] == 1 || $_POST[action] == 0) echo = UPDATE Company SET

Re: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Marek Kilimajer
inverting value: $action = ($value==='1' ? '0' : '1' ); Daevid Vincent wrote: I'm not even sure how to classify this... Given: INPUT NAME=action TYPE=SUBMIT VALUE='?=$Enabled?'); Where $Enabled is either a 0 or 1 as read from a database ( TINYINT(1) ); And echo action = .$_POST[action].BR;

RE: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent To: [EMAIL PROTECTED] echo action = .$_POST[action].BR; if ($_POST[action] == 1 || $_POST[action] == 0) echo = UPDATE Company SET Enabled = .!(intval($_POST[action])). WHERE CompanyID = $id; I cannot figure out how to simply make the 0 and 1

Re[2]: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Tom Rogers
Hi, Saturday, January 4, 2003, 3:23:37 AM, you wrote: FML -Original Message- FML From: Daevid Vincent FML To: [EMAIL PROTECTED] FML echo action = .$_POST[action].BR; FML if ($_POST[action] == 1 || $_POST[action] == 0) FML echo = UPDATE Company SET Enabled = .!(intval($_POST[action])).

[PHP] Cybercash/Verisign and PHP possible?

2002-12-12 Thread Jean-Christian Imbeault
My company wants to set up online credit card functionality and we are thinking of going with a company called Veritrans (I believe they are the japanese branch or cybercash for Verisign in Japan). However they do not support PHP. They only offer kits for Perl and Java. Unfortunately for me

[PHP] Re: Cybercash/Verisign and PHP possible?

2002-12-12 Thread matty rozen
i do not really know how they are working, but i'll give you some sort of a solution. by using the 'curl' module, you can use any calls needed to any type of scripts. you can use curl to talk with the cgi. another option is using sockets (depends on their toolkit) and passing all the information

[PHP] Re: Cybercash/Verisign and PHP possible?

2002-12-12 Thread Jean-Christian Imbeault
Matty Rozen wrote: by using the 'curl' module, you can use any calls needed to any type of scripts. you can use curl to talk with the cgi. Ok, I'll look into CURL. If I understand their system, it is meant to be called from a form so CURL might be applicable. let me know if you need more

[PHP] Possible to prevent a virtualhost or etc.. to use exec() or...?

2002-08-15 Thread Newser
I'm running a linux apache server 1.3.26 with php 4.2.2 I have some virtualhosts on my server my mainserver is: www.!!.com and they are hl.!!.com ... for ex: i don't want any php code to be able to run exec() or system() command which is being ran on hl.!!.com

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
I just realised why my search returned nothing. I was searching the function list instead of the whole site :} Sorry :( -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Friday 26 July 2002 23:33, Tech Support wrote:

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread Jason Wong
On Friday 26 July 2002 21:24, JJ Harrison wrote: I *did* rtfm(or searched it at least). That is why I asked the group. So you've read the chapter on functions, and did it answer your question? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
I *did* rtfm(or searched it at least). That is why I asked the group. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Friday 26 July 2002 17:46, JJ Harrison wrote: is it possible to have optional values in a PHP

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
Thank You. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com René moonen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... JJ Harrison wrote: is it possible to have optional values in a PHP function? some of the built in ones have optional parameters. -- JJ Harrison

[PHP] possible to add a record number to a query?

2002-06-13 Thread Jeff Field
I would like to have a column returned in a query that tells you which record I'm looking at? Sort of like an auto_increment? IOW, the query results would look like: record first last 1 johndoe 2 joe blow 3 carol fisher The table only has first and last,

Re: [PHP] possible to add a record number to a query?

2002-06-13 Thread Jason Wong
On Thursday 13 June 2002 20:27, Jeff Field wrote: I would like to have a column returned in a query that tells you which record I'm looking at? Sort of like an auto_increment? IOW, the query results would look like: record first last 1 johndoe 2 joe blow 3

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread Jeff Field
. Make sense? Thanks for your help! Jeff -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 8:30 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] possible to add a record number to a query? On Thursday 13 June 2002 20:27, Jeff Field wrote: I

Re: [PHP] possible to add a record number to a query?

2002-06-13 Thread Chris Hewitt
Jeff, You don't tell us which database. If its Oracle then there is ROWID. Using some sort of record number is good for linking tables as it a primary/foreign key, but otherwise why would you want it? If you do not have such a field as this at present (and want one), you could always add one

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread John Holmes
]] Sent: Thursday, June 13, 2002 10:01 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] possible to add a record number to a query? Yes, there is a particular reason. The actual query I do pulls information from two tables and has both ORDER BY and GROUP BY clauses. The auto_increment column (think

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread John Holmes
You can use SET @a=0; Instead of the first SELECT, too. ---John Holmes... -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] possible to add a record number to a query

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread Jeff Field
:44 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] possible to add a record number to a query? You can do it with two queries. SELECT @a:=0; SELECT @a:=@a+1, * FROM table; This would be better taken to a MySQL list, though. Actually, you never said what DB you were using

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread David Freeman
I would like to have a column returned in a query that tells you which record I'm looking at? Sort of like an auto_increment? IOW, the query results would look like: record first last 1 johndoe 2 joe blow 3 carol fisher The table

[PHP] Possible MSSQL error PHP4.2.0?

2002-06-11 Thread Jeremy Coates
Hi All, I'm not sure if this is a bug or not: Using MSSQL Server 2000 on WinNT (fully patched). PHP 4.2.0 using ini_set('mssql.datetimeconvert',0) Date fields get returned with an extra character on the end output from var_dump: string(20) 2002-08-06 11:45:02---^

[PHP] Possible bug? (was Re: [PHP] Arrays: Please help before I go insane?)

2002-06-06 Thread Chris Boget
In that case, split it up into two-steps, to only init the array if you need to i'm not really sure how the rest of your code is -- you could probably do this a nicer way, but this will work: if (!is_array($ary[this])) $ary[this] = array(); $ary[this][that] = 1; This is all well and

[PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Michael Davey
Does anyone know of a function within PHP that will convert a hexadecimal string (without the leading 0x) into an integer? regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Rasmus Lerdorf
Did you check the manual? http://php.net/hexdec On Sat, 1 Jun 2002, Michael Davey wrote: Does anyone know of a function within PHP that will convert a hexadecimal string (without the leading 0x) into an integer? regards, Mikey -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Stuart Dallas
On Saturday, June 1, 2002 at 6:29:59 PM, you wrote: Does anyone know of a function within PHP that will convert a hexadecimal string (without the leading 0x) into an integer? FFS!! http://www.php.net/hexdec -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Michael Davey
Which is so easy to find in the offline manual... Stuart Dallas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Saturday, June 1, 2002 at 6:29:59 PM, you wrote: Does anyone know of a function within PHP that will convert a hexadecimal string (without the

[PHP] Re: Retrieving Windows 98/NT/XP Login with PHP - Possible?

2002-03-19 Thread Mahmoud
Hi Shaun, I would like to be able to tailor the main webpage to whichever person visits it - but by using their windows login ID instead of having to get them to enter a username when the page is visited... Is this possible? Yes it is, if the user is logging on to the machine running

[PHP] Retrieving Windows 98/NT/XP Login with PHP - Possible?

2002-03-18 Thread Shaun :p
I have created a simple intranet server within my home for my family. I am running Apache 1.3.23 and PHP 4. Everything works fine, except that I would like to be able to tailor the main webpage to whichever person visits it - but by using their windows login ID instead of having to get them to

[PHP] possible bug in date() function

2002-02-10 Thread LaserJetter
Using the code below: $buffer['Last_access'] = 1013336429; $date = date(H:i D, nS M Y,$buffer['Last_access']); print $date; prints 10:20 Sun, 2th Feb 2002 I didnt know there was a 2th of February!! Is this a bug and do I get a prize for finding it? ;o) LJ -- PHP General Mailing List

Re: [PHP] possible bug in date() function

2002-02-10 Thread Edward van Bilderbeek - Bean IT
it was last week though... guesss you mean 29th? Edward LaserJetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Using the code below: $buffer['Last_access'] = 1013336429; $date = date(H:i D, nS M Y,$buffer['Last_access']); print $date; prints 10:20

[PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jeff Lewis
Is it possible to measure the amount of RAM or CPU power used to process a particular file written in PHP? Can the values be grabbed and displayed with PHP? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jason Wong
On Wednesday 30 January 2002 03:10, Jeff Lewis wrote: Is it possible to measure the amount of RAM or CPU power used to process a particular file written in PHP? Can the values be grabbed and displayed with PHP? There's a function getrusage(). Not sure whether that'll do what you want. --

[PHP] Possible bug: Using h and H with unpack()

2002-01-10 Thread Darren Gamble
Good day, I can not seem to get the h or H options to work at all with unpack(). I'm pretty sure that I have this right, although the documentation for this function is bit sparse. The code: print The data has been encoded (.strlen($varbind). bytes in size).; print Hex: PRE ;

[PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber
I've read the manual notes for ini_set, so I have a feeling the answer to my question is no, but I'd like to make sure. I have no control over my ISP's php.ini file, but the fact that they have session.auto_start set to 1 in php.ini is causing me problems. Is there any way to override this?

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Jim
How about another ISP? I've read the manual notes for ini_set, so I have a feeling the answer to my question is no, but I'd like to make sure. I have no control over my ISP's php.ini file, but the fact that they have session.auto_start set to 1 in php.ini is causing me problems. Is there any

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov
Try this http://www.google.com/search?hl=enq=%22.htaccess%22+%22override%22+%22php%22+%22settings%22spell=1 Regards, Anrey Hristov - Original Message - From: Kurt Lieber [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 7:06 PM Subject: [PHP] possible

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov
I think that I found the solution: http://www.zend.com/manual/configuration.php Regards - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 7:04 PM Subject: Re: [PHP] possible to override

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber
That worked! Thanks! For those who may be interested, I added the following lines to my .htaccess file: # change some php.ini settings IfModule mod_php4.c php_flag session.auto_start off /IfModule Also, this obviously only works with Apache with PHP running as a module. Not sure if there's

[PHP] possible problems working with sessions

2001-11-22 Thread Alberto Mucignat
well, if you're using default session handling provided with php, users sessions are stored in /tmp directory (also used by default for temporary caching of uploaded files). assume to have the php.ini file with default settings: session.gc_probability = 1 session.gc_maxlifetime = 1440 this

[PHP] possible safe mode bug with opendir() ?

2001-11-11 Thread operator
When in safe mode shouldn't PHP check to see if the directory that is about to be opened with a opendir() function has the same UID as the PHP script itself, and fail if the UIDs do not match? Because in PHP 4.0.6 with safe_mode on, a PHP script owned by fred can open any directory owned by

[PHP] Possible to store arrays in session variables?

2001-09-24 Thread Johnny Nguyen
Is it possible to store arrays inside of session variables? I mean is this a valid statement? $HTTP_SESSION_VARS[Crumbs][0] = 1; $HTTP_SESSION_VARS[Crumbs][1] = 2; foreach ($HTTP_SESSION_VARS[Crumbs] as $k = $v) { echo $v -; } Regards, Johnny Nguyen -- PHP General Mailing List

[PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread Rebecca Donley
Hi all, I am switching from VBScript/ASP to PHP and have run into a problem with HTML anchors. My page has a list of links generated from a db. The links reference a second page, which displays multiple records from the db to include the referenced one. I need that page to load to the

Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread David Robley
On Fri, 14 Sep 2001 08:59, Rebecca Donley wrote: Hi all, I am switching from VBScript/ASP to PHP and have run into a problem with HTML anchors. My page has a list of links generated from a db. The links reference a second page, which displays multiple records from the db to include the

Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread Rebecca Donley
Phillip and David, The output control functions worked perfectly. You saved me many hours of frustration and wasted time. Thanks so much! Rebecca From: David Robley [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Rebecca Donley [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP

<    1   2   3   >