Re: [PHP] Defined constant in mysql_query - Question.

2005-04-12 Thread Petar Nedyalkov
On Wednesday 13 April 2005 04:37, Labunski wrote: > Hi, > Can I use Constant in mysql query like this: > > > define("LANG", "eng"); > mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY > subjectLANG"); You can use: mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY sub

Re: [PHP] error handling

2005-04-12 Thread Petar Nedyalkov
On Wednesday 13 April 2005 08:46, Cima wrote: > hi, > > im working with php 4 and postgresql 8 and i would like to know how to > handle certain errors generated. in postgresql, i've written a stored > function that selects a record from a table and in case no record is found > i 'raise an exceptio

Re: [PHP] image display

2005-04-12 Thread Petar Nedyalkov
On Wednesday 13 April 2005 09:11, Cima wrote: > hi, > > what is the best way to display an image, that is stored in a database in > postgres, in a table form along with other fields that are in the same > table? > > postgresql 8.0 > e.g my_table(name varchar(15),sex character (1), picture_id oid) >

[PHP] error handling

2005-04-12 Thread Cima
hi, im working with php 4 and postgresql 8 and i would like to know how to handle certain errors generated. in postgresql, i've written a stored function that selects a record from a table and in case no record is found i 'raise an exception'. fine, now in my php script i call that the stored fu

[PHP] image display

2005-04-12 Thread Cima
hi, what is the best way to display an image, that is stored in a database in postgres, in a table form along with other fields that are in the same table? postgresql 8.0 e.g my_table(name varchar(15),sex character (1), picture_id oid) in a table in php, i'd like to show all the rows in my_table

Re: [PHP] HELP!

2005-04-12 Thread Stephen Johnson
Yes -- In your example - $result_id would be accessed on page2 as $result_id = $_GET['result_id']; Then through out your script on page 2 you could access $result_id. Hope that helps. æ-- åæçäå- $result_id æèçååé2 $result_id = $_get['result_id ' ]; çåééåæçåæäååé2 æèèå $result_idã åæååã

[PHP] HELP! HELP !

2005-04-12 Thread Justin Joe
HI, Any body give me any hinder I would be very appreciated! I want to use a parameter of the second page in the first page, how can I realize it. For example, there is a segment in the first page: " com " But I want to use the parameter "$result_id" which in the second page(au

Re: [PHP] Storing password in cookie

2005-04-12 Thread trlists
On 11 Apr 2005 Chris Shiflett wrote: > > > DO NOT STORE PASSWORDS ON USERS COMPUTER > > > > A couple of people have stated this but I think it is incorrect. > > Please refrain from such speculation, because it does nothing to improve > the state of security within our community. This idea of st

[PHP] HELP!

2005-04-12 Thread 王成乔
HI, Any body give me any hinder I would be very appreciated! I want to use a parameter of fist page in the second page, how can I realize it. For example, there is a segment in the first page: “ com ” But I wan to use the parameter “$result_id” in the second page(autorenew.php) :

Re: [PHP] validating input

2005-04-12 Thread trlists
On 12 Apr 2005 blackwater dev wrote: > $good = "joh_'"; > > // Let's check the good e-mail > if (preg_match("/[a-z0-9]/", $good)) { > echo "Good"; > } else { > echo "Bad"; > } > > This returns Good, why? That regex matches any string which contains at least one (lowercase) lett

[PHP] Re: Creating a Directory

2005-04-12 Thread Labunski
I think you could use php function mkdir() to do this. mkdir("/path/to/my/upload_dir", 0777); But unfortunately there is big "BUT" aka Safe_mode. To use this mkdir() function, you have to disable the Safe_mode on the server :( "Note: When safe mode is enabled, PHP checks whether the directory i

Re: [PHP] Simple Problem

2005-04-12 Thread Joseph Connolly
I think what you mean/need is: $sql="SELECT products.productID, products.title, products.number_per_box, products.stock_level, products.image, users.username, users.email, users.userID FROM users, products WHERE products.userID = users.userID AND userID = $userID"; John Nichel wrote: PartyPo

[PHP] Defined constant in mysql_query - Question.

2005-04-12 Thread Labunski
Hi, Can I use Constant in mysql query like this: define("LANG", "eng"); mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY subjectLANG"); Thanks a LOT, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-12 Thread D. Wokan
Richard Lynch wrote: On Sat, April 9, 2005 11:51 am, [EMAIL PROTECTED] said: *WHY* would you not store some kind of hash of the user ID?! setcookie('remember_me', md5($username)); . . . select username from users where md5(username) = $_SESSION['remember_me'] Is that really any harder? It's very ha

Re: [PHP] validating input

2005-04-12 Thread Chris Shiflett
blackwater dev wrote: I want to check a string for only numbers and letters but am banging my head with regex: ctype_alnum() Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

RE: [PHP] scripting workflow

2005-04-12 Thread Mike
> First off, do people prefer to have all their code in one > file? Or multiple separate files? I know functions and > classes are good to keep in separate files, but i am talking > about say for example a news system, etc. For me, this largely depends on project size and the types of functions

[PHP] Re: scripting workflow

2005-04-12 Thread Skrol 29
Hi, I don't have your problems because I use a Template Engine. I usually have one main PHP script for the application, which doesn't deal with HTML directly. Other PHP scripts are libraries or special objects like the Template Engine itself. This also enables me to work WYSIWYG with user interface

[PHP] scripting workflow

2005-04-12 Thread DuSTiN KRySaK
I just have a few questions regarding workflow when producing scripts. First off, do people prefer to have all their code in one file? Or multiple separate files? I know functions and classes are good to keep in separate files, but i am talking about say for example a news system, etc. Next off

Re: [PHP] Re: Limiting Cpu usage

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 8:20:46 AM, you wrote: z> Yeahh! i have made it z> i can slow down a php script , as i edited the zend engine source to usleep z> every 1000 low-level instructions z> now, is there a way to determine to check my cpu load and adjust it by that z> so if nothing

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 6:04:05 AM, you wrote: MH> I get the following error when I try your suggestion: MH> Unknown error type: [8] Undefined variable: iv MH> Code: $key = md5($this->>_cypherkey); MH> $key = substr($key, 0, mcrypt_enc_get_key_size($this->td)); MH> $iv_size = mcrypt_enc

RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Matthew Weier O'Phinney on Tuesday, April 12, 2005 9:42 AM said: > When using mod_rewrite, if the rewrite rule does not include a > pass-through, then the query string is not passed on to the script in > question. So, if you request the page directly with: > > h

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
Hi, Wednesday, April 13, 2005, 5:14:25 AM, you wrote: MH> Do you do this on the encryption or the decryption section or both? I do it on both, here is a class I use that may help: class encryptClass{ var $secret; function encryptClass(){ $this->secret = 'put secret here'; } Function

Re: [PHP] mod_rewrite from .htaccess

2005-04-12 Thread Greg Donald
On 4/12/05, Amir Mohammad Saied <[EMAIL PROTECTED]> wrote: > I want to use mod_rewrite patterns, but i have not access to the > httpd.conf so i think i should use .htaccess, but the patterns don't > work properly there, have my admin should set any settings in the > httpd.conf? AllowOverrides must

[PHP] validating input

2005-04-12 Thread blackwater dev
I want to check a string for only numbers and letters but am banging my head with regex: $good = "joh_'"; // Let's check the good e-mail if (preg_match("/[a-z0-9]/", $good)) { echo "Good"; } else { echo "Bad"; } This returns Good, why? Thanks! -- PHP General Mailing List (http:

Re: [PHP] Re: class calling script

2005-04-12 Thread Bruno B B Magalhães
Well, I have a framework class witch loads and stores all classes in it. I can´t post the all code, but some I cam: Loading a core class like a database class: --- function loadcore(&$handler, $class_name = '') {

Re: [PHP] Finding records within 15 minutes from now?

2005-04-12 Thread Marek Kilimajer
J J wrote: I'm struggling with the php or mysql query to find records within my database that are within 15 minutes from now and prior. Example: It's 2:30pm on 4/12/05 I need to find all records with a RecordTime of 2:45pm and previous. So it should find: rec1 time: 2:45 date: 4/12/05 rec2 time: 2:

[PHP] header script: cannot use target="_blank"

2005-04-12 Thread Marty
Hello, I cannot open a new window from a popup when a user logs into their account. How would I go about adding target="_blank" after successful login. Your help would be greatly appreciated. Best Regards, Martin http://";; break; case "2096":$port

[PHP] PHP Programmer Needed in Miami

2005-04-12 Thread Joey
You or someone you know maybe interested in the programming position we have available. We have the need for a part time / possibly contract PHP programmer. We are looking for people that can work in our Miami office (even contractors), so please do not try and sell us your services if the location

[PHP] show the directory and folders an web page

2005-04-12 Thread Tomás Rodriguez Orta
Hello friends. I want to do an applicattion for show all folder and file to send by ftp(the folder and file that I select) for my isp, ok? but I don't know how can I do this?, somebody Can help me?, what function I need if I want to show this?.dir(); best regards TOMAS -

Re: [PHP] Finding records within 15 minutes from now?

2005-04-12 Thread Richard Davey
Hello, Tuesday, April 12, 2005, 8:33:08 PM, you wrote: JJ> I'm struggling with the php or mysql query to find records within JJ> my database that are within 15 minutes from now and prior. Assuming MySQL: SELECT * FROM blah WHERE RecordTime > DATE_SUB(now(), interval 15 min) (something like tha

Re: [PHP] Finding records within 15 minutes from now?

2005-04-12 Thread Philip Hallstrom
Are you saying you want all records whose timestamp is less than now plus 15 minutes? If so... SELECT ... WHERE ts_col <= CURRENT_TIMESTAMP + INTERVAL 15 MINUTES; should do it I'd think. see here for more (the DATE_ADD function) http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html On T

Re: [PHP] Finding records within 15 minutes from now?

2005-04-12 Thread Greg Donald
On Apr 12, 2005 2:33 PM, J J <[EMAIL PROTECTED]> wrote: > I'm struggling with the php or mysql query to find > records within my database that are within 15 minutes > from now and prior. > select NOW(), DATE_ADD( NOW(), INTERVAL 15 MINUTE ); +-+-

Re: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Matthew Weier O'Phinney
* Chris W. Parker <[EMAIL PROTECTED]>: > Ospinto > on Tuesday, April 12, 2005 10:32 AM said: > >> I used mod_rewrite to change http://www.mysite.com/page/1 to >> http://www.mysite.com/page.php?id=1 to enable a search friendly url. > > Ok I'm with you. > >> Everything

Re: [PHP] OT Where is a good place to post PHP job opportunities

2005-04-12 Thread Chris Shiflett
Joey wrote: Sorry to post this here, but I don't know if the list has a jobs section etc. or if there is a good place where I can post job opportunities for php programmers? This list is fine. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List

Re: [PHP] Fulltext search engine

2005-04-12 Thread Marek Kilimajer
Roman Duriancik wrote: I need in my own web server with mysql database and php script some free fulltext engine. But i need search in slovak language (all data in database in slovak). Can yopu help me where i can find some free fulltext engine ? roman http://dev.mysql.com/doc/mysql/en/fulltext-se

[PHP] mod_rewrite from .htaccess

2005-04-12 Thread Amir Mohammad Saied
I want to use mod_rewrite patterns, but i have not access to the httpd.conf so i think i should use .htaccess, but the patterns don't work properly there, have my admin should set any settings in the httpd.conf? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Storing password in cookie

2005-04-12 Thread Greg Donald
On Apr 12, 2005 12:05 PM, Joe Wollard <[EMAIL PROTECTED]> wrote: > See http://us2.php.net/manual/en/function.session-set-save-handler.php > for more details on building a custom session handler. http://destiney.com/pub/Destiney_db_sessions_0.1.0.tar.bz2 Provides simple database driven PHP sessions

RE: [PHP] Creating a Directory

2005-04-12 Thread Jay Blanchard
[snip] Hello, I am using the following script to upload files to my server. Is there anyway I can create a directory (on the fly) for the new image to go, as I want people to be able to upload files with the same name. [/snip] You know that manual thingie? It's awersome! http://us3.php.net/mkdir

[PHP] Finding records within 15 minutes from now?

2005-04-12 Thread J J
I'm struggling with the php or mysql query to find records within my database that are within 15 minutes from now and prior. Example: It's 2:30pm on 4/12/05 I need to find all records with a RecordTime of 2:45pm and previous. So it should find: rec1 time: 2:45 date: 4/12/05 rec2 time: 2:00 date:

[PHP] OT Where is a good place to post PHP job opportunities

2005-04-12 Thread Joey
Hi Guys, Sorry to post this here, but I don't know if the list has a jobs section etc. or if there is a good place where I can post job opportunities for php programmers? Thanks, Joey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Limiting Cpu usage

2005-04-12 Thread zini10
Yeahh! i have made it i can slow down a php script , as i edited the zend engine source to usleep every 1000 low-level instructions now, is there a way to determine to check my cpu load and adjust it by that so if nothing (or very low cpu usage) is running on the system he'll get extra p

[PHP] Re: mod_rewrite from .htaccess

2005-04-12 Thread Matthew Weier O'Phinney
* Amir Mohammad Saied <[EMAIL PROTECTED]>: > I want to use mod_rewrite patterns, but i have not access to the > httpd.conf so i think i should use .htaccess, but the patterns don't > work properly there, have my admin should set any settings in the > httpd.conf? I use mod_rewrite from .htaccess

Re: [PHP] Storing password in cookie

2005-04-12 Thread Joe Wollard
> On a shared server, every other PHP scripter can read your session data, > if they work at it a little bit. If you're on a shared server I think a good option for you might be to store the sessions in your database. At least then you know that as long as long as your db server doesn't have any

Re: [PHP] Carriage Return problem!

2005-04-12 Thread Brandon Ryan
Make sure there are no extra characters (including linefeeds) after the closing "?>" in your php source file. Brandon Ryan On 12 Apr 2005 19:42:17 -, Dipesh Khakhkhar < [EMAIL PROTECTED]> wrote: > > Hi, > > I am using php to generate and xml output file from another xml file using > xsl.

[PHP] Creating a Directory

2005-04-12 Thread PartyPosters
Hello, I am using the following script to upload files to my server. Is there anyway I can create a directory (on the fly) for the new image to go, as I want people to be able to upload files with the same name. Thanks $uploadDir = 'uploads/'; $uploadFile = $uploadDir . $_FILES['form_data']['n

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Mike Hummel
I get the following error when I try your suggestion: Unknown error type: [8] Undefined variable: iv Code: $key = md5($this->_cypherkey); $key = substr($key, 0, mcrypt_enc_get_key_size($this->td)); $iv_size = mcrypt_enc_get_iv_size($this->td); #$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $iv =

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Mike Hummel
Do you do this on the encryption or the decryption section or both? Tom Rogers wrote: Hi, Saturday, April 9, 2005, 3:35:21 AM, you wrote: MH> I have an odd php issue with mcrypt. MH> I'm getting a lot of this type of error, but only sometimes: MH> mcrypt_generic_init(): Iv size incorrect; supplied

RE: [PHP] php and javascript

2005-04-12 Thread Ford, Mike
> -Original Message- > From: Richard Lynch > To: Marek Kilimajer > > On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: > > Assuming your form is named "Selection", you will have a javascript > > array document.forms['Selection'].elements['distID[]'] available. You > > can try: > > > >

[PHP] Carriage Return problem!

2005-04-12 Thread Dipesh Khakhkhar
Hi, I am using php to generate and xml output file from another xml file using xsl. The file is getting created properly and the xml instruction element is at 1st line. I am using ant to get the output remotely but it is adding one extra line i.e. carriage return. I checked everything in my xs

Re: [PHP] Simple Problem

2005-04-12 Thread Duncan Hill
On Tuesday 12 April 2005 16:24, PartyPosters typed: > $sql="SELECT products.productID, products.title, products.number_per_box, > products.stock_level, products.image, users.username, users.email, > users.userID FROM users, products  WHERE products.userID = $userID"; > $mysql_result=mysql_query($sq

RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Ospinto on Tuesday, April 12, 2005 10:32 AM said: > I used mod_rewrite to change http://www.mysite.com/page/1 to > http://www.mysite.com/page.php?id=1 to enable a search friendly url. Ok I'm with you. > Everything works fine, except that when I try to get the URL v

[PHP] Re: Simple Problem

2005-04-12 Thread Skrol29
That's a SQL problem, nothing to do with PHP. You've forgotten a JOIN clause. - Skrol29 www.tinybutstrong.com - PartyPosters a écrit : I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the

[PHP] PHP & Wire Ready

2005-04-12 Thread Joe Harman
Hello, Curious if anyone out there has any experience using PHP with Wire Ready??? We've taken over a site that uses the wire ready service... which is all done in ASP and needs to be converted over to PHP?? does anyone have or know of any pre-made classes or functions for dealing with this servi

Re: [PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Mark Sargent
Chris wrote: If you're using Apache 2, then you haven't got a ClearModule (or an AddModule for that matter either). Just set the LoadModule directive. If it's Apache 1, towards the top of httpd.conf there should be A whole bunch of LoadModules, then a little bit farther down, a whole bunch of

Re: [PHP] Simple Problem

2005-04-12 Thread Richard Davey
Hello PartyPosters, Tuesday, April 12, 2005, 4:24:34 PM, you wrote: P> I can't figure out what I am doing wrong, this sql string seems to P> filter out the information I want but it duplicates the all info, P> as 'num_rows' is total of rows in the table and not the correct P> value of the filtere

[PHP] Re: Simple Problem

2005-04-12 Thread Labunski
I'm not sure, but I just know that if you need to select the information from two tables (and not just from one), you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html ) Hope this helps, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Re: Simple Problem

2005-04-12 Thread Labunski
I'm not sure, but I just know that if you need to select the information from two tables (and not just from one), you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html ) Hope this helps, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] Simple Problem

2005-04-12 Thread Pablo Gosse
I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql="SELECT products.productID, products.title, products.number_

Re: [PHP] Simple Problem

2005-04-12 Thread John Nichel
PartyPosters wrote: I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql="SELECT products.productID, products.tit

[PHP] Re: mod_rewrite and getting url variables

2005-04-12 Thread Matthew Weier O'Phinney
* Ospinto <[EMAIL PROTECTED]>: > I used mod_rewrite to change http://www.mysite.com/page/1 to > http://www.mysite.com/page.php?id=1 to enable a search friendly url. > Everything works fine, except that when I try to get the URL variable ($id) > by using $_GET, it doesn't return anything. With > htt

[PHP] Simple Problem

2005-04-12 Thread PartyPosters
I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql="SELECT products.productID, products.title, products.number

Re: [PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Chris
If you're using Apache 2, then you haven't got a ClearModule (or an AddModule for that matter either). Just set the LoadModule directive. If it's Apache 1, towards the top of httpd.conf there should be A whole bunch of LoadModules, then a little bit farther down, a whole bunch of AddModules, p

[PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Mark Sargent
Hi All, what line number is the following on, And in the AddModule section of httpd.conf, somewhere under the ClearModuleList, add this: For PHP 4: AddModule mod_php4.c For PHP 5: AddModule mod_php5.c Hell, I've scrolled up/down numerous times, and can't find

Re: [PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
Mark Sargent wrote: Hi All, keep getting this error with make on Fedora 3, home machine. Successfully installed on work FC3 machine earlier today. I did make twice, to no avail, and then redid the configure then another make, with the same results. collect2: ld returned 1 exit status make: ***

[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Skrol29
Hello, mysqli_stmt_bind_result() is a special function that takes parameters by reference after the first one. When you code: mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]); Then $arr[1] and $arr[2] can be passed by reference. But when you code: $arr[0]=$stmt; $arr[1]=''; $arr[2]=''; cal

[PHP] mod_rewrite and getting url variables

2005-04-12 Thread Ospinto
I used mod_rewrite to change http://www.mysite.com/page/1 to http://www.mysite.com/page.php?id=1 to enable a search friendly url. Everything works fine, except that when I try to get the URL variable ($id) by using $_GET, it doesn't return anything. With http://www.mysite.com/page.php?id=1 it gets

Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
Josip Dzolonga wrote: If you have NONE of those, you probably are trying to violate some kind of license. Don't do that. :-v Do not pay, to some reverse engineering :-) s/to/do , damn keyboard :) Which is obviously illegal if the shared library has a license that states he cannot do that. We don'

Re: [PHP] Is the syntax correct?

2005-04-12 Thread Richard Davey
Hello Labunski, Tuesday, April 12, 2005, 3:09:43 PM, you wrote: L> Is the syntax correct? (in connection with $order) : Nope. You need ; after the $order = lines. L> switch ($page) { L> case "news": L> $order = "DESC" L> break; L> case "articles": L> $order = "ASC" L> break; L>

[PHP] Re: Is the syntax correct?

2005-04-12 Thread Ben Ramsey
Labunski wrote: Is the syntax correct? (in connection with $order) : Nope. You need some semicolons (;). So, these would become: $order = "DESC"; $order = "ASC"; switch ($page) { case "news": $order = "DESC" break; case "articles": $order = "ASC" break; } mysql_query(" SELECT * FROM

[PHP] Is the syntax correct?

2005-04-12 Thread Labunski
Is the syntax correct? (in connection with $order) : switch ($page) { case "news": $order = "DESC" break; case "articles": $order = "ASC" break; } mysql_query(" SELECT * FROM data ORDER BY id $order "); Sorry for my bad english, Lab. -- PHP General Mailing List (http://www.ph

[PHP] Re: class calling script

2005-04-12 Thread Jason Barnett
[EMAIL PROTECTED] wrote: > Hi there, I have been testing a possible solution to reduce the ammount of > interface calling scriptsto my class files. Currently each class has a > calling script. I am For PHP5 you can try __autoload(). It provides for you a last-chance / just in time loading of a c

[PHP] Re: Update XML

2005-04-12 Thread Jason Barnett
Stefan wrote: > Hi NG! > I've a problem in updating an XML-Node value. > How can I change the value of an XML node? > > Thanks in Advance > Stefan AFAIK the sane way to do this is through the DOM API. Or if it's a one-off replacement you could use preg_match() and / or preg_replace() -- Teach a

[PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
Hi All, keep getting this error with make on Fedora 3, home machine. Successfully installed on work FC3 machine earlier today. I did make twice, to no avail, and then redid the configure then another make, with the same results. collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error

Re: [PHP] Regular expressions

2005-04-12 Thread jem777
ok for this 2: $body = preg_replace('|\[\s*quote\s*\]|', '[quote]', $body); $body = preg_replace('|\[\s*/\s*quote\s*\]|', '[/quote]', $body); but have these next instructions the same result? $body = eregi_replace("\[ *quote *\]", "[quote]", $body); $body = eregi_replace("\[ */ *quote *\]", "[/q

[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Patrick
correction: I made $args as this: $args='$rr[0],$rr[1]'; "Patrick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I ran into the same problem doing it oo style like this: > > call_user_func_array(array(&$stmt, 'bind_result'),$rr); > > Still don't understand why. Any input on this i

[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Patrick
I ran into the same problem doing it oo style like this: call_user_func_array(array(&$stmt, 'bind_result'),$rr); Still don't understand why. Any input on this is very much welcome. I could work around using eval: $obj=&$stmt; $mthd='bind_result'; $args[0]=''; $args[1]=''; eval("\$rval=\$obj->\$m

Re: [PHP] shared library in php

2005-04-12 Thread Josip Dzolonga
On ÐÑÐ, 2005-04-12 at 14:37 +0200, Josip Dzolonga wrote: > On ÐÐÐ, 2005-04-11 at 19:34 -0300, Ãngelo A. Camargo wrote: > > > If you have NONE of those, you probably are trying to violate some kind of > > > license. Don't do that. :-v > > Do not pay, to some reverse engineering :-) s/to/do , damn

Re: [PHP] Mail problem with PEAR

2005-04-12 Thread Josip Dzolonga
On ÐÑÐ, 2005-04-12 at 12:15 +0200, marc serra wrote: > Hi, i want to send an email with an attached file using PEAR classes. I > succeed to do it with one recipients and more. > > I use an external SMTP to send it. My problem is that when i want to > send an email with for example 4 recipients a

[PHP] Fulltext search engine

2005-04-12 Thread Roman Duriancik
I need in my own web server with mysql database and php script some free fulltext engine. But i need search in slovak language (all data in database in slovak). Can yopu help me where i can find some free fulltext engine ? roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Is there any other place to start php module?

2005-04-12 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 20:57 -0400, Teng Wang wrote: > So I guess there is some other place to start php4 already. > Where can I find it? PHP is probably installed as a static module. For disabling PHP support I think you'll need to recompile Apache. Hope this helps, Josip Dzolonga http://josip.do

Re: [PHP] shared library in php

2005-04-12 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 19:34 -0300, Ãngelo A. Camargo wrote: > > If you have NONE of those, you probably are trying to violate some kind of > > license. Don't do that. :-v Do not pay, to some reverse engineering :-) Josip Dzolonga http://josip.dotgeek.org -- PHP General Mailing List (http://www

[PHP] Re: PHPMaker - your opinions...

2005-04-12 Thread Satyam
Considering that we all fall into more or less into the same kind of code, and that a good chunk of all we program is quite basic, I don't see why this can be automated. Does it cover everything? I am sure it can't, but I know that a good percentage of my active pages look quite alike, and thos

[PHP] In need of help, plz

2005-04-12 Thread Siegfried
I've been working on a script to contain a monthly/weekly schema. The script is only starting from the start and stop unix timestamps for every task. Now I'm having the problem of displaying the tasks properly. For the time being, all tasks on a specific day gets its own column, but I want them

Re: [PHP] Why does PHP have __toString() and not just toString()

2005-04-12 Thread M. Sokolewicz
Rory Browne wrote: I was wondering that as well. While I was at it, I wondered why not use __to_str(), as per the PHP coding guidelines. because that's *against* php coding guidelines :) You should have a look at the guidelines for METHOD-naming, which is part of the OOP part. It states that for m

Re: [PHP] Storing password in cookie

2005-04-12 Thread trlists
On 11 Apr 2005 Richard Lynch wrote: > > Well, just because I'm not sure it is worth the effort. What is the > > point of storing a hash code as a proxy (in the colloquial sense of the > > word) for an encrypted password if knowing the hash code gets you the > > same access as knowing the password

Re: [PHP] Why does PHP have __toString() and not just toString()

2005-04-12 Thread Rory Browne
I was wondering that as well. While I was at it, I wondered why not use __to_str(), as per the PHP coding guidelines. While I'm at it, why is grass green, and milk white? On Apr 12, 2005 10:27 AM, Richard Davey <[EMAIL PROTECTED]> wrote: > Hello Tim, > > Tuesday, April 12, 2005, 10:07:44 AM, you

Re: [PHP] Regular expressions

2005-04-12 Thread Jason Wong
On Tuesday 12 April 2005 18:30, jem777 wrote: > Php docs are quite messy about what works with what function... > This is my problem; I want to strip out spaces from my tags: > > $word = "[ / quote ]"; > $word = eregi_replace("[[[:blank:]]*quote[[:blank:]]*]", "[quote]", > $word); $word = > eregi_r

[PHP] Regular expressions

2005-04-12 Thread jem777
Php docs are quite messy about what works with what function... This is my problem; I want to strip out spaces from my tags: $word = "[ / quote ]"; $word = eregi_replace("[[[:blank:]]*quote[[:blank:]]*]", "[quote]", $word); $word = eregi_replace("[[[:blank:]]*\/[[:blank:]]*quote[[:blank:]]*]", "[/

[PHP] Mail problem with PEAR

2005-04-12 Thread marc serra
Hi, i want to send an email with an attached file using PEAR classes. I succeed to do it with one recipients and more. I use an external SMTP to send it. My problem is that when i want to send an email with for example 4 recipients and 1 attached file, the mail is send 4 times to the SMTP serve

[PHP] PHPMaker - your opinions...

2005-04-12 Thread Chris Ramsay
Hello all, I'm curious - has anyone on the list ever used PHPMaker? I apologise in advance if this is heresy; the reason I am asking is that I am in the position of arguing my corner against the use of PHPMaker for someone actually bothering to code by hand. I can't believe that PHPMaker could pos

Re: [PHP] Why does PHP have __toString() and not just toString()

2005-04-12 Thread Richard Davey
Hello Tim, Tuesday, April 12, 2005, 10:07:44 AM, you wrote: TB> I'm wondering, why does the toString() of classes have two underscored TB> preceding it [e.g. __toString()], as opposed to Java's normal toString()? TB> What's the purpose of the two underscores in PHP's classes? The short answer:

Re: [PHP] Installation problem of PhP5.0.4 on Fedora 2

2005-04-12 Thread Andy Pieters
On Tuesday 12 April 2005 00:28, Richard Lynch wrote: > If your httpd.conf has a line loading PHP4 in it, comment that out. > Actually it might be inside a conf file in the conf.d subdirectory cd /etc/httpd/conf.d for a in *.conf; do echo "File $a"; grep "php" $a; done Will point you in the right

[PHP] Why does PHP have __toString() and not just toString()

2005-04-12 Thread Tim Burgan
Hello, I'm a University student studying Java, but I also do some freelance web design - so naturally I do a fair bit of PHP which seems to be very similar to Java. Usually I just code PHP as I need it, but down the track get REALLY annoyed when I need to edit or update my code. It's hard to fo

Re: [PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Mark Sargent
Jason Wong wrote: On Tuesday 12 April 2005 16:09, Mark Sargent wrote: I've gone and uninstalled the pre-installed httpd/php via yum on Fedora3 and re-installed Apache/PHP via source. Apache is now installed at /usr/local/apache2. I want to know, where is the dir for html/php files. B4 it was /va

Re: [PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Jason Wong
On Tuesday 12 April 2005 16:09, Mark Sargent wrote: > I've gone and uninstalled the pre-installed httpd/php via yum on > Fedora3 and re-installed Apache/PHP via source. Apache is now installed > at /usr/local/apache2. I want to know, where is the dir for html/php > files. B4 it was /var/www/html.

[PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Mark Sargent
Hi All, I've gone and uninstalled the pre-installed httpd/php via yum on Fedora3 and re-installed Apache/PHP via source. Apache is now installed at /usr/local/apache2. I want to know, where is the dir for html/php files. B4 it was /var/www/html. What is it now..? Cheers. Mark Sargent. -- PHP Ge

Re: [PHP] sql groups

2005-04-12 Thread Prathaban Mookiah
Try, http://forums.mysql.com/list.php?10 Prathap -- Original Message --- From: "William Stokes" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Tue, 12 Apr 2005 10:51:44 +0300 Subject: [PHP] sql groups > Know any good sql discussion groups for mysql? > > Thanks > -Will

Re: [PHP] sql groups

2005-04-12 Thread Davy Obdam
Have a look here: http://lists.mysql.com/ Best regards, Davy William Stokes wrote: Know any good sql discussion groups for mysql? Thanks -Will -- Davy Obdam mailto:[EMAIL PROTECTED] web: http://www.davyobdam.com Discordianism: Where reality is a figment of your imagination -- PHP General Maili

[PHP] sql groups

2005-04-12 Thread William Stokes
Know any good sql discussion groups for mysql? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there any other place to start php module?

2005-04-12 Thread Joe Wollard
You might also look towards the bottom of httpd.conf for any additional conf files that are to be read. As I recall OSX will look for an additional conf file by default which may be trying to load the same module. Prathaban Mookiah wrote: Might be under /modules.d/ Prathap -- Original Me

  1   2   >