Re: [PHP] a DOT or a BLANK SPACE
IMO that is a bad way to name them, why Num. and Home Address, if you explained the reason for needing these names maybe we could better help you. Chris TunkeyMicket Watford TunkeyMicket Productions www.tunkeymicket.com - Original Message - From: Jaime Torres [EMAIL PROTECTED] To: [PHP] General List [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 4:17 PM Subject: [PHP] a DOT or a BLANK SPACE Hi. We HAVE TO use names like Num. or Home Address in for our input tags in the forms. That is: input type=text name=Num. input type=text name=Home Address When I receive the info in my PHP file, after the form has been posted, the variable name I get is: 'Num '. So, the dots are being replaced for a blank space. I can't take for granted that any blank space is a dot since my inputs names are using them. How can I identify between this two variable names? Thanks for your help! Regards, Jaime -- 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] SMTP/mail question
Hi, I sent a message last day with subject perl2php - question - but I think I will describe the problem, I solved with perl, instead of asking for a perl2php-code: if I send a mail with the php-mail()-function, and the mail bounces (wrong address - server down ...), the sysadmin of my ISP will get this bouncing mail! I tried all possible headers (Return-Path, Error-To, Sender, ...) to redirect the bouncing mail to my address but nothing worked - all bouncing-mails go to root! In Perl I found a way to write a mail as usual, *but* I send the mail by specifying the real-sender and the real-receiver!!! real-sender: [EMAIL PROTECTED] real-receiver: [EMAIL PROTECTED] Mail to be sent: -- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: TestMail Body-Text -- If the mail is delivered, the receiver ([EMAIL PROTECTED]) will only see what is written in the mail above (he won't see the real-sender and the real-receiver in any header)! If the mail isn't delivered correctly [EMAIL PROTECTED] will get a message! And I want to implement this with php!!! Is this possible??? (for an example you can look at http://perl.about.com/compute/perl/library/weekly/aa022000d.htm ) thanks michi -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a -- 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] Forum script
Is it just me or does anyone else get a lot of messages on this list with dates in the future ( note the date below ) that then end up pinned to the bottom ( or top ) of the email listing. Is there some way to set the listserv to normalize the dates or is the just a Eudora4+ problem? At 03:41 PM 9/20/2001, Andrew Hill wrote: www.phorum.org Best regards, Andrew
Re: [PHP] setcookie() woes
In my experience the understanding of SetCookie header differs form browser to browser so much that it's horrible. As far as I remember IE5.5 handled it correctly. IE5.0 didn't. Netscape I think did (not completely sure). In any case .. session-based cookies seem to work in all of them. just call setcookie($name, $value) and nothing more. If you can't live without permament cookies you have to somehow (via $USER_AGENT for example) differ the browsers and upon that use setcookie the way that specific browser expects (you still have to find out how each of them works and there are many more than just IE or Netscape and their fifferent versions). I remember for example that one browser needed domain name to work and other didn't want it all to work. Or something like that. Hope this helps. lenar. ps. I think setcookie() itself doesn't woe, just our great programmers at netsacpe and microsoft can't correctly read and understand that short and simple specification of cookies. Chris [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I have a login script that works on one of my machines but not another, and I've determined the problem has to do with setcookie(). One machine is using IE 5.50 and another is using 5.00, and I assume therein lies the problem. I've tried to plow through the dozens (hundreds?) of followups on the manual page for setcookie(). Most of the interesting ones seem to involve using header(SetCookie . . .) instead of the setcookie() function. I tried a few, including the pass-every-parameter-to-setcookie-even-if-you're-not-really-using-them workaround, to no avail. Is this a well known problem, with a well known solution? Thanks, Chris -- 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] Include Speed
Isn't it fair to say that having the server open the extra file will add to the total execution time of the page? I think if it significantly impacts the execution time, you have bigger problems with your server. :) Jason -- 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 / gd problems / compiling
./configure' '--with-mysql' '--with-apache=../apache_1.3.12' '--enable-track-vars' '--enable-ftp' '--with-jpeg-dir=/usr/local/bin' '--with-gd-dir=/usr/local/bin' The configure option is --with-gd and it should definitely not point to /usr/local/bin. Quoting from the INSTALL file: There are a few things that can go wrong during this configure step. The most common is that you have asked for an option and that the configure script can not find the files required to enable this option in PHP. Chances are you can provide the full path to the base directory under which the related files were installed. For example, if you have installed the GD library in /opt/gd which means that /opt/gd/include has your GD header files and /opt/gd/lib contains your GD library files, you would use --with-gd=/opt/gd And yes, I agree with Sebastian, use GD2. If you simply grab the gd2 tarball and build it in your home directory (/home/rasmus in my case) then you need something like this: --with-gd=/home/rasmus/gd-2.0.1 --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 That assumes that those various things are installed under /usr and that you built gd2 using (in the gd2 Makefile): CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Follow these steps and you should have a kick-ass php-gd2 setup. -Rasmus -- 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] Resubmitting questions (Was [PHP] List of included file names)
Little note not only to you: Getting no answer after ~3 hours does *not* mean you have to resubmit the question. Agreed. No answer usually means: 1) We don't know 2) We don't know anyone who knows 3) We're asleep or 4) We don't care (hey, most of us have our own interests) This should be in an automated mail or something :) Jason -- 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] Which DB abstraction ?
Hi, I am in a middle of the process of chosing which DB will be used for future projects. I've been using Mysql for almost 5 years (coupled with php of course) but it seems to have reached it's limits (actually the lack of some features). The other options include some traditional comercial dbs and postgresql. I am about to choose postgresql because it seems to support the features I need (foreign key, transaction, triggers, stored procedures) and is open source with active development. Even tough I'd like to receive (perhaps in private) personal thought about this decision I would not like to start a war...so my focus here is : which db abstraction layer is ready for use ? disavantages ? I am considering : Manuel Lemos' Metabase, Phplib and Pear. So far I've played a little bit with pear, and read about metabase and phplib with no real experience in both. The ideia is to start using it right away so the adption of other DB would be painless (almost). Thanks, RT __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- 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] Trimming Array value
I have a multi-dimensional array. I want to trim every values so that none of them have trailing space. What is the most efficient way to do that ? I don't necessaryly know the dimension of the array ahead of time, so the function need to be able to handle it recursively. For a 1-D array: foreach ($array as $key = $value) { $array[$key] = $value; } ... apply some recursion to that and you should be set. Jason -- 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] Parse PHP inside a variable
I'm having a variable that contains HTML with embedded PHP code. When I echo it then the PHP code does not get executed. Is there a way I can parse/print the content of my variable? eval(), though you might have to be careful if it's HTML and PHP. Jason -- 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] General Coding Question
You don't use a lot of javascript, do you? Start your JS with \ and end it with \ inside PHP code. No biggie. Jason -- 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] Parse PHP inside a variable
Claus Heiko Niesen pressed the little lettered thingies in this order... Hello I'm having a variable that contains HTML with embedded PHP code. When I echo it then the PHP code does not get executed. Is there a way I can parse/print the content of my variable? Checkout eval() http://www.php.net/manual/en/function.eval.php The second user contributed note contains an example of how to do this. Good luck... Christopher Ostmo a.k.a. [EMAIL PROTECTED] AppIdeas.com Meeting cutting edge dynamic web site needs For a good time, http://www.AppIdeas.com/ -- 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] Another Template Engine (code)
That is awesome, I never got into hash tables, seeing as how the extent of my perl is validating and emailing forms. I am currently porting the template engine to a class, so I can overload alot of the options, like check if it is an array being sent to __registerWatch and act accordingly. You have given me a few ideas, and I think I might extend my engine a bit [no hash tables :P] Chris "TunkeyMicket" Watford TunkeyMicket Productions www.tunkeymicket.com BTW: with the $uid system they never collide, just like file handles never collide :) I thought about using a unique id system based off of random numbers, but after a very long IRC argument i just used the empty brackets to add a new member. - Original Message - From: scott [gts] To: php Sent: Wednesday, June 20, 2001 5:29 PM Subject: [PHP] Another Template Engine (code) i wrote a simple classified andhash-enabled template engine as a sort-of proof of concept placeholders in the template are denoted by %{name}% and they're filled with data by the "regvar()" func. $temp-regvar('name', 'value'); 1) class the engine so that you cay have multiple instances of different templates and not worry about them colliding or corrupting each other. example: $temp1 = new template("filename") $temp1-regvar('THIS', 'Some text'); $temp1-tprint(); 2) put support for hashes of values so you dont have to call regvar() for each and every var, you can simply submit a hash to the template and it'll traverse through it example: $assoc_array('name'='scott', 'age'='99'); $temp1-hash($assoc_array); will properly replace %{name}% and %{age}% with "scott" and "99" Attached files to this email are: template.php - the template class test.template.php - the calling php script test.template.html - a test template put them all in the same dir and call 'test.template.php' to see the test script. -Original Message-From: TunkeyMicket [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 11:47 AMTo: [EMAIL PROTECTED]Subject: [PHP] Template Engine Since so many of you are asking for help w/ a template engine of some sort I have included the one I use for my mail program. I have not tested it with large amounts of text, but it is able to handle some very large strings. It has its own documentation, and if anyone needs any help setting it up I'd be willing to help. Chris "TunkeyMicket" Watford TunkeyMicket Productions www.tunkeymicket.com Attached: mp_template_engine.php -- 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 be listed
I want to be listed in this mailing lis. tq _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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 be listed
I want to be listed in this mailing list. tq Ariffin _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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: time
actually i believe if you date() it gives you users system time it is the problem i have run into in the script i am trying to modify. the original person used date() and it clear shows my time. As much as i admit the possibility of their server being in Siberia but I doubt it. PHP would have no idea what the time is on the user's system. Date() returns the current system time in the format you specify. Of course, if the time on their system is stuffed, it could look like they're in Siberia... Jason -- 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] Maestro and PHP
does anyone know if php can talk to maestro? btw maestro is a catalogging system / software that a lot of radio stations use to play songs etc on the radio.. if you want to know more about it you can visit: http://www.ccc-dcs.com/1-1-1.html I can't see anything there about the kind of database that Maestro keeps or accesses... Thanks, Jay Paulson Internet Program Director LBJS [EMAIL PROTECTED] ... but a person in your position should be able to call them up and ask, and get an answer a lot more readily than any of us on the list. :) Hopefully (since they seem to like nonproprietary hardware) it'll be a database server that PHP can talk to. Then it'll be a matter of finding out where the data is written and in what format so PHP can pull it out. Jason -- 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] Code check please
You want mysql_error(), call it somewhere after your query. echo mysql_error(); Regarding the query, the following should work just fine : $sql = INSERT INTO tablefoo (a,b,c) VALUES ('$a','$b','$c'); Be sure to add slashes sometime to your values beforehand. Anyway, mysql_error() is what you're wanting. http://www.php.net/manual/function.mysql-error.php regards, philip On Thu, 21 Jun 2001, Andreas Skarin wrote: I'm sorry guys, neither of the snippets work. I must have screwed something else up too. Is there any way I can provoke an error message from your code examples below? If anyone manages to find out what's wrong, please tell me. I'm not giving up until I smash this bug :-) // Andreas Rich Cavanaugh wrote: try: $sql = INSERT INTO tabell (fornamn, efternamn, email) values ('{$fornamn}', '{$efternamn}', '{$email}'); Sebastian Wenleder wrote: I'd use this SQL-query: $sql = INSERT INTO tabell \ (fornamn,efternamn,email) \ VALUES(.$fornamn., \ .$efternamn., .$email.); -- Andreas Skarin Svenska Dream Theater-Sällskapet http://www.sdts.nu - 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] Secure LDAP and php 4.0.4pl1
Hi On Tue, May 22, 2001 at 10:18:38PM -0400, Scott Russell wrote: So, what can be done to alter the php ldap functions (and openldap libs?) so that you can choose the SSL protocol to use when connecting? Sorry for the very late answer. The way I see it, this is something that would require changes in the openldap libs, but not in PHP. The best solutions I can think of are: 1. Configuration options in ldap.conf where you also can configure other SSL stuff. Don't remember if version can be configured currently, I would guess not. 2. Some sort of option in the ldaps URL. I think 1 would be cleanest except that the easy fix would set the version for all LDAP SSL connections. I suggest you bring this up on the OpenLDAP mailing lists. I think you should ask how to force openldap libs to use SSL version 2, no point in discussing PHP. Stig -- 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] LDAP trouble! Need help
Hei On Wed, Jun 20, 2001 at 03:04:06PM +0200, Stig-Ørjan Smelror wrote: I have some problems while printing out values of attributes-types which have Equality and/or Substrings values. Example: $get_values = .$info[0][title][0]; # OK. (prints out the value correct) $get_values = .$info[0][postalCode][0]; # NOT OK. (prints out nothing) the title and postalCode attributes are even in the same objectclass (organizationalPerson), but the postalCode attribute has Equality=caseignoreMatch and Substrings=caseIgnoreSubstringsMatch ... The matching doesn't make any difference. I bet the reason is that you need to use postalcode rather than postalCode as index. It might be a good idea to do var_dump($info) to see what it contains. Stig -- 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] session question
I am setting up a website with a need to use some sort of session management for a large amount of users. I cannot use typical file based session managment because at any given time there could be up toa million users logged in at once. (It is a LAMP linux/apache/php4/mysql system). I am a bit confused though as how to go about this. The user will be authenticated by verifying a username/password combo in a database, and then a session created. My question is this: After authentication, which type of session managment should I use? I mean, just do the standard php stuff with the session_ functions? (wo'nt this be bad with the # of simoltaneous users i need to support, because of the # of files on the server?) Or, shall I use something more complex like PHPLIB or create my own scheme using mysql? Is there any exisiting code/functions that can make creating my own scheme easier in order to support mysql or am i way off with this question? I just need a bit of direction here and any help is appreciated. Thanks! -Derick
RE: [PHP] will PHP-3 scripts work using PHP-4 ?
I'm getting back into PHP after doing some scripts a couple of years age in PHP-3. since I am installing PHP on a server now I am wondering if I can install PHP-4 and trust that the old PHP-3 scripts will generally work Ok. Could someone advise me on thie? Generally, you'll be fine. You'll want to make sure that, after the install: * Your httpd.conf (on Apache at least) recognises .php3 files as PHP * Your httpd.conf (on Apache at least) uses .php3 files as a DirectoryIndex PHP4 is a bit more picky about proper syntax than PHP3 in general. Things won't break but they might generate warnings. If you're in a production environment and don't want to generate warnings, try error_reporting(0) at the top of the files. Alternatively, configure up a server with PHP4 (remember how you configure it) and install the code on that. Configure PHP4 the same way on the main server and if the code runs on the other server it'll run on the main system just fine. Jason -- 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] Code check please
Andreas, I'm not sure about code that appears to be missing like an execute query function or checking the number of affected rows to make sure that the insert worked, but clearly your insert code is not properly formed. The query could also be impacted by whether the columns are defined with special attributes like DATE, etc. Assuming that all columns are defined as character strings the query should look like; $sql = INSERT INTO tabell (fornamn, efternamn, email) . VALUES(\$fornamn\, \$efternamn\, \$email\); I've found that I often have problems trying to use single quotes in sql queries so I avoid them. I notice that you also included a semi-colon in the query text, while this works when piping a file of queries into the mysql command, it does not work from a program. The semi-colon in a command stream into the mysql command actually signifies a point to stop and execute the preceding text as a query and after executing that query, continue on from the next character. hope you got it working, Warren Vail -Original Message- From: Andreas Skarin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 9:00 AM To: PHP General Subject: [PHP] Code check please I've tried to get this working for over an hour now, and it still won't. I don't even get an error message to help me find the problem so I was hoping that someone could check my code for me. I'm fooling around with a basic form that is supposed to send one's name, surname and e-mail address to receive.php. receive.php is then supposed to take the information and add it to a table called tabell in a database called databas, but it doesn't work. I think there might be something wrong with my MySQL query. - - - - - - - - - - - FORM - - - - - - - - - - - - - - form action=receive.php method=post PFouml;rnamn:br input type=text name=fornamn size=25/p pEfternamn:br input type=text name=efternamn size=25/p pE-mailadress:br input type=text name=email size=25/p input type=submit name=submit value=Log in /form - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RECEIVE.PHP - - - - - - - - - - - ?php // connection to MySQL $connection = mysql_connect(localhost, username, password); if (!$connection) { echo (PUnable to connect to the database server at this time./P ); exit(); } //select database if (! @mysql_select_db(databas) ) { echo (PUnable to locate the database at this time./P); exit(); } // MySQL query $sql = INSERT INTO tabell SET . fornamn ='$fornamn', . efternamn='$efternamn', . email='$email';; ? - - - - - - - - - - - - - - - - - - - - - - - - - - - - Thanks in advance! // Andreas -- 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] PHP3
Does Select a.field, b.field from table_one a, table_two b where a.id = b.id work in PHP3/MySQL 3.22.32? Seems like valid SQL, why wouldn't it work? Client's running PHP3, and I'm on 4. Cool, can I have a cut of your consulting fee then please :) Jason -- 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 connect to remote database server through PHP?
Hi, We are developing web application. The client wants it to get connected to their central database server in USA. Web server is in Singapore. Web server configuration - Situated in Singapore, unix / php / mysql - this database is only for some special cases where application does not require central database. Main central database server - Situated in USA, HP UX / sybase On web site we will be providing product listing and order form. After the order is confirmed and payment is made, client wants to update some fields on central database. Can anybody give me the details, how to do it? If I am using php, how to connect to remote server's database? What are the components require on both servers? How will be the network configuration? Any information source? Any mailing list for network connections ? Thanks in advance manisha -- 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] Problem starting session
Make sure it is: \tmp in the ini file. That way you don't have to mess with a drive letter. - Original Message - From: Jonathan Sharp [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 7:57 PM Subject: Re: [PHP] Problem starting session Check your php.ini file, you should set the temp dir setting to semething like C:\tmp and make sure that C:\tmp exists and that whatever user your site is running as in IIS is set to have read/write access... /tmp\sess is for unix...it's not a valid path (/tmp is what is defined as the temp dir in php.ini) -js - Original Message - From: Chris Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 11:58 AM Subject: Re: [PHP] Problem starting session does the dir exist ? I dont use win2k for php so im guessing. win2k also has some sort of permissions doesnt it ? does the dir have to have the same perms that the server does ? linux needs this to be true. -- Chris Lee [EMAIL PROTECTED] Ben Edwards [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am getting the following on a Windows 2000 Professional installation when I try to start a session: Warning: open(/tmp\sess_9ab091b811c5675d90fabf4392b3c110, O_RDWR) failed: m (2) in e:\inetpub\wwwroot\cd\common.inc on line 27 Any help would be much appreciated. Regards, Ben *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ * Ben Edwards [EMAIL PROTECTED]+44 (0)7970 269 522 * * Campaign Against proper English, Dyslexia division * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org * * Smashing the Corporate image http://www.subvertise.org * * Bristol's radical newshttp://www.bristle.co.uk * * Open Directory Project http://www.dmoz.org * *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ -- 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] -- 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] newbie algorithm help!!!!!
I wanna get them(i know how to do that) and list them in a 2-column table. I have been trying to use a loop to do it. But it will only produce a 1-column table. it's like entry 1 entey 2 entry 3 entry 4 etc Please help me so that i can get this : entry1 entry2 entry3 entry4 Try this: ? echo TABLE\n; for ($i = 0; $i num_rows($query); $i++ ) { $row = mysql_fetch_array($query); if ($i % 2) { echo TR\n; } echo TD$row[value]/TD\n; } echo /TABLE\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]
Re: [PHP] protect source code
An alternative is to put some of your critical code into a PHP extension that you distribute as a shared library with your application. Compiled C code in the form of a .so is rather difficult to reverse engineer. how to do this? can you give an example? thanks michi -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a -- 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] protect source code
I have similar question as well, is there any example given for the below explanation? At 08:22 AM 6/21/2001 +0200, [EMAIL PROTECTED] wrote: An alternative is to put some of your critical code into a PHP extension that you distribute as a shared library with your application. Compiled C code in the form of a .so is rather difficult to reverse engineer. how to do this? can you give an example? thanks michi -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a Best Regards, Jason See Mobile : 65-97990008 -- 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] General Coding Question
this whole bench thing really needs someone to sit down and go i bet i could write some code to see in less time then it would take to post ? dont get mad, people are allways posting this. is this aster then that ? write some code and see. its very hardware/os dependant. your system may be very diff then someone else. more likley then not. Agreed - many people in this group seem to ask does this work without actually trying it to see if it'll work... Jason -- 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] Printingt Variables in Included Text
Maybe a $ in front of the variables? $pullquote1='Test for pull quote'; $pullquote2='pullquote2 text'; $keywords='shdjkashd kasdj d kjdjdjasd'; Chris Jeremy Bowen wrote: Hey, I have a website where I use header and footer files in a includes director to establish the header and footer of each page. They are pretty simple, mostly straight up html. The website is kind of an online magazine and what I want to do is print pull quotes out of each story. So in my file lests say index.phtml I have: ? include(/path/to/file/header.inc) ? ? pullquote1='Test for pull quote'; pullquote2='pullquote2 text'; keywords='shdjkashd kasdj d kjdjdjasd'; title='Title of Page'; ? ? include(path/to/file/footer.inc) ? --- In the header file I have ? print($pullquote1) ? It doesn't work!!! My problem is that I cannot get the variables to print in the included text. Isn't the include text run through the pre-processor? What am I doing wrong here? I want one pullquote to print in the header fil and one in the footer. I am going nuts trying to figure out what the problem is! Thanks, Jeremy -- 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] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- 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] Customer Relationship Management tools?
Hi folks, I'm curious whether anyone has had any experience with a Talisma-alike system written in PHP (or something else) and if so, where do I look for it? :) Talisma is a CRM tool that accepts inbound emails to a specific address, stores them in a database and threads all correspondence with the email sender. It's used, in Melbourne IT at least, to allow each of our support staff to access an entire case history for any single user, rather than having to run around multiple users' mailboxes to find out what has gone on in the past. Website: www.talisma.com Each email to the system gets allocated a request ID (customers can quote the request ID over the phone, and staff can thus look up who they are and get that case history). It filters these emails into folders based on the destination address of the mail (ie, Sales, Support, etc etc) and has a set of predefined canned responses for each of these folders that can be selected by staff for an easier time responding to queries. You can also email everyone in a specific folder. It's a Windows application, but it also has a web-interface for remote access so that people in our US office can see what's gone on with a particular user, for example. The closest thing I've found is Relata, which is (very) nice looking, but seems only to support the outgoing emails - if it does anything like what I've described here I can't see it on the website (www.relata.org). I've been asked to look into this because we're interested in finding a better alternative to Talisma. When I say better, I mean better - it can't be a simple little thing that's put together by programmers for programmers. If you know of a commercial offering that'd also be cool. I haven't got much experience in this arena and am looking into it as a favour :) Thanks -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT What'll Scorpy use wormhole technology for? 'Faster pizza delivery.' -- 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] Forum script
Timezones :) - Original Message - From: Morgan Curley To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 10:16 PM Subject: RE: [PHP] Forum script Is it just me or does anyone else get a lot of messages on this list with dates in the future ( note the date below ) that then end up pinned to the bottom ( or top ) of the email listing. Is there some way to set the listserv to normalize the dates or is the just a Eudora4+ problem?At 03:41 PM 9/20/2001, Andrew Hill wrote: www.phorum.orgBest regards,Andrew
[PHP] log out method
I know this may be asked a lot previously, so please bear with me here. I use PHP_AUTH_USERfor my login method, no login page or anything, only the pop up box to login. I did not use any kind of cookies or session to store login detail as well. How can I make the logout that will get rid off the login details on the server cache and user need not to close browser after that? I heard about using REALM but not sure exactly how. Jack[EMAIL PROTECTED]"Love your enemies, it will drive them nuts"
RE: [PHP] setcookie() woes
I won't quote, because this is not directly related to either mail. I had a completely bizarre issue with MSIE not accepting cookies that had highbit ascii values in them as their first character. Simply fixed (in the end): add text to the front and strip it out in the sitewide pre-execution script. As for cookie problems I really don't have them. For consistency we send all our cookies through one function, called sendCookie: ? Function sendCookie($cookiename, $cookievalue) { // Sends the user a cookie. Use this function to send cookies // so we can make sure they're all sent with the same parameters. setcookie($cookiename, $cookievalue, 0, /); } ? This creates a no-timeout cookie that gets sent to all pages of the site. Never had an issue with it. If I have, noone's complained about it anyway. :) Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT What'll Scorpy use wormhole technology for? 'Faster pizza delivery.' -- 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 General List Time Warp (was RE: [PHP] Forum script)
Is it just me or does anyone else get a lot of messages on this list with dates in the future ( note the date below ) that then end up pinned to the bottom ( or top ) of the email listing. Is there some way to set the listserv to normalize the dates or is the just a Eudora4+ problem? Actually, since the lists have gone back up I've noticed a time-warp effect, I'm getting replies to mails before I get the originals. Maybe Rasmus needs to tweak it a bit when he goes into his spare room next :) Jason (who wonders if Rasmus' spare room is for rent) -- 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] SMTP/mail question
I tried all possible headers (Return-Path, Error-To, Sender, ...) to redirect the bouncing mail to my address but nothing worked - all bouncing-mails go to root! this works for me: mail([EMAIL PROTECTED], Subject, Email body, Return-path: [EMAIL PROTECTED]\n); Maybe you mistyped the header or something... Jason -- 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] Code check please
It just occurred to me that one thing that will kill a query is special query characters imbedded in your strings, like quotes (single or double). This can be resolved by the $resultstring = addslashes($sourcestring); this should escape special characters normally used to signal key components to the mysql query processor. of course when you select the column you need to run it thru; $resultstring = stripslashes($dbcolumnvalue); to get back your original value. good luck, Warren Vail -Original Message- From: Andreas Skarin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 3:46 PM To: PHP General Subject: Re: [PHP] Code check please I'm sorry guys, neither of the snippets work. I must have screwed something else up too. Is there any way I can provoke an error message from your code examples below? If anyone manages to find out what's wrong, please tell me. I'm not giving up until I smash this bug :-) // Andreas Rich Cavanaugh wrote: try: $sql = INSERT INTO tabell (fornamn, efternamn, email) values ('{$fornamn}', '{$efternamn}', '{$email}'); Sebastian Wenleder wrote: I'd use this SQL-query: $sql = INSERT INTO tabell \ (fornamn,efternamn,email) \ VALUES(.$fornamn., \ .$efternamn., .$email.); -- Andreas Skarin Svenska Dream Theater-Sällskapet http://www.sdts.nu - 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]
[PHP] Re: PHP conference?
* Björn Schotte wrote: I will put up a special page where you can find this info and where you can subscribe to our newsletter. ... which is now possible at http://www.php-kongress.de/2001/index_en.php Björn. -- 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] .htaccess and secure image directory
(shrug) disable directory browsing. That should prabably be your default anyway. bill [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If I upload images to a web directory using PHP, how can I prevent a web browser from getting a file list of the directory while still allowing it to be polled for specific images? Or, just put a blank index.html in the directory. Jason -- 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] General Coding Question
I dont think thats XHTML complient... Correct me if im wrong? -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: 20 June 2001 23:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] General Coding Question im here to start a flamewar. dont use then. why not use ' ? echo input type=\text\ name=\name\ value=\$name\ echo input type='text' name='name' value='$name' I like the second. it is proper html check it with w3.org. -- Chris Lee [EMAIL PROTECTED] scott [gts] [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on pages with mostly HTML code, the second style is much prefereable, but on pages with mostly PHP code, the first style is usually OK. overall, i tend towards the second, becuase it's a pain in the ass to esape all the double-quotes in my HTML, my echo statements usulaly end up looking like thi (which, to me, is terrible form) echo INPUT TYPE=\TEXT\ VALUE=\. $hash['var'] .\.. so i usually use this format, which to my eyes is much prettier :) ? INPUT TYPE=TEXT VALUE=?= $hash['var'] ? ? -Original Message- From: James Stevens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: [PHP] General Coding Question Does it have any effect on performance in either case if a file is completely done in PHP(1) or interspersed with PHP(2). (1) ?php echo html; ... ? (2) html ... ?php echo $forminput; ? ... Also, and this is personal preference, which is easier to read/debug? James -- 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] -- 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] Unended login session!?
When I use the follow code to make a member login, header (WWW-Authenication: basic realm='my login'); Once you are logined, the session seems never end. (ie $PHP_AUTH_USER exist forever until you close the browser). Is it any way to put an end on this session and let people login with another name? The follow methods are tried and not work. header(HTTP/1,0 401 Unauthorized); while logout clicked; $PHP_AUTH_USER=$PHP_AUTH_PW=; Thanks Cefull Lo -- content-type:kiss/hug -- 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] Time Language Settings
How do I go arround getting php to output the time() function in a different language? I have tried the setlocale() function to no avail, perhaps my system doesn't have the appropriate locale to do this? If so, then how do install them on Red Hat 7? Cheers, Ray Hilton - [EMAIL PROTECTED] http://rayh.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]
[PHP] PHP 3 - 4 Transition problem
Hello everyone! Good to see the list back! I had this weird problem switching from PHP3.0.16 to PHP 4.0.4pl1. After changing Apache httpd.conf file, everything went ok except that mail() function always returns false even though mails are sent. phpinfo() says my sendmail configuration is this one: /usr/sbin/sendmail -t -i Does anyone know why is this happening? Thanks in advance. Regards -- 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] Retrieve datevalues from seconds
Hi! If i have a number of seconds, i.e. 30667 - is there any easy way to extract hours, seconds,days etc. from this? I.e. foobar ( 120 ) - 0 days, 0 hours, 2 minutes. ?!?! \david -- 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 as cron
Hi I have PHP installed as Apache module but I want to run a cron job. I have .php script that works OK when executed through browser but is there any way I could execute it through a cron job. Ajdin -- 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] Parse PHP inside a variable
Write your code to a temporary file, include the file and then delete it. ?php // HTML + PHP mixed code $code = b?php echo 'BOO!' ?/b; // Create a temporary file to store the code $file = tempnam ('/tmp', 'eval'); error_log ($code, 3, $file); // include the temp file include ($file); // erase the temp file unlink ($file); ? /* Note - I have not tested the above code, however it should work... :) */ Good luck! --zak - Original Message - From: James Atkinson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 10:08 PM Subject: RE: [PHP] Parse PHP inside a variable I'm in the same boat, I've tried eval() but it dosan't like mixing PHP and HTML code... I've tried the suggestions listed in the php.net manual too to no avail... - James -Original Message- From: Lenar Lõhmus [mailto:[EMAIL PROTECTED]] Sent: June 20, 2001 3:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse PHP inside a variable maybe function eval()? lenar. Claus Heiko Niesen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello I'm having a variable that contains HTML with embedded PHP code. When I echo it then the PHP code does not get executed. Is there a way I can parse/print the content of my variable? Thanks Claus -- 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] -- 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 be listed
On Thu, 21 Jun 2001 14:22, you wrote: I want to be listed in this mailing list. tq Ariffin ___ __ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Just one request will do! Go to the php web site www.php.net click on Support then scroll down the page a bit. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Falls don't kill people. It's the deceleration trauma. -- 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] SMTP/mail question
I tried all possible headers (Return-Path, Error-To, Sender, ...) to redirect the bouncing mail to my address but nothing worked - all bouncing-mails go to root! this works for me: mail([EMAIL PROTECTED], Subject, Email body, Return-path: [EMAIL PROTECTED]\n); Maybe you mistyped the header or something... no, this header (as well as Sender:) is being overwritten by the ISP's sendmail!!! and the recipient would see this header in the mail!!! I don't want the recipient to see his address in To: nor the Return-Path: !!! First I thought this is not possible, but it works great with perl! any idea??? thanks michi -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a -- 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] protect source code
See README.EXT_SKEL in the PHP distribution. On Thu, 21 Jun 2001, Jason See wrote: I have similar question as well, is there any example given for the below explanation? At 08:22 AM 6/21/2001 +0200, [EMAIL PROTECTED] wrote: An alternative is to put some of your critical code into a PHP extension that you distribute as a shared library with your application. Compiled C code in the form of a .so is rather difficult to reverse engineer. -- 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 with JAVA support
Jim Kirkpatrick wrote: Robert, Please include the php code you're using to instantiate the class. That will give me a better idea of what to suggest. Hi Jim, Thanks for the response. Here comes the code: ? phpinfo(); $system = new Java(java.lang.System); print Java version=.$system-getProperty(java.version). br\n; print Java vendor=.$system-getProperty(java.vendor). p\n\n; print OS=.$system-getProperty(os.name). . $system-getProperty(os.version). on . $system-getProperty(os.arch). br\n; $formatter = new Java(java.text.SimpleDateFormat,, dd, 'at' h:mm:ss a ); print $formatter-format(new Java(java.util.Date)).\n; ? Robert -- 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] .a library
Hi, I need to use a function in a .a library. How can do it? Thanks. -- 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] PHP3
The PHP version plays no part in this, since the SELECT statement below is passed directly to MySQL. And, yes, this should work on that MySQL version - it's a pretty simple statement. Were you experiencing a problem with it? If so, post the relevant PHP code the error message you're getting. The only thing that might conceivably be a problem is the table alias syntax. What you have _should_ work, but you could also try Select a.field, b.field from table_one AS a, table_two AS b where a.id = b.id - steve At 1:48 PM -1000 6/20/01, William Poarch wrote: Hi, Does Select a.field, b.field from table_one a, table_two b where a.id = b.id work in PHP3/MySQL 3.22.32? Client's running PHP3, and I'm on 4. thanks. - - - - - - - - - - Scott Poarch www.globalhost.com - - - - - - - - - - -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- 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] submiting the contents of an IFRAME
Hello! Anyone had tried to submit the contents (I mean the source code) of an IFRAME, so it can be available for PHP? Thank you, Rom -- 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] Code check please
Andreas Skarin wrote: I've tried to get this working for over an hour now, and it still won't. I don't even get an error message to help me find the problem so I was hoping that someone could check my code for me. I'm fooling around with a basic form that is supposed to send one's name, surname and e-mail address to receive.php. receive.php is then supposed to take the information and add it to a table called tabell in a database called databas, but it doesn't work. I think there might be something wrong with my MySQL query. - - - - - - - - - - - FORM - - - - - - - - - - - - - - form action=receive.php method=post PFouml;rnamn:br input type=text name=fornamn size=25/p pEfternamn:br input type=text name=efternamn size=25/p pE-mailadress:br input type=text name=email size=25/p input type=submit name=submit value=Log in /form - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RECEIVE.PHP - - - - - - - - - - - ?php // connection to MySQL $connection = mysql_connect(localhost, username, password); if (!$connection) { echo (PUnable to connect to the database server at this time./P ); exit(); } //select database if (! @mysql_select_db(databas) ) { echo (PUnable to locate the database at this time./P); exit(); } // MySQL query $sql = INSERT INTO tabell SET . fornamn ='$fornamn', . efternamn='$efternamn', . email='$email';; ? Hello, and where is the mysql_query($sql) function call? Robert -- 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] Forum script
Hi I personally like tForum, not as many features as ezboard but it gets pretty close and no banners or popup windows (ugh!). And you can pretty much design everything the way you want, easy setup too. http://www.sitehelpers.com/ Cheers, Nessi At 16:23 20/06/01 , you wrote: Hi Can someone recommend me some good script for forums ? Thanks, Rosen -- 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] Mails
Can someone tell me why i'm receiving the mails 10 times each??? -- 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 sessions login/logout and frames
Hi there! I'm happy the mailing lisi is finally activated :) Well guys, i've spent bad time using sessions with frames : i have a website that dislpays some tour products, and i have four frames in most of the pages! i have a logon button in the top frame where once clicked it asks for the login and password then resistered a variable session and set it to true then reload the whole page and activates the tarifs which where invisible in the not logged version! then when i logout i unregister the logged varaible then reload the whole page! Well i also start session in each page even if it's not registered so as to test whether it's registerd and set to true ! therefore i always have a session even not logged which is wierd! also i stsrt the session in the index file then send the session id to the 4 frames in their urls as test.php?phpsessid=$phpsessid... i also add the ?phpsessid=$phpsessid to each link in each page/frame! Here are the problems i encounter: 1-a session is always created cause i have to test! 2-with IE nad Netscape i have to clear the temporary files and set history to 0 otherwise it always shows the old page wich was for instance not logged however now i'm logged out ! but it still do me that after surfing a bit cause it remmbers the first pages ! Please help me !these drive me mad ! _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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] Need recommendation: good user management system (PHP/MySQL)
I'm just starting to learn PHP and it's going to take a while before I can create a really good script to password protect a section of my site, with a good admin control center to manage my user's accounts. Therefore I'm asking for recommendations on a good retail script that can handle this for me until I'm skilled enough to create my own. I'm a little desperate since I'm using a poorly written CGI script at the moment. I'm looking for a customizable PHP/MySQL script to password protect an area of my site and add/edit user's accounts. You know the usual member management script. Try phplib http://phplib.netuse.de This will do what you need and you will save time writing you're own. M@ -- 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 as cron
try etc. 00,30 * * * * lynx -dump http://path.to.php.script /dev/null Regards Johan Hi I have PHP installed as Apache module but I want to run a cron job. I have .php script that works OK when executed through browser but is there any way I could execute it through a cron job. Ajdin -- 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 as cron
Either recompile PHP as a cgi OR use lynx to do it so: lynx -dump http://www.mysite.com/myscript.php You can then collect the output in the usual ways. M -- From: AJDIN BRANDIC[SMTP:[EMAIL PROTECTED]] Sent: 21 June 2001 09:07 To: [EMAIL PROTECTED] Subject: [PHP] php as cron Hi I have PHP installed as Apache module but I want to run a cron job. I have .php script that works OK when executed through browser but is there any way I could execute it through a cron job. Ajdin -- 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 + Oracle + OCIPLogon
Confuser wrote: I understand that OCIPLogon creates a persitant connection to the Oracle DB, to improve performance... And I must say it does ! However, since OCILogoff is best not used with a persitant logon (and in the latest versions, it doesn't do anything anyway)... How will PHP decide when to cut that connection loose ? We are working on a relatively small website, with 4 users... Within no time, the session limit in Oracle (which is 60) is reached, and the site doesn't work anymore... The website should be able to handle thousands of customers in the future, so it would only take a second to crash... What are we doing wrong? Why aren't the sessions automatically killed by PHP ? Unfortunately, you are not doing anything wrong. Persistent connections and PHP/Ora do not play well with each other. I suggest that that you use plain OciLogon. -Stathis. Thank you! Gunther -- 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] setcookie() woes
This is a problem with IE5.0. However, not all versions of 5.0 have the problem. I had to upgrade all of my users to IE5.5 to fix the problem. What is really strange is that the problem manifests itself as a PHP problemBut it's not. Actually, I don't think the problem is the setcookie function, it's headers in general. Anyway, I assume you are having the problem in 5.0 and 5.5 works OK. -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 6:26 PM To: [EMAIL PROTECTED] Subject: [PHP] setcookie() woes Hi all, I have a login script that works on one of my machines but not another, and I've determined the problem has to do with setcookie(). One machine is using IE 5.50 and another is using 5.00, and I assume therein lies the problem. I've tried to plow through the dozens (hundreds?) of followups on the manual page for setcookie(). Most of the interesting ones seem to involve using header(SetCookie . . .) instead of the setcookie() function. I tried a few, including the pass-every-parameter-to-setcookie-even-if-you're-not-really-using-them workaround, to no avail. Is this a well known problem, with a well known solution? Thanks, Chris -- 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 + Oracle + OCIPLogon
Rouvas Stathis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Unfortunately, you are not doing anything wrong. Persistent connections and PHP/Ora do not play well with each other. I suggest that that you use plain OciLogon. -Stathis. Oh :o) That's a shame... Ok, guess we'll have to use OCILogon in stead... Thanks for the response! Gunther -- 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] SMTP/mail question
Hello mailing_list, On 20-Jun-01 23:06:59, you wrote: I sent a message last day with subject perl2php - question - but I think I will describe the problem, I solved with perl, instead of asking for a perl2php-code: if I send a mail with the php-mail()-function, and the mail bounces (wrong address - server down ...), the sysadmin of my ISP will get this bouncing mail! I tried all possible headers (Return-Path, Error-To, Sender, ...) to redirect the bouncing mail to my address but nothing worked - all bouncing-mails go to root! In Perl I found a way to write a mail as usual, *but* I send the mail by specifying the real-sender and the real-receiver!!! real-sender: [EMAIL PROTECTED] real-receiver: [EMAIL PROTECTED] Mail to be sent: -- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: TestMail Body-Text -- If the mail is delivered, the receiver ([EMAIL PROTECTED]) will only see what is written in the mail above (he won't see the real-sender and the real-receiver in any header)! If the mail isn't delivered correctly [EMAIL PROTECTED] will get a message! And I want to implement this with php!!! Is this possible??? You need to use sendmail -f switch. You may want to use this PHP class that emulates the Return-Path header with the -f switch or the SMTP MAIL FROM: command. http://phpclasses.UpperDesign.com/browse.html/package/9 http://phpclasses.UpperDesign.com/browse.html/package/14 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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] Another Template Engine (code)
You may want to take a look at Dreamtime's template engine. I've had pretty good feedback on it so far. The template language supports things like loops, if-then, pre-compiling templates, etc., which makes assembling complex pages pretty easy. We replaced a whole heap of Cold Fusion code with a few Dreamtime templates and a little PHP code during a big conversion job (CF - PHP) late last year. For example, if you've got a few arrays of values and want to output an HTML table, your PHP code looks like: $names = array(Tim, Alice, Dilbert); $ages = array(34, 36, 37); $t = new DTTemplate(table.html); $t-set(names, $names); $t-set(ages, $ages); $t-send(); and your template (table.html) could look like: table {:each:names} trtd{names}/tdtd{ages+}/td /tr {:end} /table The layer above this, the Page Manager, supports the lists of variable hashes you talked about, so that you can give it a big associative array instead of doing a series of set() calls for each variable. - Tim http://www.phptemplates.org - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 5:29 PM Subject: [PHP] Another Template Engine (code) i wrote a simple classified and hash-enabled template engine as a sort-of proof of concept -- 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] javascript label inside php code.
Warning: Cannot add header information - headers already sent by (output started I understand that one of the reasons for this erro message is if their is a trailing space after a ?. I have some PHP code which produces javascript rollover code. Above this there are a few includes referencing database and authorization files. Then I there is this peice of code finish of start code ? $page=getenv(SCRIPT_NAME) ; $page = split( /, $page, 3 ); $page = . . $page[4]; $page = split( \., $page, 2); $page = $page[1]; ? script language=JavaScript !-- This script controls the rollovers in the menu area if (document.images) { ? etc etc start of next code It is this break which produces the error code. Is it possible to place the script language=JavaScript into a piece of php code to fix this error? Or is there another method? Thanks in advance. Andrew -- 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] Problem with session_is_registered
hi everybody, maybe I get smth. wrong, but as far as I know the function session_is_registered() is used to find out if a var is registered in a session... ok, now here is my example: [ index.php ] ?php $count = ; session_start(); session_register (count); $count = 1; ? . . . a href=check.phpNEXT/a [ check.php ] ?php if (session_is_registered(count)) { echo yes, count is reg.br; } else { echo no, count is not reg.br; } ? . . . now, check.php always writes no, count is not reg., but I don't really understand, why! do I have to run a - session_register (count); - before using session_is_registered? But if I do this, there is no need to check for the var with session_is_registeredbecause I know the var is registered maybe someone can help me out or point me to a good tutorial about sessions thx in advance :) andi -- 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] General Coding Question
On Thursday 21 June 2001 09:31, Ray Hilton wrote: XML allows both single and double quotes for attributes, and XHTML is defined as XML DTD, so it allows it too. I dont think thats XHTML complient... Correct me if im wrong? -Original Message- im here to start a flamewar. dont use then. why not use ' ? echo input type=\text\ name=\name\ value=\$name\ echo input type='text' name='name' value='$name' I like the second. it is proper html check it with w3.org. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has. - Margaret Mead -- 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] form values in db via loopin
Hi all, I'm rather new to php, but I'm busy making a mailform. Is it possible to loop through the entered fields in the mailform and perform the functions addslashes and htmlspecialchars and finally put the answers in my db? thanx, Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [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] Parse PHP inside a variable
At 12:20 AM 06/21/2001, Christopher Ostmo wrote: Checkout eval() http://www.php.net/manual/en/function.eval.php The second user contributed note contains an example of how to do this. Good luck... Thank you for the quick response Christopher and Jason. The eval( ?$string ); is exactly what I was looking for. Claus -- 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] Mails
Can someone tell me why I'm still getting mail after I unsubscribe (successfully, according to the automated email) yesterday? Badger[EMAIL PROTECTED] --- On Thu, 21 Jun 2001, MySQL wrote: Can someone tell me why i'm receiving the mails 10 times each??? -- 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] session question
There is a useful article here: http://phpbuilder.com/columns/ying2602.php3?page=1 As to up to a million users logged in at once... don't you wantto have multiple redundant web servers running under a load balancer? If the rest of your system can handle that many concurrent users, then I doubt PHP sessions will be much more of a strain on your system... unless you're storing some huge amount of data in each session. Pete. Moax Tech List [EMAIL PROTECTED] wrote in message 00b101c0fa15$e47c4320$9865fea9@moax01">news:00b101c0fa15$e47c4320$9865fea9@moax01... I am setting up a website with a need to use some sort of session management for a large amount of users. I cannot use typical file based session managment because at any given time there could be up to a million users logged in at once. (It is a LAMP linux/apache/php4/mysql system). I am a bit confused though as how to go about this. The user will be authenticated by verifying a username/password combo in a database, and then a session created. My question is this: After authentication, which type of session managment should I use? I mean, just do the standard php stuff with the session_ functions? (wo'nt this be bad with the # of simoltaneous users i need to support, because of the # of files on the server?) Or, shall I use something more complex like PHPLIB or create my own scheme using mysql? Is there any exisiting code/functions that can make creating my own scheme easier in order to support mysql or am i way off with this question? I just need a bit of direction here and any help is appreciated. Thanks! -- 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] Which DB abstraction ?
Hello Robert, On 21-Jun-01 00:44:23, you wrote: Hi, I am in a middle of the process of chosing which DB will be used for future projects. I've been using Mysql for almost 5 years (coupled with php of course) but it seems to have reached it's limits (actually the lack of some features). The other options include some traditional comercial dbs and postgresql. I am about to choose postgresql because it seems to support the features I need (foreign key, transaction, triggers, stored procedures) and is open source with active development. Even tough I'd like to receive (perhaps in private) personal thought about this decision I would not like to start a war...so my focus here is : which db abstraction layer is ready for use ? disavantages ? I am considering : Manuel Lemos' Metabase, Phplib and Pear. This may sound a little biased, but here follow some hard facts: - PHPlib is inspired in mysql API, and PEAR is inspired in Perl DBI API. Both share their limitations. - Metabase was design with portability in mind from the beginning. This means that unlike with others, you can write applications with Metabase that work seeminglessly with different databases without changing a line in your code. For instance, Metabase is able to map by itself the data types with the underlying database. - Metabase provide a unique facility of installing and updating a database schema from a portable description in a XML format. There are other facts, but this should be enough for you to decide. To sound less biased, you may also want to try ADO-DB. It also supports data type mapping. It doesn't do all that Metabase does, but has some features more and supports some more a few databases than Metabase. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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] protect source code
Someone told me that there is another php compiler, called APC. Check it out here: http://apc.communityconnect.com/ I haven't got a chance to try it yet, so if you'll let me know the result I'd be happy to hear about. You can e-mail me off list about that. Hope that helps. Reuben D. Budiardja On Wednesday 20 June 2001 01:59 pm, you wrote: To Any Kind Soul, I am on a project and the issue that struck me is how to protect my source codes which is in human readable form. There isn't any way for me to protect my database and the only way that I had found out is to use the PHP encoder provided by Zend.com to encode the source code. However, the price of a commercial license for each machine (since it use host ID or hostname as the key) is too costy and I am trying to find an alternative or a cheaper packages available. Please help. Best Regards, Jason See -- 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 as cron
Have you tried 'php FILENAME'? Now, I don't know how you would pass parameters to it... -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:09 AM To: AJDIN BRANDIC Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php as cron try etc. 00,30 * * * * lynx -dump http://path.to.php.script /dev/null Regards Johan Hi I have PHP installed as Apache module but I want to run a cron job. I have .php script that works OK when executed through browser but is there any way I could execute it through a cron job. Ajdin -- 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] Which DB abstraction ?
Robert, Whichever you choose, using ODBC will further insulate you from the 'pain' of adopting other databases. Also, ODBC by itself will give you a great deal of db abstraction. There are HOWTO's on setting up PHP with the iODBC Driver Manager (needed to use ODBC drivers) at www.iodbc.org Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology Providers -Original Message- From: Robert Mena [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 11:47 PM To: php mailing list Subject: [PHP] Which DB abstraction ? Hi, I am in a middle of the process of chosing which DB will be used for future projects. I've been using Mysql for almost 5 years (coupled with php of course) but it seems to have reached it's limits (actually the lack of some features). The other options include some traditional comercial dbs and postgresql. I am about to choose postgresql because it seems to support the features I need (foreign key, transaction, triggers, stored procedures) and is open source with active development. Even tough I'd like to receive (perhaps in private) personal thought about this decision I would not like to start a war...so my focus here is : which db abstraction layer is ready for use ? disavantages ? I am considering : Manuel Lemos' Metabase, Phplib and Pear. So far I've played a little bit with pear, and read about metabase and phplib with no real experience in both. The ideia is to start using it right away so the adption of other DB would be painless (almost). Thanks, RT __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- 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.ini and mail
Hello everyone- i'm trying to use a script to send an email message. however, i'm having a problem sending the mail message php is telling me that it can't connect to our mail server. i know that the mail server i'm trying to connect to is the correct one so that's not the problem. Although, i'm using my own personal computer to try and connect to the mail server and i think that's the problem. I have php 4.0.5 installed on my machine at work and in the php.ini where you declare the mail server you want to connect to i put in the correct address (i.e. mail.servername.com) and it fails to connect every time. Does anyone know what i need to do to get this to work correctly? Thanks, Jay Paulson Internet Program Director LBJS [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] Problem with session_is_registered
I just check the var. if (isset($HTTP_SESSION_VARS['count'])) echo Yes its all set :) ; -- Chris Lee [EMAIL PROTECTED] news.php.net [EMAIL PROTECTED] wrote in message 9gss6k$kud$[EMAIL PROTECTED]">news:9gss6k$kud$[EMAIL PROTECTED]... hi everybody, maybe I get smth. wrong, but as far as I know the function session_is_registered() is used to find out if a var is registered in a session... ok, now here is my example: [ index.php ] ?php $count = ; session_start(); session_register (count); $count = 1; ? . . . a href=check.phpNEXT/a [ check.php ] ?php if (session_is_registered(count)) { echo yes, count is reg.br; } else { echo no, count is not reg.br; } ? . . . now, check.php always writes no, count is not reg., but I don't really understand, why! do I have to run a - session_register (count); - before using session_is_registered? But if I do this, there is no need to check for the var with session_is_registeredbecause I know the var is registered maybe someone can help me out or point me to a good tutorial about sessions thx in advance :) andi -- 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 no longer logging errors
PHP appears to no longer be logging errors: My php.ini is unchanged: error_reporting = E_ALL display_errors = On display_startup_errors = On log_errors = On error_log = /var/log/apache/php.log Over the last few days, whenever I had a syntax error in my scripts, I was getting segmentation faults reported in the apache error logs. Now I dont get anything anywhere. Anyone know why all error reporting might suddenly disappear? Has my library grown too large? complex? TIA JEFF -- 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] Unended login session!?
Header(WWW-Authenticate: Basic realm='$SERVER_NAME' ); Header(HTTP/1.0 401 Unauthorized); exit(); this forces all my clients to re-login. you can not log someone out be changing the value off PHP_AUTH_USER because that variable is set by the client everytime the page is loaded. you can change it all you want, but the client wont know your changing it. thus wont care. hehe I assume thats just a typo you made on the post, not in your code. HTTP/1.0 not HTTP/1,0 on a comment I need both those lines, not just one. Ive been told, never needed to, that another sure way to log someone out is to change the realm. function mtime() { $mtime = microtime(); $mtime = str_replace('.', '', $mtime); $mtime = explode(' ', $mtime); $mtime = $mtime[1] . $mtime[0]; return($mtime); } Header(WWW-Authenticate: Basic realm='. mtime() .' ); Header(HTTP/1.0 401 Unauthorized); exit(); -- Chris Lee [EMAIL PROTECTED] Cefull Lo [EMAIL PROTECTED] wrote in message 9gs89c$u29$[EMAIL PROTECTED]">news:9gs89c$u29$[EMAIL PROTECTED]... When I use the follow code to make a member login, header (WWW-Authenication: basic realm='my login'); Once you are logined, the session seems never end. (ie $PHP_AUTH_USER exist forever until you close the browser). Is it any way to put an end on this session and let people login with another name? The follow methods are tried and not work. header(HTTP/1,0 401 Unauthorized); while logout clicked; $PHP_AUTH_USER=$PHP_AUTH_PW=; Thanks Cefull Lo -- content-type:kiss/hug -- 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] Refreshing browser
Within my PHP code, I often do a re-direct via opening a new socket. This works like a champ *but* the surfer's browser retains the URL in the Address from the last FORM Type=GET - not the recent re-direct. This can be a problem if I do a https:// re-rect in that the broswer does not indicate to the surfer that they are in secure mode. Also, with Netscape, the relative address does not work after the redirect (e.g. src=images/floatoheader.gif). Is there a way to update the browser so that it has last re-direct? Many thanks. -- Todd Cary Ariste Software [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 as cron
You have global variables $argc (count of arguments) and $argv (array containing arguments given on command line) lenar. Joseph Tate [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Have you tried 'php FILENAME'? Now, I don't know how you would pass parameters to it... -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:09 AM To: AJDIN BRANDIC Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php as cron try etc. 00,30 * * * * lynx -dump http://path.to.php.script /dev/null Regards Johan Hi I have PHP installed as Apache module but I want to run a cron job. I have .php script that works OK when executed through browser but is there any way I could execute it through a cron job. Ajdin -- 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] -- 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] General Coding Question
I posted the exact same question a while ago, because i know that ASP does slow down when you jump in and out of the asp dll. I tried benchmarking it, and asked my geekiest of geek friends. All results thus far point to the fact that both work just as well. and imho, the alternate syntax is a lot easier to read when switching between large blocks of html. q. -Original Message- From: James Stevens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 10:23 AM To: [EMAIL PROTECTED] Subject: [PHP] General Coding Question Does it have any effect on performance in either case if a file is completely done in PHP(1) or interspersed with PHP(2). (1) ?php echo html; ... ? (2) html ... ?php echo $forminput; ? ... Also, and this is personal preference, which is easier to read/debug? James -- 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 as cron
Thanks all Ajdin -- 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] Apache config + PHP include paths
is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? so www.blahblah.com would have /www/libs as the include path and www.moomoo.com would have /www/moo -- Shaun -- 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] javascript label inside php code.
Sure, try this // ? echo(' script language=JavaScript !-- This script controls the rollovers in the menu area if (document.images) { '); // ? Make sure there are no blanks _anywhere_ (even in includes) before the header code HTH Andrew Austin wrote: Warning: Cannot add header information - headers already sent by (output started I understand that one of the reasons for this erro message is if their is a trailing space after a ?. I have some PHP code which produces javascript rollover code. Above this there are a few includes referencing database and authorization files. Then I there is this peice of code finish of start code ? $page=getenv(SCRIPT_NAME) ; $page = split( /, $page, 3 ); $page = . . $page[4]; $page = split( \., $page, 2); $page = $page[1]; ? script language=JavaScript !-- This script controls the rollovers in the menu area if (document.images) { ? etc etc start of next code It is this break which produces the error code. Is it possible to place the script language=JavaScript into a piece of php code to fix this error? Or is there another method? Thanks in advance. Andrew -- 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] Apache config + PHP include paths
in your virtualhost definition use: php_value include_path new include path might be that instead of php_value you have to use php_admin_value, not sure. this is explained in Chapter 3. Configuration of php manual. lenar. Butler, Shaun [EMAIL PROTECTED] wrote in message 0106240506.10472@progeny">news:0106240506.10472@progeny... is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? so www.blahblah.com would have /www/libs as the include path and www.moomoo.com would have /www/moo -- Shaun -- 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] Problem with session_is_registered
u should start the session first (session_start(), then check registration! From: news.php.net [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Problem with session_is_registered Date: Thu, 21 Jun 2001 15:25:35 +0200 hi everybody, maybe I get smth. wrong, but as far as I know the function session_is_registered() is used to find out if a var is registered in a session... ok, now here is my example: [ index.php ] ?php $count = ; session_start(); session_register (count); $count = 1; ? . . . a href=check.phpNEXT/a [ check.php ] ?php if (session_is_registered(count)) { echo yes, count is reg.br; } else { echo no, count is not reg.br; } ? . . . now, check.php always writes no, count is not reg., but I don't really understand, why! do I have to run a - session_register (count); - before using session_is_registered? But if I do this, there is no need to check for the var with session_is_registeredbecause I know the var is registered maybe someone can help me out or point me to a good tutorial about sessions thx in advance :) andi -- 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] _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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 + Oracle + OCIPLogon
On Wed, Jun 20, 2001 at 05:33:18PM +0200, Confuser wrote: I understand that OCIPLogon creates a persitant connection to the Oracle DB, to improve performance... And I must say it does ! However, since OCILogoff is best not used with a persitant logon (and in the latest versions, it doesn't do anything anyway)... How will PHP decide when to cut that connection loose ? one the connection is broken php will reestablish it. We are working on a relatively small website, with 4 users... Within no time, the session limit in Oracle (which is 60) is reached, and the site doesn't work anymore... if you MaxClients if set higher that the maximum number of session you allow in oracel than this would be true. remember: perstistent connection are on the apache-process level. so if you have 50 httpd processes running (and you use plogon) i would expect 60 active oracle connections! The website should be able to handle thousands of customers in the future, so it would only take a second to crash... not if you configure it correct. believe me - there are ppls out there that use this stuff;-) tc -- 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 + Oracle + OCIPLogon
On Thu, Jun 21, 2001 at 03:19:09PM +0300, Rouvas Stathis wrote: Unfortunately, you are not doing anything wrong. Persistent connections and PHP/Ora do not play well with each other. ??? - please elaborate. tc -- 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] Need help in Advance PHP!
Hello Friends, I have developed bunch of websites using PHP and I think I can say I can write programs in PHP with database fairly easily. Now I am going to develop a website, something similar to ebay or Yahoo-auctions and I want to know, is there any advanced features that I can use to develop this site. Basically I am trying to learn more about PHP, so I use these developments as a tool. If not, could you please give a url where I can look for advanced PHP features (I use php.net all the time). Thank you so much for your time. -Unni -- 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] javascript label inside php code.
Warning: Cannot add header information - headers already sent by (output started I understand that one of the reasons for this erro message is if their is a trailing space after a ?. I have some PHP code which produces javascript rollover code. Above this there are a few includes referencing database and authorization files. Then I there is this peice of code Well, JavaScript is client-side stuff which is of course output. You cannot have anything that needs to set an http header. Such as Header(), SetCookie() or session_start(). You can use output buffering to get around this limitation, but it is somewhat expensive. Your best bet is to modify your logic so anything that needs to send a header happens before any output at all. -Rasmus -- 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] Safe_mode in certain directories
Ey guys! How do set only safe_mode = On in certain directories while others are Off. And vice versa. Thank You.
Re: [PHP] protect source code
APC is a script cache engine, like the Zend Cache, it doesn't protect your source code. - Tim http://www.phptemplates.org - Original Message - From: Reuben D Budiardja [EMAIL PROTECTED] Sent: Thursday, June 21, 2001 9:58 AM Subject: Re: [PHP] protect source code Someone told me that there is another php compiler, called APC. Check it out here: http://apc.communityconnect.com/ -- 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] protect source code
You might want to check out APC - an open-source alternative to Zend's commercial product. I've never used it, but it looks pretty good: http://apc.communityconnect.com/ -Andy -Original Message- I am on a project and the issue that struck me is how to protect my source codes which is in human readable form. There isn't any way for me to protect my database and the only way that I had found out is to use the PHP encoder provided by Zend.com to encode the source code. However, the price of a commercial license for each machine (since it use host ID or hostname as the key) is too costy and I am trying to find an alternative or a cheaper packages available. Please 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] PHP with Apache 2 from CVS
Has anyone been able to overcome the APR_SAVE_BRIGADE build error when compiling as an Apache2 module? Any help in this direction is greatly appreciated. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] redirect from aframe to the whole page!
Hi! how cann i redirect from a frame to a page but in the whole page ! i mean like href and adding the target! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- 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] mcrypt_cbc()
Hello list, Is there a special tirgger to enable the mcrypt_cbc() function when you ./configure PHP? Or how do I get that function to work? I get the error: call to undefined function. Thanks, Tyler -- 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] Problem with hashtable in globals ZTS
Hi, I'm writing an extension to php. After changing my code to have thread safe globals , my extension is crashing and I can't figure out what it is: typedef struct { HashTable array_dl_handle; /* hash user dll name - handle, getobject, getcompiler, destroyobject */ HashTable array_compiler; /* hash compiler name - handle, gps, gms, version */ } php_delphi_globals; #ifdef ZTS #define DG(v) (delphi_globals-v) #define DG_FETCH() php_delphi_globals *delphi_globals = ts_resource(delphi_globals_id) #define DG_D php_delphi_globals *delphi_globals #define DG_DC , DG_D #define DG_C delphi_globals #define DG_CC , DG_C int delphi_globals_id; #else #define DG(v) (delphi_globals.v) #define DG_FETCH() #define DG_D #define DG_DC #define DG_C #define DG_CC php_delphi_globals delphi_globals; #endif #ifdef ZTS static void alloc_delphi_globals_ctor(php_delphi_globals *delphi_globals) { memset(delphi_globals, 0, sizeof(php_delphi_globals)); } #endif ZEND_MINIT_FUNCTION(delphi) { #ifdef ZTS delphi_globals_id = ts_allocate_id(sizeof(php_delphi_globals), (ts_allocate_ctor)alloc_delphi_globals_ctor, NULL); #endif ... DG_FETCH(); zend_hash_init(DG(array_dl_handle), 0, NULL, NULL, 0); zend_hash_init(DG(array_compiler), 0, NULL, NULL, 0); } It crashes when I do in one function: DG_FETCH(); zend_hash_find(DG(array_dl_handle), module_name,strlen(module_name)+1, (void **)value); My hashtable is empty. When array_dl_handle was not part of ZTS globals, everything was OK. Any clue ? Gilles. -- 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]