Re: [PHP] Calling functions from Button actions

2003-09-13 Thread Marek Kilimajer
Example: form action=action.php input type=submit name=action1 value=Execute function action1() input type=submit name=action2 value=Execute function action2() /form action.php: function action1() { echo Hello, I'm action1; } function action2() { echo Hello, I'm action2; }

[PHP] Re: problems and segmentation fault with constants in PHP5

2003-09-13 Thread Cristiano Duarte
I reported this BUG at php.bugs as http://bugs.php.net/?id=25323. It's there for 13 days now and still no answer... :-( Cristiano Duarte Cristiano Duarte [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Is this suppose to work ? Currently it does not. class Priority {

[PHP] Whats wrong?

2003-09-13 Thread Stevie D Peele
Whats wrong with this title?php echo Thank You, $senderemail; ?/title where $senderemail = $_POST['from']; It doesnt It only echos thank you. Why?

Re: [PHP] Whats wrong?

2003-09-13 Thread Ryan A
Hey, Just touched it up a bit but its working: title ?php $senderemail = $_POST['from']; print Thank You, $senderemail; ? /title This should come before: $senderemail = $_POST['from']; not after this: print Thank You, $senderemail; plus I'm guessing that either your form is sending

Re: [PHP] Whats wrong?

2003-09-13 Thread Sid
Try this title?echo Thank You, .$_POST['from']; ?/title - Sid On Sat, 13 Sep 2003 08:45:16 -0400, Stevie D Peele wrote:  Whats wrong with this  title?php echo Thank You, $senderemail; ?/title  where  $senderemail = $_POST['from'];  It doesnt It only echos thank you.  Why? -- PHP

Re: [PHP] Displaying Blobs by a newbie

2003-09-13 Thread Phil King
Hi Warren, Thanks for your reply. I imported the blobs into mysql database. They were in jpeg format. Phil. Warren Vail [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You didn't say how the images were placed in the db but you did indicate they were jpeg format. I'd try;

[PHP] For Loops and Variables??

2003-09-13 Thread John Ryan
When I use for loops, at the start of each iteration, the variables hold the values from the last loop. First, is there an elegant way of clearing variables at the start of each loop rather than using unset???! It just seems wrong. Also, all my problems would be solved if variables in a for loop

Re: [PHP] Displaying Blobs by a newbie

2003-09-13 Thread Curt Zirzow
* Thus wrote Phil King ([EMAIL PROTECTED]): Hi All, I have some images in a mysql database. I wish to display all these images on a PHP Page. I have created a query to retrieve all the images from the database but all that is displayed is characters. I have the Content-Type as image/jpeg

Re: [PHP] For Loops and Variables??

2003-09-13 Thread Curt Zirzow
* Thus wrote John Ryan ([EMAIL PROTECTED]): When I use for loops, at the start of each iteration, the variables hold the values from the last loop. First, is there an elegant way of clearing variables at the start of each loop rather than using unset???! It just seems wrong. I'm unclear as

Re: [PHP] PHP on a .NET enviroment machine: Conflicts?

2003-09-13 Thread Curt Zirzow
* Thus wrote Jay Paulson ([EMAIL PROTECTED]): Quick question to the community here. The company I work for got bought out and now they are wanting to migrate all the web sites that I have created in PHP to their Windows, IIS, .NET enviroment. I have been trying to talk to the people at

[PHP] Re: Calling functions from Button actions

2003-09-13 Thread Daniel Souza
? function func1() { } function func2() { } function func3() { } function func4() { } function func5() { } if (isset($_REQUEST['funcs'])) foreach ($_REQUEST['funcs'] as $key=$val) if (function_exists($key)) $key(); ? hr

Re: [PHP] loading classes and efficiency

2003-09-13 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): function create_object() { [..] } $some_object = create_object('some_object'); This line should be: $some_object = create_object('some_object'); The use of at calltime is deprecated and should only be used in the declaration

Re: [PHP] Mysql Authentication problem

2003-09-13 Thread Curt Zirzow
* Thus wrote James Hamilton ([EMAIL PROTECTED]): [snip] The user has both localhost and % host privileges in the mysql permission schema. [/snip] Any other thoughts? [/snip] current testing code: $link = mysql_connect(localhost, user, pass ) or die(Could not

[PHP] Using Image/GD functions to transform images stored in database

2003-09-13 Thread weston
I'm new to the GD/Image functions with PHP, and I'm trying to use them to manipulate jpeg images that I've stored in a MySQL database (specifically, creating thumbnails). The thing I can't tell from reading the documentation is how to use these image functions to operate on image data -- it

[PHP] Repost - Cookie advice

2003-09-13 Thread James Johnson
Reposted, as it appears it didn't go thru. Hi, I have a Remember me on this computer check box, which sets a cookie for future logins. What's the consensus on when a cookie of this type should expire? I currently have it set for 30 days. Thanks, James -- PHP General Mailing List

Re: [PHP] caching program...

2003-09-13 Thread Curt Zirzow
* Thus wrote Andrea Tricco ([EMAIL PROTECTED]): Hi, Hello I'm using the function file_get_contents() to replicate the content of a remote html page on my server. But, the function file_get_contents() works even when the name of the file is not specified. For example:

Re: [PHP] Using Image/GD functions to transform images stored in database

2003-09-13 Thread Jason Wong
On Sunday 14 September 2003 01:12, [EMAIL PROTECTED] wrote: I'm new to the GD/Image functions with PHP, and I'm trying to use them to manipulate jpeg images that I've stored in a MySQL database (specifically, creating thumbnails). The thing I can't tell from reading the documentation is how to

[PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Eugene Lee
Something I've noticed in PHP is a proliferation of code like this: input name=stuff[title] value= type=text size=40 According to the specs, the square brackets in stuff[title] are technically illegal. http://www.w3.org/TR/html4/types.html#h-6.2 ID and NAME tokens must

Re: [PHP] PEAR DB flipped fetch mode

2003-09-13 Thread Curt Zirzow
* Thus wrote Dan Phiffer ([EMAIL PROTECTED]): Could somebody explain (or point me to some online docs) the usage of DB_FETCHMODE_FLIPPED, defined by PEAR DB? I feel like I've seen it mentioned on the PEAR site, but somehow I can't find it now. I'm pretty sure it's on a page linked from here:

Re: [PHP] Header and dfile download bug???

2003-09-13 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi all, I have a download for that collects data from a user (name, e-mail etc) The $bu variable and others are from the previous form too. [...] So, it works great on my desktop here at work, but I just got a few mails from random

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): Something I've noticed in PHP is a proliferation of code like this: input name=stuff[title] value= type=text size=40 According to the specs, the square brackets in stuff[title] are technically illegal.

Re: [PHP] Looking for a real good editor with some specific featrues ...

2003-09-13 Thread Curt Zirzow
* Thus wrote Daniel Szasz ([EMAIL PROTECTED]): Hello I'm working in programming for many years and I'm looking now for an editor for php good like the borland editor in Delphi/CBuilder.. Also I will be glad to b something with the same shortcuts like there ( i'm talking about classic

[PHP] htmlentities() and the macintosh character set

2003-09-13 Thread Michael Winston
Hello- I have a request but don't know where to send it. Thus, it ends up here. Alternately, I'm looking for some solutions: The request: Can the macintosh character set be added as an option for htmlentities() and other commands? That would be so helpful for our mac-based company. The

[PHP] Mozilla and german 'Umlaute'

2003-09-13 Thread Thomas Weber
Hi, i have a strange problem with Mozilla. When submitting a form, german umlaute (ä (ae), ü (ue) and others) become strange 16bit-chars like 'ä'. I've tested this with PHP as dynamic Apache-module and with an own webserver written in PHP. Doctype and other XML-specific things in the page with

RE: [PHP] Session stealing, ..

2003-09-13 Thread esctoday.com | Wouter van Vliet
Thanks all for your replies .. It's pretty much what I already thought, a really secure way of handling sessions there is not. Though most of the most interesting information came from Jason (Yes! I'd love to see your custom session handler .. if be it only for inspiration to the one I'm planning

[PHP] socket_write eats data

2003-09-13 Thread Thomas Weber
Hi, I am deveoping a chatserver in IRC-style in PHP. For communication it uses socket-multiplexing aka socket_select. So long so good, works perfectly. The problem is, than when i make several socket_write's to the same client without waiting about 0.1sec after each write, the written data gets

RE: [PHP] Whats wrong?

2003-09-13 Thread esctoday.com | Wouter van Vliet
or even: title?=(Thank you, $_POST[from])?/title :P - -Oorspronkelijk bericht- - Van: Sid [mailto:[EMAIL PROTECTED] - Verzonden: zondag 14 september 2003 3:43 - Aan: Stevie D Peele; [EMAIL PROTECTED] - Onderwerp: Re: [PHP] Whats wrong? - - - Try this - - title?echo Thank

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
Hi, i've checked a hundred things before posting this question, but i forgot the most important thing, the buffer. The 'eaten' writes were buffered by the network-kernel and sent as bunch of data. If too much data for the buffer is sent, the write is broken up and completed in the next

Re: [PHP] loading classes and efficiency

2003-09-13 Thread Brad Pauly
On Sat, 2003-09-13 at 11:08, Curt Zirzow wrote: * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): function create_object() { [..] } $some_object = create_object('some_object'); This line should be: $some_object = create_object('some_object'); The use of at calltime

Re: [PHP] htmlentities() and the macintosh character set

2003-09-13 Thread Eugene Lee
On Sat, Sep 13, 2003 at 11:24:56AM -0700, Michael Winston wrote: : : The request: Can the macintosh character set be added as an option for : htmlentities() and other commands? That would be so helpful for our : mac-based company. : : The problem: I'm fairly new to php and have found that

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Eugene Lee
On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote: : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): : Something I've noticed in PHP is a proliferation of code like this: : : input name=stuff[title] value= type=text size=40 [...] : The way to properly do it would be to set set your

Re: [PHP] Mozilla and german 'Umlaute'

2003-09-13 Thread Dan Anderson
Does anyone know this problem? Does someone have a solution for this? You are probably using UTF16 (or is it called UTF8?) encoding which allows many spiffier things then ASCII. There are functions to allow conversion between UTF and ASCII. I ran into this problem when a spanish client tried

RE: [PHP] Session stealing, ..

2003-09-13 Thread Ben C.
I would also be interested in seeing the code as well. If you could also e-mail it to me, I would be very appreciative. Ben -Original Message- From: Jason Sheets [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:56 PM To: Wouter van Vliet Cc: PHP General Subject: Re: [PHP]

[PHP] MySql Query Help: COUNT()

2003-09-13 Thread [-^-!-%-
Hello everyone! I'm trying to get the total number of a certain records from a database, but the result is always '1'. Please advise! =MySql Table = =activitiy = id | employee_id | project_id | date 1 | 45 | 60 | 2003-09-09 2 | 34 | 10 | 2003-09-10 3

[PHP] Text into a url

2003-09-13 Thread Tom Wollaston
Hi I am havening a problem retrieving url from a mysql database. I have the url's stored as text and am using the following code to retrieve them $query = SELECT name,url FROM clubs WHERE url'' ORDER BY name; $result = @mysql_query($query) or die (Query failed); if (mysql_num_rows($result)

Re: [PHP] Text into a url

2003-09-13 Thread John W. Holmes
Tom Wollaston wrote: Hi I am havening a problem retrieving url from a mysql database. I have the url's stored as text and am using the following code to retrieve them $query = SELECT name,url FROM clubs WHERE url'' ORDER BY name; $result = @mysql_query($query) or die (Query failed); if

[PHP] More Image Transformation Difficulty

2003-09-13 Thread weston
I'm trying to write a script that pulls an image from a database and transforms the size if passed a width via the url query string. Thanks to the helpful hint about the function imagecreatefromstring, I think I'm now able to ready image data I've pulled for a database with GD. However, I'm

Re: [PHP] MySql Query Help: COUNT()

2003-09-13 Thread John W. Holmes
I'm trying to get the total number of a certain records from a database, but the result is always '1'. Please advise! =MySql Table = =activitiy = id | employee_id | project_id | date 1 | 45 | 60 | 2003-09-09 2 | 34 | 10 | 2003-09-10 3 | 45 | 45

Re: [PHP] Integrating an Applet with PHP

2003-09-13 Thread Todd Cary
Raditha - I am using NS 7.1 running in Windows 2000. Which version of Netscape are you running? This certainly is a strange situation. http://www.hexidec.com/ekitdemo.php No HTML shows in the Editor window on startup with NS; it is there with IE. Todd Raditha Dissanayake wrote:

Re: [PHP] Integrating an Applet with PHP

2003-09-13 Thread Raditha Dissanayake
Mozilla 1.4 Red Hat 9.0 KDE 3.2 JRE 1.4.2 Todd Cary wrote: Raditha - I am using NS 7.1 running in Windows 2000. Which version of Netscape are you running? This certainly is a strange situation. http://www.hexidec.com/ekitdemo.php No HTML shows in the Editor window on startup with NS;

php-general Digest 14 Sep 2003 00:36:26 -0000 Issue 2295

2003-09-13 Thread php-general-digest-help
php-general Digest 14 Sep 2003 00:36:26 - Issue 2295 Topics (messages 162494 through 162532): Re: problems and segmentation fault with constants in PHP5 162494 by: Cristiano Duarte Whats wrong? 162495 by: Stevie D Peele 162496 by: Ryan A 162497 by: Sid

Re: [PHP] Integrating an Applet with PHP

2003-09-13 Thread Raditha Dissanayake
Hi, Ouch tried it again and mozilla had a heart attack and core dumped :-(( Then i tried konqueror browser worked like a charm Gentlemen, i think others in the group must be pretty annoyed about this thread shall we hop over to a java group? Raditha Dissanayake wrote: Mozilla 1.4 Red Hat 9.0

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Raditha Dissanayake
Is IRC UDP? Thomas Weber wrote: Hi, i've checked a hundred things before posting this question, but i forgot the most important thing, the buffer. The 'eaten' writes were buffered by the network-kernel and sent as bunch of data. If too much data for the buffer is sent, the write is broken up and

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
No, it's TCP and a very uncomplicated protocol, everything is sent in clear text. Major problem is the socket-multicasting to keep track of all clients simultanly. - Original Message - From: Raditha Dissanayake [EMAIL PROTECTED] To: Thomas Weber [EMAIL PROTECTED]; PHP-List [EMAIL

[PHP] Trying to submit form to frame and pass php var

2003-09-13 Thread info
Hello I was wondering if someone could help me out. Trying to submit form to frame and pass php var at the same time. script language=JavaScript!-- function submitform(){ top.admin.document.adminform.submit(); } //--/script and... frameset rows=538,83 cols=* frame src=admin.php?order=1

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
wont they both be set ? i generally use a button type and onclick document.location.href to enforce an action in the get variable like something.php?action=something Example: form action=action.php input type=submit name=action1 value=Execute function action1() input type=submit name=action2

Re: [PHP] Text into a url

2003-09-13 Thread daniel
$query = SELECT name,url FROM clubs WHERE url'' ORDER BY name; ?? could it not be $query = SELECT name,url FROM clubs WHERE url != ORDER BY name; Hi I am havening a problem retrieving url from a mysql database. I have the url's stored as text and am using the following code to retrieve

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Robert Cummings
On Sat, 2003-09-13 at 17:21, Eugene Lee wrote: On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote: : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): : Something I've noticed in PHP is a proliferation of code like this: : :input name=stuff[title] value= type=text size=40 [...] :

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread John W. Holmes
[EMAIL PROTECTED] wrote: Dan J. Rychlik wrote: Is their an easy way to call a function based upon a button action? Example: form action=action.php input type=submit name=action1 value=Execute function action1() input type=submit name=action2 value=Execute function action2() /form action.php:

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
apologies i generally use this system for deleting records, i give a confirm box if they press ok it goes to another action, i suppose i should change this system to submit the form instead and check for the post var ? i guess at least it could store the http_referer then :\ [EMAIL PROTECTED]

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread John W. Holmes
[EMAIL PROTECTED] wrote: apologies i generally use this system for deleting records, i give a confirm box if they press ok it goes to another action, i suppose i should change this system to submit the form instead and check for the post var ? i guess at least it could store the http_referer then

Re: [PHP] Calling functions from Button actions

2003-09-13 Thread daniel
my form action usually looks like this some.php?action=updateID=1 my update will look like update table set *** where _rowid=$_GET['ID'] so therefore its globally used. i'd use the id from the get var but i guess in the delete function i could place this within the update action so case

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Raditha Dissanayake
Wouldn't this multiple connections be a problem for php? IMHO one of the main draw backs of the PHP IMAP library is the fact that you have to open and close and imap connection for each page. That issue is multiplied ten fold in this scenario isn't it? Thomas Weber wrote: No, it's TCP and a

[PHP] change PHP include directory

2003-09-13 Thread Tim Thorburn
Hi, Normally to change a sites include directory for PHP I'd use a .htaccess file and the following command: php_value include_path .:/path/to/web/ Again normally, I would get the path to the site by doing a simple phpinfo(); command and find the _ENV[DOCUMENT_ROOT] line near the end of the

Re: [PHP] change PHP include directory

2003-09-13 Thread John W. Holmes
Tim Thorburn wrote: Normally to change a sites include directory for PHP I'd use a .htaccess file and the following command: php_value include_path .:/path/to/web/ Again normally, I would get the path to the site by doing a simple phpinfo(); command and find the _ENV[DOCUMENT_ROOT] line near

[PHP] innodb + php caching issues

2003-09-13 Thread daniel
Hi there i have experienced a wierd bug , where after i commit a query in innodb that change wont be viewable until i refresh the page , this doesnt happen in a similar system framwork using myisam tables the change is viewable, what could be the problem ? should i just give nocache headers for a