[PHP] An important, urgent question about classes?
Hi all, I need to learn something about classes in PHP, that I could not understand what's going on really!? For the following sample, what kind of class i need to create? how can i use? For example, I have X students X: from 1 to infinity... With respect to student ID of them, And for each students, I have name,surname,addr,phone,email etc.. informations of them I want to create a class, such that, i can input info of students, for each student. And for example, when I did this for 10 students, I want to register with "session_register" and add/remove/change registered informarmations. I tried to do, but I could not understand the uses of classes clearly, so I could not do... Thus soem body write me small code which includes a sample class and adding/changing/deleting records for one student inside. Can I register a valuable which is a class? $mydata = new Students(); session_register("mydata"); ? is possible? Do we have any restriction about registering a variable with respect to its type? thanx... best regards... IncrediMail - Email has finally evolved - Click Here
[PHP] Re: I18n problems: Working with double-byte languages
Ricardo Junior wrote: Hi people ! I have a query regarding double-byte languages on PHP. I need to sort a index localized from English to Korean. My idea is: * get the Korean strings from file; * convert them to UTF8; * insert them in a Oracle database set to work with UTF8; * set NLS_LANG with Alter session SQL command to this variable match with Korean language; * get the strings sorted by Oracle with a SELECT * FROM table SORT BY field ASC SQL command; I've tried to convert the Korean string to UTF8 with utf8_encode function, but this function converted each byte from double-byte string to its relative in UTF8 chars. Reverting this string encoded to UTF8 with utf8_decode function, the browser can display successfully the Korean chars (because the individual bytes of the double-byte string will be as them were before), but Oracle can't sort the strings properly because that UTF8 chars converted by utf8_encode function were not relative to a double-byte char, but relative to a 2 single bytes chars! How can I convert a double-byte string to UTF8 properly??? Really thanks UTF-8 works but EUC-KR may be better. Anyway, take a look at mbstring, iconv, gettext modules. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
php-general Digest 15 Jan 2002 09:11:04 -0000 Issue 1112
php-general Digest 15 Jan 2002 09:11:04 - Issue 1112 Topics (messages 80493 through 80525): Re: strtok bug 80493 by: Manuel Lemos Re: override [EMAIL PROTECTED] 80494 by: Vlasyuk Valera Re: Setting up an XML platform/website 80495 by: Geoff Caplan 80496 by: Vlasyuk Valera Compile problems php 4.1.1 80497 by: Jay Paulson 80498 by: Rasmus Lerdorf Re: Finding PHP Developers for Remote Project 80499 by: Richard Spangenberg 80501 by: Boaz Yahav checkboxes vs text filed array and hidden variables 80500 by: m. ali 80519 by: Jason Wong Wrong result (345php.tmp) instead a filepath from input file type=file... 80502 by: helmut ott 80503 by: CC Zona Padding with mcrypt_generic 80504 by: Ben Sinclair 80512 by: Joe Conway (wwc) unable to copy and chmod 80505 by: Edgard Berendsen 80515 by: Jimmy 80525 by: bvr.xs4all.nl An idea... 80506 by: Gerard Samuel 80507 by: Gerard Samuel 80511 by: Gerard Samuel Mysql 80508 by: -=LukA=- 80510 by: Mehmet Kamil ERISEN 80513 by: Miles Thompson Re:[PHP] Mysql 80509 by: Sam Masiello Re: apache authentication 80514 by: Miles Thompson 80517 by: Fred SMS 80516 by: Yogesh Mahadnac 80518 by: Manuel Lemos Pb Apache 2 + PHP 4.1.1 + Win32 80520 by: guillaume.nocent.bnpparibas.com Re: PHP4.1.1 + RH7.2 + UCD-Snmp 80521 by: Richard Ellerbrock PHP array or SQL problem 80522 by: Dean Householder An important, urgent question about classes? 80523 by: Sait Karalar Re: I18n problems: Working with double-byte languages 80524 by: Yasuo Ohgaki Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Hello, Robert Mena wrote: Hi Manuel and all developers. I understand that the implementation of strtok was broken (non POSIX compliant) but since it has been like this for ages would be better to give a chance to developers worldwide (that has been using and relied on this broken implementation) to control the behaviour of such feature much the same way REGISTER_GLOBALS (or something) in recently 4.1.0. Imagine recoding 100+ distributed scripts to change this! The decision of having this fixed is great but not paying attention (like you always did in the past) with backwards compatibility is (IMHO) a mistake. My opinion precisely. The problem is that PHP developers that decided to break strtok did not seem to have thought of that so they did not ask any users if they were relying on the original behaviour. They would not need to poll anybody. Common sense can lead to the conclusion that if a function has a certain behaviour for 4 years, chances are that there must be enough people relying on it that changing the behaviour would break their code. It seems that the person that broke strtok came to PHP much earlier than that and did not cross his mind about existing users relying on the original behaviour. If making it POSIX compliance was a good idea, it would have been better to add a function to the POSIX extension named posix_strtok and whoever thinks that POSIX compliance was a good idea could use that and it would not require breaking the existing strtok function. The same goes for dirname function that was broken before PHP 4.0.3pl1 . Anyway, do not count on PHP developers to ever reconsider and provide any means to restore the original. Despite the change was only made 2 months ago, they are too proud and already state that they will not admit it was a mistake. Usually they don't like somebody from outside to tell them that there are better solutions, especially after the mistake is already made. So, I advise you to not expect anything from the PHP developers regarding fixing the mistakes. To solve your problem it is either more realistic to not upgrade to PHP 4.1 now (if ever) unless you have the time to replace the calls to strtok and dirname with something else that provides the original behaviour like those replacement functions that I wrote and made available here: http://phpclasses.UpperDesign.com/browse.html/package/404 Regards, Manuel Lemos --- Manuel Lemos [EMAIL PROTECTED] wrote: Hello, Robert Mena wrote: Hi, does anybody know when the strtok bug introduced After 4.0.6 . in 4.1.1 will be fixed ? Will we have a 4.1.2 or should I try to grab a cvs tree (assuming that it is already solved) ? You may want to ask that in php-dev mailing list because last time that I reported it I was told that it would not be fixed because it was just me complaining. __
Re: [PHP] An important, urgent question about classes?
If you can't figure how to make your class work, send us your code so far, we'll tell what's wrong. For an example class just look at the manual. For more info on OO programming in PHP go to one of the many tutorial sites, for example http://phpbuilder.com . You can register any type of variable, if you don't know for sure, why not make a simple test ? Bet the answer can be found easily under session_register() in the manual. Make sure the class declaration is available (included) before you do session_start(). bvr. --Original Message Text--- From: Sait Karalar Date: Tue, 15 Jan 2002 10:12:21 +0200 (GTB Standard Time) FLAVOR00-NONE--- ; Hi all, I need to learn something about classes in PHP, that I could not understand what's going on really!? For the following sample, what kind of class i need to create? how can i use? For example, I have X students X: from 1 to infinity... With respect to student ID of them, And for each students, I have name,surname,addr,phone,email etc.. informations of them I want to create a class, such that, i can input info of students, for each student. And for example, when I did this for 10 students, I want to register with session_register and add/remove/change registered informarmations. I tried to do, but I could not understand the uses of classes clearly, so I could not do... Thus soem body write me small code which includes a sample class and adding/changing/deleting records for one student inside. Can I register a valuable which is a class? $mydata = new Students(); session_register(mydata); ? is possible? Do we have any restriction about registering a variable with respect to its type? thanx... best regards... IncrediMail - Email has finally evolved - Click Here
Re: [PHP] Mysql
When you got your CREATE TABLE statement ready, run it from a PHP script, just like you would with any other query. Ofcourse you need to use a login that is able to 'create'. bvr. On Tue, 15 Jan 2002 03:46:47 +0300, -=LukA=- wrote: Hello php-general, Hi everybody Please help me. If i want to create a table in some database what should I do. The database is on server. -- Best regards, -=LukA=- mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: SMS
You may want to look into this. http://phpclasses.upperdesign.com/browse.html/package/396 Except web - SMS gateways are increasing becoming a unreliabe way to send SMS. I know in the UK some of the mobile networks are blocking certain gateways as they are increasingly being used for spam and also to overload the network. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SMS
Hi everyone! I'd be grateful if someone could please tell me a link where I can find a good tutorial on how to develop a SMS tool with PHP, or if somebody has already developed something like it, or if there are any experts around, please give me some information about it. Can you be more specific. Do you mean you want to send SMS, receive SMS or do both? Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Overriding php.ini at runtime
I'm using the PHP CGI (4.1.0) with Apache (1.3.22) (would rather use the module, but have a setup that requires suEXEC and the like and I've hacked a few things together to make things work and all that.) and have came up with a bit of a dilemma. I need a way to override the php.ini file at page load time, preferably via an .htaccess file. I know Apache supports the php_ini directive but this only works for the Apache module and not the CGI. Is there an equivalent to the php_ini directive available for the CGI version, perhaps in the form of an environment variable or whatnot? I seem to remember a way of setting php_short_open_tags=on or somesuch but may be wrong. (It also may be that suexec is filtering out all those nice environment variables and thus making it not seem to work, but I'd rather know for sure before I make more modifications to the file that the Apache group says not to modify...) -- Daniel Grace [EMAIL PROTECTED] Please CC me in replies -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: checkboxes vs text filed array and hidden variables
Sounds to me like your problem is that only the checkboxes that are checked are passed back. e.g. for ($I = 1; $I = 10; $I++) { echo(tr); echo(tdinput type='text' name='textfield[]' value=''/td); echo(tdinput type='checkbox' name='cbox[]' value='$i'/td); echo(/tr); } when the form is submitted 2 arrays are posted, textfield and cbox. Textfield has 10 elements but cbox has only as many elements as are ticked. As you haven't defined keys both arrays are started at 0 in the processing script. My preferred solution is to define keys in the html i.e. for ($I = 1; $I = 10; $I++) { echo(tr); echo(tdinput type='text' name='textfield[$i]' value=''/td); echo(tdinput type='checkbox' name='cbox[$i]' value='1'/td); echo(/tr); } that way in the processing script you can do foreach (cbox as $key=$checked) echo($textfield[$key]); I hope I've interpreted your problem correctly. Tim www.chessish.com http://www.chessish.com -- From: m. ali [SMTP:[EMAIL PROTECTED]] Sent: 13 January 2002 22:04 To: [EMAIL PROTECTED] Subject: checkboxes vs text filed array and hidden variables Hi my problem : i have to pass the price, and part number which i get from the database to the shopping cart so when i select some of the items by checking the checkboxes and submit the form i get only the last item in the list i use hidden variables to pass these values to shopping cart. my code look like this: echo TDinput type=\checkbox\ name=\product[]\ value=\$product_id\/TD; echo TDinput type=\text\ size=\2\ name=\quantity[$part_number]\ value=\1\ ; echo/TD; echo input type=\hidden\ value=\$part_number\ name=\part_number\/; echo input type=\hidden\ value=\$discount_price\ name=\discount_price\/; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Including a file using php //
I don't think you can return a value like this. You should either define a function within your include which could be called from your page or set a variable within your include that contains the result, this variable will be available as if the include() statement was replace by the code in your include. bvr. On Tue, 15 Jan 2002 17:32:14 +0800, louie miranda wrote: Hi, I was trying to include a url file on another server but could't make this to work. It displays nothing actually.. ?php $retvalue = include('http://192.168.129.103/noc/chikkaps.txt'); echo $retvalue; ? Can someone help me please? thanks, louie... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Including a file using php //
So u mean like this? ?php include('http://192.168.129.103/noc/chikkaps.txt'); ? Only?, Im not good with this, can you give me some samples? thanks, louie... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; louie miranda [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 5:41 PM Subject: Re: [PHP] Including a file using php // I don't think you can return a value like this. You should either define a function within your include which could be called from your page or set a variable within your include that contains the result, this variable will be available as if the include() statement was replace by the code in your include. bvr. On Tue, 15 Jan 2002 17:32:14 +0800, louie miranda wrote: Hi, I was trying to include a url file on another server but could't make this to work. It displays nothing actually.. ?php $retvalue = include('http://192.168.129.103/noc/chikkaps.txt'); echo $retvalue; ? Can someone help me please? thanks, louie... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] beginer | SQL PHP Tutorial/Training
On Sunday 13 January 2002 18:32, you wrote: For all you out there just getting started, on the MySQL site there is atleast I training I know of, I haven't checked there in a while and you might find some others there now too. Anyways, the one I read, and pretty much liked as it will give you a nice start with BOTH MySQL and PHP is here: http://www.mysql.com/articles/ddws/index.html Regards Hi! somebody say me how work with sql server and code php? i try with the functions and the results are bad i need examples, please :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: PHP array or SQL problem
An option is to create a sortfield in your query, something like SELECT *, CONCAT(nickname, fname) AS sortfield FROM ORDER BY sortfield. I'm assuming MySQL and haven't actually tested this. You may need to check the sql documentation for some of the details. Tim www.chessish.com http://www.chessish.com -- From: Dean Householder [SMTP:[EMAIL PROTECTED]] Sent: 15 January 2002 07:35 To: [EMAIL PROTECTED] Subject: PHP array or SQL problem I've got a database with lname (lastname), fname (firstname), and nickname. What I want to do is search by either first name or last name. Either way, I display the nickname instead of the firstname if it exists. I have no problems on the last name, but when I sort by firstname, the people with nicknames that are very different come up at the place where their first name (not the displayed name) is. For example: Adam Smith Joe Schmoe Bill Somebody When Bill Somebody is really William Somebody in the database, his nickname is bill and that's what's displayed but he 'bill' shows up in 'williams' spot. Here is my SQL query: select * from employees order by fname; Should I create an array and sort it there or can I somehow query MySQL to sort by nickname only if it exists and then by fname? Dean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP array or SQL problem
Dean Householder [EMAIL PROTECTED] wrote in message 007301c19d97$21968660$d5246541@daylightcreations">news:007301c19d97$21968660$d5246541@daylightcreations... I've got a database with lname (lastname), fname (firstname), and nickname. What I want to do is search by either first name or last name. Either way, I display the nickname instead of the firstname if it exists. I have no problems on the last name, but when I sort by firstname, the people with nicknames that are very different come up at the place where their first name (not the displayed name) is. For example: Adam Smith Joe Schmoe Bill Somebody When Bill Somebody is really William Somebody in the database, his nickname is bill and that's what's displayed but he 'bill' shows up in 'williams' spot. Here is my SQL query: select * from employees order by fname; Should I create an array and sort it there or can I somehow query MySQL to sort by nickname only if it exists and then by fname? Dean SELECT IF(nickname IS NOT NULL AND nickname != , nickname, fname) AS fname, lname FROM table ORDER BY fname if it doesn't sort right, copy the IF(...) to the oRDER BY part -- Daniel Grace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Overriding php.ini at runtime
On Tuesday 15 January 2002 17:24, Daniel Grace wrote: I'm using the PHP CGI (4.1.0) with Apache (1.3.22) (would rather use the module, but have a setup that requires suEXEC and the like and I've hacked a few things together to make things work and all that.) and have came up with a bit of a dilemma. I need a way to override the php.ini file at page load time, preferably via an .htaccess file. I know Apache supports the php_ini directive but this only works for the Apache module and not the CGI. Is there an equivalent to the php_ini directive available for the CGI version, perhaps in the form of an environment variable or whatnot? I seem to remember a way of setting php_short_open_tags=on or somesuch but may be wrong. (It also may be that suexec is filtering out all those nice environment variables and thus making it not seem to work, but I'd rather know for sure before I make more modifications to the file that the Apache group says not to modify...) Some settings in php.ini can be changed at run-time using ini_set(). Check manual for details. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Vax Vobiscum */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP array or SQL problem
Thanks so much!! You guys rock! Dean - Original Message - From: Dean Householder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 12:34 AM Subject: [PHP] PHP array or SQL problem I've got a database with lname (lastname), fname (firstname), and nickname. What I want to do is search by either first name or last name. Either way, I display the nickname instead of the firstname if it exists. I have no problems on the last name, but when I sort by firstname, the people with nicknames that are very different come up at the place where their first name (not the displayed name) is. For example: Adam Smith Joe Schmoe Bill Somebody When Bill Somebody is really William Somebody in the database, his nickname is bill and that's what's displayed but he 'bill' shows up in 'williams' spot. Here is my SQL query: select * from employees order by fname; Should I create an array and sort it there or can I somehow query MySQL to sort by nickname only if it exists and then by fname? Dean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Overriding php.ini at runtime
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Tuesday 15 January 2002 17:24, Daniel Grace wrote: Is there an equivalent to the php_ini directive available for the CGI version Some settings in php.ini can be changed at run-time using ini_set(). Check manual for details. short_open_tags isn't one of them I don't believe, and that's the one I primarily need to be able to change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Including a file using php //
louie miranda wrote: So u mean like this? ?php include('http://192.168.129.103/noc/chikkaps.txt'); ? Only?, Im not good with this, can you give me some samples? do you want to include the code in that file or read the content? include is used to include code for execution, if you wanna read the content of the file you have to use the fopen and fread functions, see the manual section filesystem functions. HTH, Henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Including a REMOTE FILE using include (php function)
Im trying this little example of mine, Im trying to include a file from a remote webserver but could not possibly get it to work.. Here is the written code: ### A WORKING CODE // LOCAL FILE ?php $file = one.php; include($file); ? ### ### DID NOT WORK // REMOTE FILE ?php $file = http://192.168.129.103/noc/chikkaps.txt;; include($file); ? ### Your help is much appreciated! thanks, louie... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Including a file using php //
Read the content I mean, echo it on the browser.. - Original Message - From: Henning Sprang [EMAIL PROTECTED] To: louie miranda [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 6:32 PM Subject: Re: [PHP] Including a file using php // louie miranda wrote: So u mean like this? ?php include('http://192.168.129.103/noc/chikkaps.txt'); ? Only?, Im not good with this, can you give me some samples? do you want to include the code in that file or read the content? include is used to include code for execution, if you wanna read the content of the file you have to use the fopen and fread functions, see the manual section filesystem functions. HTH, Henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] parser
hi, I have a PHP script which sends a authorisation request to a Servlet and receives a response in XML format. I have also created a parser (using both DOM as well as SAX) for parsing the output. My problem: The parser takes in input from an external xml file but the output from the servlet needs to be dynamically fed into the parser something like this: phpcomm.php ?php include_once ('xmlcommparser1.php'); --- --- --- $xmldata = $sysCurlReq-getSysCurlResp(); $appData = new XmlAppData ($xmldata); //print_r($appData-appArray) // display array contents ? $xmldata contains the output which is sent directly to the parser [B]xmlcommparser1.php[/B] The xmlcommparser1.php is not working.. I am trying to convert the parser into form of a class with a function which receives $xmldata... I am pasting the parser code below if anyone wants a look.. wud appreciate a lot if anyone can figure out where I am going wrong! TIA, sandeep xmlcommparser1.php ?php class XmlAppData { var $appArray; var $xmlData; var $xml_parser; var $depth = array(); function XmlAppData($xmldata) { $this-xmlData = $xmldata; $this-xml_set_element_handler(); } //$file = c:\apache\htdocs\a.xml; function startElement($parser, $name, $attrs) { global $depth; for ($i = 0; $i $depth[$parser]; $i++) { print ; } // print $name\n; // print $data; $depth[$parser]++; } function endElement($parser, $name) { global $depth; $depth[$parser]--; } var $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, startElement, endElement); if (!($fp = fopen($file, r))) { die(could not open XML input); } while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf(XML error: %s at line %d, xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } print $data; } xml_parser_free($xml_parser); ?
Re: [PHP] parser
My problem: The parser takes in input from an external xml file but the output from the servlet needs to be dynamically fed into the parser something like this: Err no you can feed a XML string to the parser. So capture the XML output from the servlet into a string, clean it up if it has any headers attached etc and then stuff it into the parser. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Search Engine
Hi all! I want to develop a search engine in PHP for a portal that I'm working on at the moment, and I'd be glad if someone could please show me how to do it, or if anyone knows of a link where i can find a tutorial for that. Thanks and regards, Yogesh Mahadnac
Re: [PHP] Overriding php.ini at runtime
On Tuesday 15 January 2002 18:31, Daniel Grace wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Tuesday 15 January 2002 17:24, Daniel Grace wrote: Is there an equivalent to the php_ini directive available for the CGI version Some settings in php.ini can be changed at run-time using ini_set(). Check manual for details. short_open_tags isn't one of them I don't believe, and that's the one I primarily need to be able to change. Well, if short_open_tags cannot be changed using ini_set() then I think most likely it couldn't be changed at all during run-time. So you're probably out of luck :( -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Keep on keepin' on. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Search Engine
Hi all! I want to develop a search engine in PHP for a portal that I'm working on at the moment, and I'd be glad if someone could please show me how to do it, or if anyone knows of a link where i can find a tutorial for that. Use htdig -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Search Engine
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 15-01-02 at 12:09 * Yogesh Mahadnac said Hi all! I want to develop a search engine in PHP for a portal that I'm working on at the moment, and I'd be glad if someone could please show me how to do it, or if anyone knows of a link where i can find a tutorial for that. Thanks and regards, Yogesh Mahadnac I don't think PHP is really a very good language for a genuine www search engine. (although it works very well on site-wide basis) I'm sure more knowledgeable people than I can make some alternative suggestions but I'm certain that PHP won't be the best tool for the job. - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8RA+BHpvrrTa6L5oRAtwKAJwMlEU3hpN/Zq5/LwLcuy0xJCkDFgCeKEXP dnyOiXLqJKG5Dw/I2xLpNGA= =9C59 -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Change column in mysgl
Hi! Can I change this column adress VARCHAR(25) to adress VARCHAR(40) afterwards. I use mysql. Thanks for any help Regards, Jan -- Jan Grafström Lillemans Hus AB Bredsäter 2091 87010 Älandsbro 0611-60920 070-6409073 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Including a file using php //
louie miranda wrote: Read the content I mean, echo it on the browser.. if you send a piece of code that supposedly doesn't do what you want I can't go and read the code to find out what you _really_ want to do. if the code did what you wanted you didn't need to send it. so it is useful for people willing to help you to spend a minute to describe what you want to do, like i want to use this piece of code to output file 'X' to the browser but it does only give me output 'Y' or error 'Z'. examples of include and fopen/fread are to be foiund in the manual at http://www.php.net/manual, use the search function to look for those words. HTH, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Change column in mysgl
[EMAIL PROTECTED] (Jan grafström) wrote: Hi! Can I change this column adress VARCHAR(25) to adress VARCHAR(40) afterwards. yes look here: http://www.mysql.com/doc/A/L/ALTER_TABLE.html -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP x Mysql
Tanks Vicent, but i found the problem. It was in the php.ini that was broken. I reinstall de PHP and after i reinstall php-mysql. After all the php with mysql work . Tanks. Fred On Sun, 2002-01-13 at 19:24, Vincent Stoessel wrote: Yeah, this smells like someone upgraded/recompiled php without mysql and that is pretty hard to do nowadays as mysql is built in by default. Dennis Moore wrote: execute phpinfo(); on a new page to see if mysql is still compiled in...; - Original Message - From: Frederico Madeira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 10:37 PM Subject: [PHP] PHP x Mysql Hello !! My server was runing perfect the mysql server and php language. Today when i acess any paga that stabilished a conection with mysql the follow mesage return me. Fatal error: Call to undefined function: mysql_connect() in /home/fred/public_html/vg/index1.php on line 14 How i resolve this problem ? Tanks. Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Vincent Stoessel [EMAIL PROTECTED] Java Linux Apache Mysql Php (JLAMP) Engineer (301) 362-1750 Mobile (410) 419-8588 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Change column in mysgl
Can I change this column adress VARCHAR(25) to adress VARCHAR(40) afterwards. I use mysql. Thanks for any help RTFM ALTER TABLE... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Compile problems php 4.1.1
I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors out with the following: Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; . . . Some systems (eg Red Hat Linux) come with a version of the apxs tool, but not the one that the PHP builder expects. The builder is trying to use this apxs, but it doesn't work as it expects. Do a minimal build of apache from source code (without PHP) and install it. This installs a working apxs into /usr/local/bin. Now build PHP, then build apache again, this time including the PHP module. In my system, the builder found the working apxs without help. If yours does not, you have to tell the builder where to find it. Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] splitting up an array into lines ...
I want this code to work thru a large cluster and put the rpm information into a db , it all works apart from the foreach loop. why doesnt my code work ( in particular the foreach loop ) , // get hostname $host = `hostname`; // get a list of rpms $rpm_list = `rpm -qa`; // open a db connection and insert them into the db include db.php; print working on host : $host\n; $test = mysql_query (SELECT * FROM machine_info WHERE host = '$host'); $test1 = mysql_fetch_object ($test); print TEST: $test1-host\n; if ($test1-host == ) { print machine doesnt exists in the db , adding an entry for $host\n; $add_machine_to_table = mysql_query(INSERT INTO machine_info (host) VALUES ('$host')); } // get the rpm list a line at a time foreach($rpm_list as $rpm) { $query = UPDATE machine_info SET rpm = '$rpm' WHERE host = '$host'; if (!(mysql_query($query))) { print Mysql could not do the update query - for host $host; } } i get : X-Powered-By: PHP/4.0.6 Content-type: text/html working on host : lxplus038 TEST: lxplus038 br bWarning/b: Invalid argument supplied for foreach() in b get_rpm_info.php/b on line b29/bbr -- many thanx in advance Neil :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] unable to copy and chmod
The probem is that when I copy the file, the owner is set to something that PHP lately can't change ! This happened to me in 2 tottaly different servers. I want to copy a file (as a template) and make it writable using PHP. [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Any file copied with PHP will stay writable from PHP, as the owner is set to whatever PHP is running under. Explain how the file got there and how you'd like to change it (through PHP, FTP etc.) bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] splitting up an array into lines ...
On Tuesday 15 January 2002 21:04, Neil Mooney wrote: I want this code to work thru a large cluster and put the rpm information into a db , it all works apart from the foreach loop. why doesnt my code work ( in particular the foreach loop ) , // get hostname $host = `hostname`; // get a list of rpms $rpm_list = `rpm -qa`; [snip] foreach($rpm_list as $rpm) { $query = UPDATE machine_info SET rpm = '$rpm' WHERE host = '$host'; if (!(mysql_query($query))) { print Mysql could not do the update query - for host $host; } } i get : X-Powered-By: PHP/4.0.6 Content-type: text/html working on host : lxplus038 TEST: lxplus038 br bWarning/b: Invalid argument supplied for foreach() in b get_rpm_info.php/b on line b29/bbr That's telling you that $rpm_list is not an array. The output of `rpm -qa` is just a string (with \n for newlines). Thus to change $rpm_list into an array just do: $rpm_list = explode(\n, $rpm_list); hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Alden's Laws: (1) Giving away baby clothes and furniture is the major cause of pregnancy. (2) Always be backlit. (3) Sit down whenever possible. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Content
I have a little problem I have been trying to solve, but so I haven't had any luck so far. A product we use sends an HTTP Post request when certain events happen. We want to write a script which will process this request and take certain actions. Unfortunately, Some of the data comes not as Post variables, but as part of the Content of the HTTP request. Here is a sample: *** Beginning *** POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 Host: 10.9.35.7 Date: Tue, 15 Jan 2002 14:08:23 GMT Content-Type: text/plain Content-Length: 43 Connection: close First line. Middle line. Last Line. *** End *** The content is everything between First Line and Last Line, inclusive. This is passed through stdin by Apache. I tried reading from php://stdin, but it returns nothing to me. Any clues as to how I might be able to access that? Or any authoritative answer that this is not possible with PHP? Thanks for any help, -- Daniel C. Sobral [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to run sockets in Win32
I tried to use the socket function under PHP 4.0.6 in IIS 5 on a server with windows XP. It give me the error - Socket function not found in line 3 It's the socket implementation a package that i have to install??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] NNTP Indexing
I'm in dire need of suggestions for reconstruction of a database that contains USENET posts from a few groups on the server. This is the structure: CREATE TABLE /*!32300 IF NOT EXISTS*/ nntp ( pid mediumint(10) NOT NULL auto_increment, aid mediumint(10) NOT NULL DEFAULT '0' , from_name varchar(50) NOT NULL DEFAULT '' , subject varchar(100) NOT NULL DEFAULT '' , date int(11) NOT NULL DEFAULT '0' , body text NOT NULL DEFAULT '' , mid varchar(50) NOT NULL DEFAULT '' , reference varchar(50) NOT NULL DEFAULT '' , newsgroup varchar(50) NOT NULL DEFAULT '' , tid varchar(50) NOT NULL DEFAULT '' , viewed mediumint(10) NOT NULL DEFAULT '0' , replies mediumint(3) NOT NULL DEFAULT '0' , PRIMARY KEY (pid), INDEX nntp_reference_newsgroup (reference,newsgroup), INDEX nntp_mid_newsgroup_date (mid,newsgroup,date), INDEX nntp_mid (mid), INDEX nntp_date (date), INDEX nntp_reference_newsgroup_tid_date (reference,newsgroup,tid,date), INDEX tid (tid) ); This table contains data from multiple groups on the server. Right now, the amount of posts is reaching into 150K posts including full body. It's quite slow with a simple query to count the total posts of a particular group from a certain date: SELECT count(pid) AS total FROM nntp WHERE reference = '' AND newsgroup='macromedia.dreamweaver' AND date '1008511669' An Index was created on the WHERE clause so that it could find the info fast, but it takes at least 30s to just query for the total row count. So my question is what's the best way to reconstruct this table. One method of handling was to seperate each group crawled into it's own table, but I am thinking into teh future when I begin to have hundreds of USENET groups to crawl and wouldn't want to maintain 100s of tables. Another idea would be to seperate the body of the posts into a seperate table. Any other ideas/suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Hi Daniel, variables, but as part of the Content of the HTTP request. Here is a sample: POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 in your php script, try to echo the passed param directly as variable, for example $NotificationProtocolVersion or $ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable -- Jimmy A woman is like your shadow; follow her, she flies; fly from her, she follows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Persistent Database Resources?
Hi, Both PEAR DB/Cache and ADOdb database libraries support cacahed recordsets. See the PEAR sources and http://php.weblogs.com/adodb Rgds, John Nick Wilson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 14-01-02 at 19:58 * Nathan Cassano said Lets say I have a page that makes queries with multiple sorts, returning plenty of rows and displaying part of the result set. Each time the client accesses the page the query must be re-executed, spinning the CPU and thus tieing up resources. In PHP, or any other language could the result set be stored persistently until the client accesses the page again, or the result expires and must be re-executed? Have a look at www.devshed.com I'm pretty sure there's a good article on caching there that you'd find usefull. (if not there is *definately* one on www.zend.com) - -- Nick Wilson Tel: +45 3325 0688 Fax: +45 3325 0677 Web: www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8QyrtHpvrrTa6L5oRAk2FAJ40NBy2f4nOWWQ2341qhu2FlcrXVwCffzmg V9IXgNa9QnnCarHSHzjn+pw= =24yn -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Jimmy wrote: Hi Daniel, variables, but as part of the Content of the HTTP request. Here is a sample: POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 in your php script, try to echo the passed param directly as variable, for example $NotificationProtocolVersion or $ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable Well, I think Daniel means that he wants to use the body of the POST. I would guess that the GET variables are useful as usual. I dunno how to do that from the top of my head, but imo Daniels server is broken since POST variables are sent in the body, but that is clearly no POST request at all. In this case PHP has no way of parsing the broken request. Or am I wrong here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Setting cookie very broken! Please help!
I've set up a new machine in a production environment to roll over an existing PHP script onto. Unfortunately, I'm running into a strange error: I have a login form, using fields named 'username' and 'password'. These are also used as variables. Using IE, the cookie never shows up as I would expect it to in the cookies directory. Additionally, I can't login as the variables are returned as null values to the script. Even stranger...I made a test.php that just echoes $username. I call it with ?username=test, and it works. Then I try the script that sets cookies, and it doesn't work. Then I go back to the same test.php request, and it doesn't show the value I passed to it (though it will show ones of other names that I didn't try to set in a cookie)! I know the code is valid, as it's working fine on 2 other production machines. I had PHP compiled into Apache, and just rebuilt both using APXS...same results. This is the code that I'm passing $username to, that totally screws things up, but works on other machines: if ($username != null) { $time = mktime()+3600; $date = gmdate(D, d-M-Y H:i:s, ($time)); header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/; domain='.$SERVER_ADDR); } Restarting IE makes the test.php page work again...nothing else. Please, if anybody could assist or ask me for any other information required to diagnose, I would be very thankful. I need to get this working ASAP, and have been fighting it to no avail for the past few hours. -- Casey Allen Shobe [EMAIL PROTECTED] 'Why do people with closed minds always open their mouths?' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Redirection and Passing Data (arrays)
hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with number of items where the user can select some them using checkboxes and enter the quantity that he needs, then add them to his shopping cart this works fine when his logged in but when he is not logged in, after the search and selecting the items when he comes to add them to the shopping cart a login screen appears where he enters his login user/password his shopping cart appears. the problem is that the items that he selected in the result page are not passed after his login so how can i pass these arrays of checkboxes and textfields with the login script. thanx for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Hi Martin, I dunno how to do that from the top of my head, but imo Daniels server is broken since POST variables are sent in the body, but that is clearly no POST request at all. In this case PHP has no way of parsing the broken request. Or am I wrong here? nope. in POST request, all the variable will be in the body/content part, so it is correct. -- Jimmy To Jazz or not to jazz. That's the question. -William Saxpeare- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] shopping cart reviews?
hi, can anyone point me at a set of reviews for various php-based shopping carts? cheers, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: SMS
Hello, Jon Farmer wrote: You may want to look into this. http://phpclasses.upperdesign.com/browse.html/package/396 Except web - SMS gateways are increasing becoming a unreliabe way to send SMS. I know in the UK some of the mobile networks are blocking certain gateways as they are increasingly being used for spam and also to overload the network. I don't know about that because I don't use it. You may want to contact the class author to tell about any alternatives you know so he can improve the class. Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Jimmy wrote: Hi Daniel, variables, but as part of the Content of the HTTP request. Here is a sample: POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 in your php script, try to echo the passed param directly as variable, for example $NotificationProtocolVersion or $ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable I have these variables, but these variables are NOT what I want. Well, I want them, but that's the easy part. The problem is the content. -- Daniel C. Sobral (8-DCS) [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] The superior man understands what is right; the inferior man understands what will sell. -- Confucius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Padding with mcrypt_generic
That would work for me, but I have to deal with many files that I have already encrypted and no longer know the correct sizes of. My search and replace for the padding characters doesn't work because the files sometimes contain those padding characters. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Joe Conway (wwc) [EMAIL PROTECTED] To: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 14, 2002 7:55 PM Subject: Re: [PHP] Padding with mcrypt_generic I worked around this by padding the plaintext myself. Basically, add NUL (character 0) bytes so that your plaintext becomes an exact multiple of blocksize. Then change the very last byte to the number of padding bytes used. If the plaintext is already an exact multiple of blocksize, then pad with an entire block. On decryption, reverse the process, and you'll have your original string back exactly the way you started. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Setting cookie very broken! Please help!
The server is not the client. I've tried the same code on two different servers, browing with various versions of IE, Netscape, Mozilla, and Konqueror. However, I can live with this, because I put the beta version (a rewrite) of the code on the new webserver, and it works. I find it very odd that the old one doesn't though, considering that it's the same Apache/PHP configuration, and the same code, on both machines. Only difference is PHP v4.0.6 on the old one, vs. PHP v4.1.1 on the new one. If anyone is interested, I can send a tarball of the old code. - Casey On Tuesday 15 January 2002 10:22 am, Richard Crawford wrote: On the new machine, does your code work in Netscape or Mozilla or Opera? Does it work in IE on other machines? If yes, then double-check the security settings in the new installation of IE on the new computer. Casey Allen Shobe wrote: I've set up a new machine in a production environment to roll over an existing PHP script onto. Unfortunately, I'm running into a strange error: I have a login form, using fields named 'username' and 'password'. These are also used as variables. Using IE, the cookie never shows up as I would expect it to in the cookies directory. Additionally, I can't login as the variables are returned as null values to the script. Even stranger...I made a test.php that just echoes $username. I call it with ?username=test, and it works. Then I try the script that sets cookies, and it doesn't work. Then I go back to the same test.php request, and it doesn't show the value I passed to it (though it will show ones of other names that I didn't try to set in a cookie)! I know the code is valid, as it's working fine on 2 other production machines. I had PHP compiled into Apache, and just rebuilt both using APXS...same results. This is the code that I'm passing $username to, that totally screws things up, but works on other machines: if ($username != null) { $time = mktime()+3600; $date = gmdate(D, d-M-Y H:i:s, ($time)); header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/; domain='.$SERVER_ADDR); } Restarting IE makes the test.php page work again...nothing else. Please, if anybody could assist or ask me for any other information required to diagnose, I would be very thankful. I need to get this working ASAP, and have been fighting it to no avail for the past few hours. -- Casey Allen Shobe [EMAIL PROTECTED] 'Why do people with closed minds always open their mouths?' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirection and Passing Data (arrays)
session_register('array_of_selected_checkboxes'); Just use sessions! ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 M. Ali [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with number of items where the user can select some them using checkboxes and enter the quantity that he needs, then add them to his shopping cart this works fine when his logged in but when he is not logged in, after the search and selecting the items when he comes to add them to the shopping cart a login screen appears where he enters his login user/password his shopping cart appears. the problem is that the items that he selected in the result page are not passed after his login so how can i pass these arrays of checkboxes and textfields with the login script. thanx for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Content
Grab the latest version of PHP. There is a new php.ini directive called always_populate_raw_post_data which when turned on forces all post data to be available through the $HTTP_RAW_POST_DATA variable. -Rasmus On Tue, 15 Jan 2002, Daniel C. Sobral wrote: I have a little problem I have been trying to solve, but so I haven't had any luck so far. A product we use sends an HTTP Post request when certain events happen. We want to write a script which will process this request and take certain actions. Unfortunately, Some of the data comes not as Post variables, but as part of the Content of the HTTP request. Here is a sample: *** Beginning *** POST /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0ApplicationName=NPlexApplicationVersion=6.0.037RequestType=NewMsgRequestTime=01/15/2002%2014:08:23ServerType=email[EMAIL PROTECTED]MessageType=email[EMAIL PROTECTED]%3ESubject=TST26MessageReceivedTime=01/15/2002%2014:08:23 HTTP/1.0 Host: 10.9.35.7 Date: Tue, 15 Jan 2002 14:08:23 GMT Content-Type: text/plain Content-Length: 43 Connection: close First line. Middle line. Last Line. *** End *** The content is everything between First Line and Last Line, inclusive. This is passed through stdin by Apache. I tried reading from php://stdin, but it returns nothing to me. Any clues as to how I might be able to access that? Or any authoritative answer that this is not possible with PHP? Thanks for any help, -- Daniel C. Sobral [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Change column in mysgl
ALTER TABLE mytable CHANGE COLUMN adress VARCHAR(40); -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 5:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Change column in mysgl Hi! Can I change this column adress VARCHAR(25) to adress VARCHAR(40) afterwards. I use mysql. Thanks for any help Regards, Jan -- Jan Grafström Lillemans Hus AB Bredsäter 2091 87010 Älandsbro 0611-60920 070-6409073 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Login script, session problem (I think)
I made a simple login script which uses MySQL for username and password retrieval and that stores the username in a session, the problem is that this script only works locally, e.g. I can only login from this computer but not from any other, I have session.use_cookies = 1 and I also have another session on the page that stores a counted var so the counter doesn't jump up everytime someone changes page. The thing confusing me is that the counter session works global but the login only works local.. Does anyone have an idea how I should solve this? I'm not so good with php yet so I might have missed something, but i think it's wierd anyway... :p please reply as soon as possible. :) Hawk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Compile problems php 4.1.1
Redhat's apxs was broken years ago in RH 6.0 or some version like that. But since then the apxs from the apache-devel package has been fine. -Rasmus On Tue, 15 Jan 2002, Simon Ritchie wrote: I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors out with the following: Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; . . . Some systems (eg Red Hat Linux) come with a version of the apxs tool, but not the one that the PHP builder expects. The builder is trying to use this apxs, but it doesn't work as it expects. Do a minimal build of apache from source code (without PHP) and install it. This installs a working apxs into /usr/local/bin. Now build PHP, then build apache again, this time including the PHP module. In my system, the builder found the working apxs without help. If yours does not, you have to tell the builder where to find it. Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Change column in mysgl
ALTER TABLE mytable CHANGE COLUMN adress VARCHAR(40); -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 5:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Change column in mysgl Hi! Can I change this column adress adress VARCHAR(25) to adress VARCHAR(40) afterwards. I use mysql. Thanks for any help Regards, Jan -- Jan Grafström Lillemans Hus AB Bredsäter 2091 87010 Älandsbro 0611-60920 070-6409073 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to run sockets in Win32
I tried with PHP4 a while ago to use Sockets on Win32, unfortually I found written in the documenation saying that sockets were not implemented on Win32 yet. Andrew - Original Message - From: Logan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 2:22 PM Subject: [PHP] How to run sockets in Win32 I tried to use the socket function under PHP 4.0.6 in IIS 5 on a server with windows XP. It give me the error - Socket function not found in line 3 It's the socket implementation a package that i have to install??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Login script, session problem (I think)
More information is needed... what version of PHP are your running? I bit of sample code on how you set up your sessions would also be helpful... /dkm - Original Message - From: Hawk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 11:19 AM Subject: [PHP] Login script, session problem (I think) I made a simple login script which uses MySQL for username and password retrieval and that stores the username in a session, the problem is that this script only works locally, e.g. I can only login from this computer but not from any other, I have session.use_cookies = 1 and I also have another session on the page that stores a counted var so the counter doesn't jump up everytime someone changes page. The thing confusing me is that the counter session works global but the login only works local.. Does anyone have an idea how I should solve this? I'm not so good with php yet so I might have missed something, but i think it's wierd anyway... :p please reply as soon as possible. :) Hawk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problems with PHP and SNMP
Helo, we are a proyect that we need to link phap4.0.01 with ucd-snmp4.2.1 for start apache1.3.2 server, we compiling each module but to start the apache server it display the follow error. * # ./apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/loca l/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not found ./apachectl start: httpd could not be started ** we aren´t know why, please do you know how fi it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to run sockets in Win32
I didnt try it, but i found this, in the compiled version of php4win 4.1.1 - php_sockets.dll, does it work??? Logan Andrew Brampton [EMAIL PROTECTED] escribió en el mensaje 03cc01c19de2$f1a90440$2528260a@STUDENT5830">news:03cc01c19de2$f1a90440$2528260a@STUDENT5830... I tried with PHP4 a while ago to use Sockets on Win32, unfortually I found written in the documenation saying that sockets were not implemented on Win32 yet. Andrew - Original Message - From: Logan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 2:22 PM Subject: [PHP] How to run sockets in Win32 I tried to use the socket function under PHP 4.0.6 in IIS 5 on a server with windows XP. It give me the error - Socket function not found in line 3 It's the socket implementation a package that i have to install??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] relative Drop Down Menus
Hello to everyone In a submit form two relative drop down menus (dCountry and dCity) with data from two diferrent mysql tables. The form contains also some other fields ex name,surname etc. I want each time a user changes dCountry value to reload the same form without lose data from other fields and dCity has the relative cities from selected dCountry. I believe that this can be done with Javascript + php source combination. if anyone can help please send me an e-mail Many Thanks in advcance Simos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Creating GUID's in PHP 4.1.0
Does anyone know how to create GUID's in PHP? Charles Killmer PHP 4.1.0 IIS 5 Windows 2000 Server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Redirection and Passing Data (arrays)
...or echo some hidden inputs in the login form? Julio Nobrega Trabalhando wrote: session_register('array_of_selected_checkboxes'); Just use sessions! ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 M. Ali [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with number of items where the user can select some them using checkboxes and enter the quantity that he needs, then add them to his shopping cart this works fine when his logged in but when he is not logged in, after the search and selecting the items when he comes to add them to the shopping cart a login screen appears where he enters his login user/password his shopping cart appears. the problem is that the items that he selected in the result page are not passed after his login so how can i pass these arrays of checkboxes and textfields with the login script. thanx for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Errors?
It is possible to disable error reporting, but you would probably remember doing it. Another possiblity is your page having tables that are not closed because the script has stopped on an error, and your browser doesn't know how to render the page. View the source to the page, the error might be in there. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Devin Atencio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 11:14 AM Subject: [PHP] PHP Errors? Dear PHP Group, I noticed that recently when one of my PHP scripts has a problem that it doesn't display to the browser screen any more the 'parse error near line 5' or whatever to the screen it just comes up with a blank page. I am using PHP 4.1.1 and I didn't know if something changed that I was unaware of to why the webpages no longer show the error message? __\/__ . / ^ _ \ . |\| (o)(o) |/| #.OOOo--oo--oOOO.---# # # # Devin Atencio [EMAIL PROTECTED] # # Sys Admin Dept # #_Oooo._# .oooO ( ) ( )) / \ ((_/ \_) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Including a REMOTE FILE using include (php function)
Hi louie, Im trying this little example of mine, Im trying to include a file from a remote webserver but could not possibly get it to work.. could be because the url fopen wrapper is disabled. check the value of this setting in your php.ini file: allow_url_fopen -- Jimmy Love your country, but never trust its government. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Padding with mcrypt_generic
Ben Sinclair wrote: That would work for me, but I have to deal with many files that I have already encrypted and no longer know the correct sizes of. My search and replace for the padding characters doesn't work because the files sometimes contain those padding characters. -- Ben Sinclair [EMAIL PROTECTED] Well, if your original files ended in NUL bytes you are out of luck, but I don't think that is likely. You should be able to simply decrypt and strip trailing NUL bytes to get the original files back. See example below. -- Joe = ?PHP print (HTMLBODY\n); $plaintext = 123456789; echo Plaintext = . $plaintext . BR; echo Plaintext length = . strlen($plaintext) . BR; /* * open the desired module */ $td = mcrypt_module_open (MCRYPT_TRIPLEDES, , MCRYPT_MODE_CBC, ); /* * Just for illustration, a real iv should be random of course */ $iv = ; /* * and I hope a better password is actually used */ $key = mysecret; /* * initialize the module structures */ $ret = mcrypt_generic_init($td, $key, $iv); /* * finally encrypt it */ $ciphertext = mcrypt_generic($td, $plaintext); echo Ciphertext length = . strlen($ciphertext) . BR; /* * get ready for decryption */ $ret = mcrypt_generic_init($td, $key, $iv); /* * now decrypt */ $newplaintext = mdecrypt_generic($td, $ciphertext); $ptr = strlen($newplaintext); echo New plaintext length = . $ptr . BR; while (substr($newplaintext, $ptr - 1, 1) == chr(0)) { $ptr--; } $origplaintext = substr($newplaintext, 0, $ptr); echo Origplaintext = . $origplaintext . BR; echo Origplaintext length = . strlen($origplaintext) . BR; print (/BODY/HTML\n); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Search Engine
Take a look at htdig and mngosearch (which has a PHP interface). Also take a look at www.devshed.com and search for search php and you'll find some how-to articles. On Tue, 15 Jan 2002, Yogesh Mahadnac wrote: Hi all! I want to develop a search engine in PHP for a portal that I'm working on at the moment, and I'd be glad if someone could please show me how to do it, or if anyone knows of a link where i can find a tutorial for that. Thanks and regards, Yogesh Mahadnac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Compiling PHP with imap recode support
I get this error when compiling php with ./configure --with-imap=../imap-2001a --with-record Any ideas on a workaround for this? /web/src/imap-2001a/c-client/libc-client.a(misc.o): In function `hash_lookup': /web/src/imap-2001a/c-client/misc.c:311: multiple definition of `hash_lookup' /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../librecode.a(hash.o)(.text+0xa20): first defined here /usr/bin/ld: Warning: size of symbol `hash_lookup' changed from 126 to 112 in misc.o Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sound File Available???
Hi there, is there a way of checking a directory for a sound file showing one image if its available, another if it isnt? The sound files are in directory http://www.foo.com/media and they are called 1234.rm. Can anybody help me pls? Cheers in advance, Ian. DJ / Producer / Webdesigner [EMAIL PROTECTED] - 07814 364277 (new number) Webmaster: http://www.randumian.co.uk Webmaster: http://www.danceportal.co.uk Webmaster: http://www.vivienmarkey.com Webmaster: http://www.yamnd.org.uk Webdesigner: http://www.vgland.co.uk Webdesigner: http://www.allstargambling.co.uk
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php listt
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quit me off the php list
-Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP image rollovers question...
Hello, im brand new to the mailing list and fairly new to PHP. I apologize if this topic has come up before but...I'm having trouble embedding javascript (in particular - image rollovers) into my PHP script. When the page loads, I get errors for each of the javascript calls within my script. I'm using 'echo' to display my data. Any help?? Thanks so much! -Phil baltimore
[PHP] Re: Sound File Available???
file_exists(); if (file_exists('1234.rm')) { // show one image } else { // show another image } Just correct the path of file_exists argument to the one you need/use. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Randum Ian [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, is there a way of checking a directory for a sound file showing one image if its available, another if it isnt? The sound files are in directory http://www.foo.com/media and they are called 1234.rm. Can anybody help me pls? Cheers in advance, Ian. DJ / Producer / Webdesigner [EMAIL PROTECTED] - 07814 364277 (new number) Webmaster: http://www.randumian.co.uk Webmaster: http://www.danceportal.co.uk Webmaster: http://www.vivienmarkey.com Webmaster: http://www.yamnd.org.uk Webdesigner: http://www.vgland.co.uk Webdesigner: http://www.allstargambling.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP image rollovers question...
On Wednesday 16 January 2002 02:02, Phil Schwarzmann wrote: Hello, im brand new to the mailing list and fairly new to PHP. I apologize if this topic has come up before but...I'm having trouble embedding javascript (in particular - image rollovers) into my PHP script. When the page loads, I get errors for each of the javascript calls within my script. I'm using 'echo' to display my data. Any help?? There's an error on line 24 of your code. Don't ask me how I know, I'm clairvoyant :) hint If you post your code then people who are not clairvoyant can also have a stab at helping you. /hint -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* QOTD: If I could walk that way, I wouldn't need the cologne, now would I? */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] User authentacation
Hello, I need to allow a client, named: A, to give their clients access to a remote page on A's server. This is the problem: 1. I need to record who has accessed this page on A's server 2. password protect this page 3. and copy the pages contents to A's clients server. Any suggestions? Thanks, Sean -- I N T E R C O N N E C T Sean Karshis President Internet Image Development http://www.InterConnect.is.it -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP image rollovers question...
Check out when you can use and ' Any number of ' inside gets printed and $vars are parsed (i.e, 'interpreted by php') Any number of inside of ' gets printed and $vars are NOT parsed. echo script style=javascript; is wrong because you start at the first and the after the second you have a 'j', from Javascript. Another two possibilities: 1) You escape the s: echo script style=\javascript\; 2) You put inside ' so it will get printed: echo 'script style=javascript'; Hope it helps, -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, im brand new to the mailing list and fairly new to PHP. I apologize if this topic has come up before but...I'm having trouble embedding javascript (in particular - image rollovers) into my PHP script. When the page loads, I get errors for each of the javascript calls within my script. I'm using 'echo' to display my data. Any help?? Thanks so much! -Phil baltimore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] quit me off the php list
/Quit Thyago Consort :D Hey I tried! - Original Message - From: Thyago Consort [EMAIL PROTECTED] To: Adam Baratz [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 12:00 PM Subject: [PHP] quit me off the php list -Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP image rollovers question...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 15-01-02 at 19:21 * Jason Wong said There's an error on line 24 of your code. Don't ask me how I know, I'm clairvoyant :) hint If you post your code then people who are not clairvoyant can also have a stab at helping you. /hint Hehe, yeah, lets see the code! - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8RHhUHpvrrTa6L5oRArGCAJ9Su/v+fZN4ze5oQUHb+m2/5uXtSwCfRRdc 1CDo86QKLtkkkPKA7AHia1E= =xNed -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Compiling PHP with imap recode support
Of course by --with-record I meant --with-recode Mike Mike Eheler wrote: I get this error when compiling php with ./configure --with-imap=../imap-2001a --with-record Any ideas on a workaround for this? /web/src/imap-2001a/c-client/libc-client.a(misc.o): In function `hash_lookup': /web/src/imap-2001a/c-client/misc.c:311: multiple definition of `hash_lookup' /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../librecode.a(hash.o)(.text+0xa20): first defined here /usr/bin/ld: Warning: size of symbol `hash_lookup' changed from 126 to 112 in misc.o Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] quit me off the php list
The bottom of EVERY MESSAGE has instructions for removing yourself from the list. Please follow them. c -- Chris Lott -- http://www.chrislott.org/ -Original Message- From: Thyago Consort [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 10:01 AM To: Adam Baratz; PHP List Subject: [PHP] quit me off the php list -Original Message- From: Adam Baratz [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 11 de janeiro de 2002 01:40 To: PHP List Subject: Re: [PHP] PHP Parsing Database Text Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Errors?
In article 01a601c19de8$adc1b050$5e01a8c0@ben, [EMAIL PROTECTED] (Ben Sinclair) wrote: It is possible to disable error reporting, but you would probably remember doing it. A call to phpinfo() to check the global and local settings for error_reporting and display_errors would be the first thing to check. If it's not what you expect, see what filepath phpinfo() says the php.ini file is located under; the new install may not be using the old config file. Another possiblity is your page having tables that are not closed because the script has stopped on an error, and your browser doesn't know how to render the page. View the source to the page, the error might be in there. Correction: *that* should be the first thing you check g. Then phpinfo(). -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Reading File into Array and Searching
Dear Users, I basically want to do the following. I have file that contains everyone that logs into our mail server a day and then I want to basically load that file into an array and then search the array to find out how many times that person logged in and then take the last login and capture that information from the file. I have tried doing something like this but it doesn't seem to work: $fcontents = file(/tmp/popper.test); while (list ($line_num, $line) = each ($fcontents)) { $new_array[$line_num] = $line; } $key = array_search(wasatch.com,$new_array); print count($new_array). matches found.\n; Can anyone shed some light to help me? I'm using PHP 4.1.0 :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] querying results already queryed once before
Dumb question: How do I query results from a MySQL that I've already queried once before in the same page? Here is my code: // querying the database for the first time. $query = select * from table where thingA = $searchA; $result = mysql_query ($query); // now I want to query my results I just made. ...any ideas? THANKS!
[PHP] Re: querying results already queryed once before
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Phil Schwarzmann) wrote: Dumb question: How do I query results from a MySQL that I've already queried once before in the same page? Here is my code: // querying the database for the first time. $query = select * from table where thingA = $searchA; $result = mysql_query ($query); // now I want to query my results I just made. If you merely want to re-use the result set, see http://www.php.net/manual/en/function.mysql-data-seek.php. If you want to do something more akin to a subquery (i.e. extracting a subset of data from the original query's result set), then use a new SQL statement. For example: $query2=select * from table where thingA=$searchA and thingB=$searchB; $result2 = mysql_query ($query2); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Reading File into Array and Searching
On Wednesday 16 January 2002 03:21, Devin Atencio wrote: Dear Users, I basically want to do the following. I have file that contains everyone that logs into our mail server a day and then I want to basically load that file into an array and then search the array to find out how many times that person logged in and then take the last login and capture that information from the file. I have tried doing something like this but it doesn't seem to work: $fcontents = file(/tmp/popper.test); while (list ($line_num, $line) = each ($fcontents)) { $new_array[$line_num] = $line; } $key = array_search(wasatch.com,$new_array); print count($new_array). matches found.\n; Can anyone shed some light to help me? I'm using PHP 4.1.0 :) What doesn't work? Why doesn't it work? Do you get any error messages? What output do you get? As it stands your print statement will just print the number of lines in your file? The function you want is probably array_count_values(). hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* After Goliath's defeat, giants ceased to command respect. - Freeman Dyson */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] querying results already queryed once before
On Tuesday, January 15, 2002, at 02:18 PM, Phil Schwarzmann wrote: Dumb question: How do I query results from a MySQL that I've already queried once before in the same page? Look, buddy, *I* ask the dumb questions around here! Here is my code: // querying the database for the first time. $query = select * from table where thingA = $searchA; $result = mysql_query ($query); // now I want to query my results I just made. Here's how I do it: First of all, don't forget the second argument to mysql_query(). It should be a variable that contains your database connection info (see mysql_connect() in the function list). Your variable $result is now a container for the query you just made. The results of the query are returned as an array stored inside this container ($result). So you need to use any of the functions which act on that array -- they typically begin with mysql_fetch_. mysql_fetch_row() -- you can use this function to grab results based on their numeric index. mysql_fetch_assoc() -- you can use this function to grab results based on their associative index. mysql_fetch_array() -- you can use this function to grab results using either the numeric or the associative index. This one's my favorite, since it's flexible like that. So how do you do it? Here's what I do: $query = SELECT * FROM table WHERE thingA='$searchA'; $result = mysql_query($query, $db); while ($row = mysql_fetch_array($result)) { $thingA = $row['thingA']; // the associative index is the column name print $thingA; } Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] sql question
i want that a select query display me all words beginning with an a .. like select * from tbl_lit where lit_source = c* .. thnx bSue
[PHP] PHP 4.1.1 and Mac OS X 10.1.2
Hi all, Does anyone have success in compiling PHP 4.1.1 in MacOS X 10.1.2? If yes, could please give some directions? After many tries I surrended miself and start using the pre compiled package that came with X. Thanks Rodrigo -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP 4.1.1 and Mac OS X 10.1.2
Here's the page you want: http://www.entropy.ch/software/macosx/php/ Rick The only way to have a friend is to be one. - Ralph Waldo Emerson From: Rodrigo Peres [EMAIL PROTECTED] Date: Tue, 15 Jan 2002 18:14:12 -0200 To: PHP [EMAIL PROTECTED] Subject: [PHP] PHP 4.1.1 and Mac OS X 10.1.2 Hi all, Does anyone have success in compiling PHP 4.1.1 in MacOS X 10.1.2? If yes, could please give some directions? After many tries I surrended miself and start using the pre compiled package that came with X. Thanks Rodrigo -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] problems with snmp and php
Hello, we are a proyect that we need to link php4.0.6 with ucd-snmp4.2.1 for start apache1.3.2 server, we compiling each module but to start the apache server it display the follow error. # ./apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not found ./apachectl start: httpd could not be started the path of library is correct, the SO is Solaris 7 we aren´t know why, please do you know how fi it?
RE: [PHP] sql question
select * from tbl_lit where lit_source like 'c%'; Check out http://www.sqlcourse.com/ -Original Message- From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] sql question i want that a select query display me all words beginning with an a .. like select * from tbl_lit where lit_source = 'c*' .. thnx bSue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] security benefits of predefined variables
Hi, I was hoping that someone could point me to a page or resource where I can find more information about using the predefined variables introduced in PHP 4.1.0. I read the release announcement (http://www.php.net/release_4_1_0.php), which is what called my attention to the potential security problems. I think I understand the example provided (where $authenticated is passed by a malicious user and overrides the authenticate_user() function) -- but does this mean that from this point on, any variables generated by a form should be pulled from $_GET or $_POST ? It seems that there isn't a difference between $variable and $_GET['variable'], since a user could add ?variable=1 to the querystring. But then, keep in mind that I don't know everything that's going on here. In other words, is there a more detailed description of the process of pulling a form variable from one of these arrays? Thanks, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] security benefits of predefined variables
Give this a read first, then come back if you still have questions ;) http://www.securereality.com.au/studyinscarlet.txt Kirk -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 1:50 PM To: PHP Subject: [PHP] security benefits of predefined variables Hi, I was hoping that someone could point me to a page or resource where I can find more information about using the predefined variables introduced in PHP 4.1.0. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Another question - not exactly what i was looking for
Yo, thanks for all your help. But it isn't exactly what im looking for. Let's say you had a database with the following four columns... -LastName -FirstName -Age -Weight ...and you wanted a page that would allow a user to search for one or more of these fields within the database. It would be easy if the user could only pick just one of the fields. But let's say that want to search only lastname and firstname, or maybe all four, or maybe just one. How could this be done? If I have code that looks like this... $query = select * from table where lastname='$lastname' and firstname='$firstname' and age='$age' and weight='$weight'; $result = mysql_query ($query); $num_results = mysql_num_rows($result); ...the $num_results is ALWAYS zero unless I typed in all four fields. Any help? Thanks!
RE: [PHP] sql question
Hi do you care about case sensitivity? Nathan Cassano [EMAIL PROTECTED] wrote: select * from tbl_lit where lit_source like 'c%'; Check out http://www.sqlcourse.com/ -Original Message- From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] sql question i want that a select query display me all words beginning with an a .. like select * from tbl_lit where lit_source = 'c*' .. thnx bSue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Mehmet Erisen http://www.erisen.com - Do You Yahoo!? Send FREE video emails in Yahoo! Mail.