Hi to all,
I'm a C++ programmer and I've to convert some simple classes
from C++ to PHP. My toolbar_button class must have two or more
constructors so I ask you if this is possible with PHP:
class toolbar_button
{
CString m_name, m_tooltip, m_image, m_action;
bool m_state,
Richard,
Thanks for the answer.
I understand that I can't do it the way I wanted .
I have changed my design.
Thanks ALL who answered.
-Saswat
On Apr 7, 2005 8:18 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, April 6, 2005 10:07 am, Saswat Praharaj said:
I need some help in searching
i am developing a comment/discussion board and i want to display the results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
id : 16 Re: most oranges come from florida
Greetings PHP(eople),
I have a wget process that runs to download a file from a web site,
however, if no file exists at the location I`m pulsing, how do I get it
to abort ?
Here is the code :
?php
$getfile = 'wget -dv -o log.txt http://www.somesite.co.za/somefile.php';
$get =
Hello list,
I need to develop a multilingual web site and I am looking for the best way
of handling this task. There are three main issues I know:
1. Storing multilingual data in a database. Possible solutions I know:
a. many tables, one per each supported language, e.g. news_en, news_de.
b.
On Fri, 2005-04-08 at 09:47, Chris Blake wrote:
Greetings PHP(eople),
I have a wget process that runs to download a file from a web site,
however, if no file exists at the location I`m pulsing, how do I get it
to abort ?
Here is the code :
?php
$getfile = 'wget -dv -o log.txt
Sebastian wrote:
i am developing a comment/discussion board and i want to display the results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
id : 16 Re: most oranges come
Denis Gerasimov wrote:
Hello list,
I need to develop a multilingual web site and I am looking for the best way
of handling this task. There are three main issues I know:
1. Storing multilingual data in a database. Possible solutions I know:
a. many tables, one per each supported language, e.g.
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 07, 2005 10:17 PM
i want the rows to know the id directly above itself
so for example, row 5 (id 28) will some how know its parentid (16) is not
directly above it and is not accociated with the
Hello all
Does anyone know if its possible to post data using the http POST method
to another form using php?
I know its possible to use:
header( Location: somelocation.php? .SIDsomevar=$somevar );
But this uses the GET method
any help or pointing me to any relevant documentation would be
Denis Gerasimov wrote:
I need to develop a multilingual web site and I am looking for the best way
of handling this task. There are three main issues I know:
Mabye consider of using gettext..
http://www.php.net/gettext
BTW: why doesn't Smarty support gettext?
How can gettext be implemented
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bob Pilly wrote:
| Hello all
Hi,
| Does anyone know if its possible to post data using the http POST method
| to another form using php?
| I know its possible to use:
| header( Location: somelocation.php? .SIDsomevar=$somevar );
| But this uses the GET
Aurélien Cabezon wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bob Pilly wrote:
| Hello all
Hi,
| Does anyone know if its possible to post data using the http POST method
| to another form using php?
| I know its possible to use:
| header( Location: somelocation.php? .SIDsomevar=$somevar );
[EMAIL PROTECTED] wrote:
Hi to all,
I'm a C++ programmer and I've to convert some simple classes
from C++ to PHP. My toolbar_button class must have two or more
constructors so I ask you if this is possible with PHP:
You can't overload a constructor, I mean a function in PHP. Maybe
extending two
Chris Blake wrote:
Greetings PHP(eople),
I have a wget process that runs to download a file from a web site,
Why would you do that ? There're bultin functions in PHP for doing it.
--
Josip Dzolonga
http://josip.dotgeek.org
jdzolonga[at]gmail.com
--
PHP General Mailing List (http://www.php.net/)
To
Hi NG
I've a question about searching in a xmlfile.
Is there a mehtod to select a xml-node with a specific value?
e.g.
xml
nameabc/name
namedef/name
/xml
and I want search for the node with name abc.
Or is it possible with a xpath definition?
Thanks in advance
Stefan
--
PHP General Mailing
On Fri, 2005-04-08 at 13:52, Josip Dzolonga wrote:
Chris Blake wrote:
Greetings PHP(eople),
I have a wget process that runs to download a file from a web site,
Why would you do that ? There're bultin functions in PHP for doing it.
wget was the first thing I thought of :)
--
Chris
There's a few xml - array libraries out there which is probably the
easier way to examine xml stuff.
I use http://keithdevens.com/software/phpxml but there are many others.
M
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]
Sent: 08 April 2005 13:26
To:
Hi Denis,
You can look into using or analyzing a multilingual CMS. Last time I
looked, the following PHP open source CMSs offered this feature: TYPO3,
Glasnost, eZ publish and OVIDENTIA. (links are provided on
MultilingualDev). You may get some insight on how why they chose
specific technical
Chris Blake wrote:
wget was the first thing I thought of :)
You thought wrong :-) Are you are going to parse the file after you've
downloaded it ? See this function, http://www.php.net/file_get_contents
, if allow_url_fopen is set to TRUE in your php.ini, there will be no
problems opening a
-Original Message-
snip
08while (false !== ($file = readdir($handle))){
09$fn = explode(.,$file);
10if ($fn[1]==pdf){
11echo $inputpath.$file.br;
12$handle = fopen($inputpath.$file,r);
13
Hi, I am curious how to pass a variable without using something like id=321.
I have seen sites that have something like
http://www.website.com/something/321 and the variable is passed how exactly
is that done? And is it called something specific so I know how to refer to
it in the future?
Or if you aren't \r\n might work.
Brent Baisley wrote:
Uhm, well, if you are outputting it to a web browser, you would need to
use HTML. Either br / or p.
On Apr 7, 2005, at 3:41 PM, Bosko Vukojevic wrote:
just reading:
http://ca3.php.net/echo
Regardless, I am not able to output
On Apr 8, 2005 4:11 PM, Brad Brevet [EMAIL PROTECTED] wrote:
Hi, I am curious how to pass a variable without using something like id=321.
I have seen sites that have something like
http://www.website.com/something/321 and the variable is passed how exactly
is that done? And is it called
Brad Brevet:
Hi, I am curious how to pass a variable without using something like id=321.
I have seen sites that have something like
http://www.website.com/something/321 and the variable is passed how exactly
is that done? And is it called something specific so I know how to refer to
it
first I would suggest you get the largest value from the auto increment
field (maybe use last_insert_id()). Then use rand(1,$cno_max) three
times to get three random cno numbers, then select ... from ... where
cno=$val1 or cno=$val2 or cno=$val3 should return the three values.
rand() can also be
Brad Brevet wrote:
Hi, I am curious how to pass a variable without using something like id=321.
I have seen sites that have something like
http://www.website.com/something/321 and the variable is passed how exactly
is that done? And is it called something specific so I know how to refer to
it in
i guess a good question would be which one of these methods has more
overhead - having php calculate the random numbers for queries, or
having the mysql db pick them at random itself? i don't really focus
that much on optimization, but if you expect heavy traffic on your
site, it might be in your
I guess so, but I dont think the difference would be all that great using
rand() in php or order by rand in mysql..
worth checking up for programmer show off rights anyway :-)
Cheers,
Ryan
i guess a good question would be which one of these methods has more
overhead - having php calculate
Mattias Thorslund mailto:[EMAIL PROTECTED]
on Thursday, April 07, 2005 5:20 PM said:
?php
$keys = array_keys($object_array);
$first_key = $keys[0];
I wonder if that will work, when the first element has the key 3... ?
This might work better:
$keys =
Hello all
Does anyone know if its possible to post data using the http POST method to
another form using php?
Yes. If you search around you'll find some pure-PHP code snippets to do
this... or do it yourself...
To programmatically make a POST request you need to open a socket
connection to
HI
Suggestion 1: configure apache to parse files with php extension thru php
binary
Suggestion 2: place a shebang on the start of the php file
like
#! /usr/bin/php
Suggestion 3: rewrite your script and have the php script call the perl ;-)
Tada
Andy
On Friday 08 April 2005
Hello All,
Why is this working?
?php
class foobar {
public
$a,
$b;
public function __construct() {
$this-a = Hello ;
$this-b = world! ;
$this-c = Good bye... ;
}
public function foo() {
echo $this-a.br;
echo $this-b.br;
echo
Hello,
Here is an example of what could be posted from a form:
Array
(
[tax0] = GST
[amount0] = 10.23
[type0] = Goods
[tax1] = GST
[amount1] = 6.5
[type1] = Goods
[tax2] = HST
[amount2] = 3.54
[type2] = Goods
[tax3] = HST
[amount3] = 8.95
[type3] =
I'm receiving this when trying to store a session :
Warning: session_start(): open(/tmp/sess/sess_d280d6af3a2059aa58f43477d6b2c166,
O_RDWR) failed: Permission denied (13) in
/usr/local/apache2/htdocs/calendario/calendarix/cal_header.inc.php on line 19
Warning: session_start(): Cannot
Problem: I have db with users, groups, passwords and permissions. I need
to restrict access to some files for general public, but allow certain
groups to download those files. Access restrictions should be based on
permissions in the database.
I can set_time_limit() to a very big number,
I can't figure out how to separate these variables and values so that I
can do what I need to do.
I've got
foreach($_POST as $var=$value) {
}
but can't seem to figure out what to do inside.
Ideas??
What you could do is rename the form field names. Instead of naming
the field 'tax0', you
Yuri Huitrón Alvarado mailto:[EMAIL PROTECTED]
on Friday, April 08, 2005 10:02 AM said:
* the /tmp directory is owned by root
* the /tmp/sess directory is owned by the apache user and has 777
permissions
* the directory in php.ini to store sessions is : /tmp/sess
* there's not a php
Hi folks,
Been through the suggestions offered here, have compared the config
files on my development box and my server, and I'm still stuck.
To recap, I set up SuSE 9.2 with Apache 2 and PHP 4.3.8 on a server and
it's running fine. When I installed, I included Apache and PHP from the
very
Hi all i have problem with in_array() function to comparing string of
filepath.
I read from a directory and write the filepath into database if the flag
is off.
If the file is modified i update the last time of modify and if there
are new file i add this file into Db.
i have write a function to
On Saturday 09 April 2005 01:02, Yuri Huitrón Alvarado wrote:
I'm receiving this when trying to store a session :
Warning: session_start():
open(/tmp/sess/sess_d280d6af3a2059aa58f43477d6b2c166, O_RDWR) failed:
Permission denied (13) in
On Saturday 09 April 2005 01:35, Whil Hentzen wrote:
Then I took an existing desktop 9.2 box, added Apache 2 and PHP 4 to it
via YAST later. I can't get PHP to respond to function calls. Apache is
serving up static pages fine, but it's not recognizing PHP.
I'm pretty sure the people over at
* Johannes Findeisen [EMAIL PROTECTED]:
Hello All,
Why is this working?
?php
class foobar {
public
$a,
$b;
public function __construct() {
$this-a = Hello ;
$this-b = world! ;
$this-c = Good bye... ;
}
public function
Hi all,
I'm in the process of getting started on a new web app and want to compare
performance etc. of:
php5, MySQL, Apache and Smarty
on
Windows 2000 Server vs. Red Hat Linux FC3
While installing php5, in the install doc it says Do not use Apache 2.0.x and
PHP in a production environment
* Michael [EMAIL PROTECTED]:
I am currently developing a few security functions for my website and
have finally decided to use the session functions that I have been
avoiding for years since I did not want to change from what I am used to
developing. So now that I have refreshed my brain
Beautiful Chris. That does make things easier. Thanks.
On Apr 8, 2005, at 1:02 PM, Chris Boget wrote:
I can't figure out how to separate these variables and values so that
I
can do what I need to do.
I've got
foreach($_POST as $var=$value) {
}
but can't seem to figure out what to do inside.
Please turn off your return receipts when sending to a mailing list.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Im running PHP 4.2.2 on RedHat 9.0
Just using one of the many free Google API search scripts using nusoap or
pear::soap, I get no response.
When I run the same script on a different server (identical, just a later
version of PHP) it works like a charm.
Is there a syntax difference in 4.2.2 and
I have an odd php issue with mcrypt.
I'm getting a lot of this type of error, but only sometimes:
mcrypt_generic_init(): Iv size incorrect; supplied length: 0, needed: 32
(note, the supplied length: 0 is not always the same. sometimes it is
1, 16, etc).
It doesn't seem to affect the decoding of
Apache2 uses threads. Searching the archives (both php-general below
and php-dev would be good places to look) will give you the answer for
this question.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
Here is that faq url
http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
Cheers
Andy
--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I released under the GPL2 and
that are meant for use with a php cli binary:
Thank you very much.
If anybody has some good links to ereg tutorials, I would love to get that
teached.
Thanks
Mirco Blitz
-Ursprüngliche Nachricht-
Von: Eli [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 8. April 2005 06:40
An: php-general@lists.php.net; Webmaster
Betreff: [PHP] Re:
This seems to be what I was looking for, but I am curious, will the / be
included in the variable? Will I have to do a stripslashes() command on it?
Brad
Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Brad Brevet:
Hi, I am curious how to pass a variable
Hi Guys!
I need a help with a licensing system, I want something very simple,
for example a simple var store into the configuration file, and witch
is sent to a server called licenses.hostname.com.br, and this one
returns true or false... I don't wanna use SOAP or XML. Does any body
have a
So it seems that Apache's multi-threading is the issue. So IIS is the way to go
then or Apache 1.x eh? The trouble with going the Apache 1.x route is that I've
been having trouble downgrading from 2.x to 1.x...
Well someday I'll find a use for Linux...The check is in the mail, Mr. Gates.
John
On Thu, April 7, 2005 5:32 pm, Webmaster said:
## /T (KEY1)/V (VALUE1)|| ## /T (KEY2)/V (VALUE2)|| ## /V (VALUE3)/T
(KEY3)||
I know want to separete it in to keys and values and insert them into an
array.
Note that /T always shows that teh upcoming value in() is a Key and that
/V
always
On Tue, April 5, 2005 8:43 pm, michael said:
I am currently developing a few security functions for my website and
have finally decided to use the session functions that I have been
avoiding for years since I did not want to change from what I am used to
developing. So now that I have
On Thu, April 7, 2005 5:32 pm, Andras Kende said:
I would like to do the following:
mysql db:
andrew
anthony
joe
janice
john
simon
sql_query ( select names .
I would need only the distinct first character from the query
result would
input name=refrescar type=submit class=btn id=refresh
onClick=sendrefresch() value=Refrescar
script language=JavaScript type=text/JavaScript
!--
function sendrefresch()
{
How can I do for refresch my web, by the button Refresh?
}
some help please?.
thanks very mouch.
best regards TOMAS
Webmaster wrote:
Thank you very much.
If anybody has some good links to ereg tutorials, I would love to get that
teached.
Thanks
Mirco Blitz
http://www.regular-expressions.info/ have a good article, however
there's a great book on this topic (IIRC 'Mastering Regular
Expressions', too lazy to
Greetings,
I am proud to announce the initial release of AutoPostgreSQLBackup! It
is based on the AutoMySQLBackup script written by [EMAIL PROTECTED]
A previous version of this script was ported to Postgresql by Friedrich
Lobenstock [EMAIL PROTECTED]. I have been using the script for a couple
Windows 2000 Server
IIS 5/Apache 1.3.33
MySQL 4.1.1
Smarty 2.6.9
PHP 5.0.3
Hi all,
I am looking for help handling a form input to SQL. I believe the solution has
to do with regular expressions.
My big problem is that when a user submits data such as:
Joe's Crabshack
The ' apostrophe or can
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
on Friday, April 08, 2005 3:43 PM said:
The ' apostrophe or can cause an early truncation of the data. My
code thinks that the closing identifier is after the word Joe and the
rest of the input is lost. Further, if the data does get by and it
How do I compress two or more files using PHP? All I have been able to find
information on is compressing strings, or just one file.
Jeremy White
Manager, Online Marketing
IMEX Research
408-268-0800
1474 Camino Robles
San Jose, CA 95120
[EMAIL PROTECTED]
http://www.imexresearch.com
Ok that would solve my SQL statements from breaking but how about in the
submitted form data at submit time?
John
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
on Friday, April 08, 2005 3:43 PM said:
The ' apostrophe or can cause an early truncation of the data. My
code thinks that the
Hi,
I am trying to control Excel with PHP via COM.
I am wondering if there are some resources available with all the keywords
(I didn't find anything on the net...).
F.i. : I try to modify the content of a textbox in a worksheet.
In VBA, I have:
ActiveSheet.Shapes(Shape1).Select
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
on Friday, April 08, 2005 4:08 PM said:
Ok that would solve my SQL statements from breaking but how about in
the submitted form data at submit time?
Do you mean you're having this problem?
input type=text name=.. value=She said Hi! /
?
If so,
What is a better way to store password in a cookie?
md5()?
base64_encode()?
mhash()?
mcrypt_generic()?
crypt()?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 8 Apr 2005 Chris Bruce wrote:
I need to be able to break out the tax, amount and type that were
entered on each line of a form and then apply calculations and do
database inserts on each. As you can see what I need is in sets of
three denoted by the integer at the end (tax0, amount0,
[EMAIL PROTECTED] wrote:
Windows 2000 Server
IIS 5/Apache 1.3.33
MySQL 4.1.1
Smarty 2.6.9
PHP 5.0.3
Hi all,
I am looking for help handling a form input to SQL. I believe the solution has to do with regular expressions.
My big problem is that when a user submits data such as:
Joe's Crabshack
The
On Fri, April 8, 2005 5:18 pm, Computer Programmer said:
What is a better way to store password in a cookie?
md5()?
base64_encode()?
mhash()?
mcrypt_generic()?
crypt()?
D) None of the above.
You only think you need to store a password in a Cookie.
You don't.
Use sample code from
[EMAIL PROTECTED] wrote:
snip
Joe's Crabshack
The ' apostrophe or can cause an early truncation of the data. My code thinks
that the closing identifier is after the word Joe and the rest of the input is lost.
Further, if the data does get by and it could possibly break a SQL statement.
Am I
Computer Programmer wrote:
What is a better way to store password in a cookie?
There is no good way to store a password in a cookie. Just don't do it.
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, April 8, 2005 3:43 pm, [EMAIL PROTECTED] said:
I am looking for help handling a form input to SQL. I believe the solution
has to do with regular expressions.
My big problem is that when a user submits data such as:
Joe's Crabshack
The ' apostrophe or can cause an early truncation
Hi,
Saturday, April 9, 2005, 3:35:21 AM, you wrote:
MH I have an odd php issue with mcrypt.
MH I'm getting a lot of this type of error, but only sometimes:
MH mcrypt_generic_init(): Iv size incorrect; supplied length: 0, needed: 32
MH (note, the supplied length: 0 is not always the same.
On Fri, April 8, 2005 1:06 pm, Bruno B B Magalhães said:
I need a help with a licensing system, I want something very simple,
for example a simple var store into the configuration file, and witch
is sent to a server called licenses.hostname.com.br, and this one
returns true or false... I don't
On Fri, April 8, 2005 3:54 pm, IMEX Research said:
How do I compress two or more files using PHP? All I have been able to
find information on is compressing strings, or just one file.
You could use http://php.net/exec with tar and gzip, but you'd have to be
sure only ONE script was doing this
On Fri, April 8, 2005 7:41 am, kyriacos sakkas said:
first I would suggest you get the largest value from the auto increment
field (maybe use last_insert_id()). Then use rand(1,$cno_max) three
times to get three random cno numbers, then select ... from ... where
cno=$val1 or cno=$val2 or
On Thu, April 7, 2005 1:17 pm, Sebastian said:
i am developing a comment/discussion board and i want to display the
results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
On Thu, April 7, 2005 1:17 pm, Sebastian said:
i am developing a comment/discussion board and i want to display the
results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
On Thu, April 7, 2005 1:17 pm, Sebastian said:
i am developing a comment/discussion board and i want to display the
results
in a threaded style. so far i have it all working except this one issue:
each row has an ID and a parentid, say i have 5 rows:
id : 10 most oranges come from florida
running whoami in php returns : root
--- On Fri 04/08, Chris W. Parker [EMAIL PROTECTED] wrote:
From: Chris W. Parker [mailto: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], php-general@lists.php.net
Date: Fri, 8 Apr 2005 10:21:16 -0700
Subject: RE: [PHP] sessions not being stored :
Chris W. Parker wrote:
Read www.php.net/array_keys and you shall have your answer.
From the php docs:
?php
$array = array(0 = 100, color = red);
print_r(array_keys($array));
?
Will output.
Array
(
[0] = 0
[1] = color
)
Duh! Yes, I replied a little too fast on that one.
/Mattias
--
thanks a million, it works.
so simple and i tried something similar except i was using parentid at the
end of the loop vs the id itself.
thanks again, its not the first time you helped me out :)
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
On Thu, April 7, 2005 1:17
On Saturday 09 April 2005 02:18, Computer Programmer wrote:
What is a better way to store password in a cookie?
md5()?
base64_encode()?
mhash()?
mcrypt_generic()?
crypt()?
It doesn't matter how you encrypt it.
DO NOT STORE PASSWORDS ON USERS COMPUTER
I hope that's clear enough.
What you
85 matches
Mail list logo