I'm new to Apache (and PHP) and was unable to find anything approaching an
answer to this problem in the Apache documentation. In fact, I'm not even
sure if I'm having a problem with Apache or with PHP. I am trying to use
sessions to track users on my site and write information to a file. I'm not
The best way to do it definitely is:
make several files with an array like:
file: lang.eng.inc:
$dict = Array();
$dict['name'] = 'Name';
$dict['button']['red'] = 'Red Button';
file: lang.ita.inc:
$dict = Array();
$dict['name'] = 'il nome';
$di
G'day folks,
We've got a web-application ready to install and everything looks okay except
that the client has chosen Hosting4all as their web-hoster. They
(Hosting4all) don't have a version of PHP linked with cURL and we need to
process credit card information. Again, the client has chosen a p
dear chris,
mysql does not support 'in' clause at the momment...
the only way to this is to use the loop to generate the sql syntax..
orr.. use the implode function... to join the array into 1 string separated by
the first parameter...
$catsql = implode("or cid=", $catids);
$catsql = ((strlen(c
oh,
i didn't realise how php is as flexible as vb :)
yeah.. ops, missed out the owner->test1 does not exist :)
thanx for tips :)
[EMAIL PROTECTED] wrote:
> Hi u007!
> On Sun, 15 Jul 2001, u007 wrote:
>
> > hie..
> > it's simply u did not declare ur class variable...
> >
> well, actually you d
Hi All,
I want to enable multiple languages on one of my scripts, so
administrators or visitors can choose in what language they want to browse
the site. I have seen a few ways to do it, like with switch, define or
querying databases.
But, considering performance, what is the best way to m
Hi,
I tried to execute the following command from the web interface using a
system call
/usr/bin/play a_wave_file.wav
I tried exec, system, passthru, and shell_exec. None of them worked, that is
I didn't hear any sound played. Note that I'm sitting here on the server
itself, and tried it with
hi,
I wanna print out all files in a directory. But i wanna exclude ".", "..",
"head.jpg", and all files that start with tn_
Here is my script, but it didn't work. Please help me to solve this problem.
Thank You.
-my script-
while ($file_name = readdir($dir2))
if (($file_name!="."
You probably mean SSH tunnel, which is quite feasable-- Hank Marquardt
posted this earlier to the list:
--- BEGIN QUOTE ---
Works just fine ... as does postgres --
ssh -N -2 -f -C -c blowfish -L3306:yourdatabase.server.here:3306
[EMAIL PROTECTED]
or the other usual tr
Hi James,
I don't want someone overseas.
I DID ask for someone in Melbourne.
Thanks anyway.
Justin French
James Tan wrote:
>
> hi,
>
> I'm interested in the position,
> would it be ok if I were in the position to do it from distance??
>
> I'm currently living in malaysia...
> I could do
Ok. I've been in this industry for 32 years. I've loved O/S2, hated windoz
and been intrigued with *nix. So, I have a successful web site and server
under windoz/php/mysql and I decide to venture into RedHat Linux because I
have heard some great things about it.
I get 7.0 and install it, virgi
I need to send form input to a secure CC payment processing form using the
POST method. Before the fields are sent, I need to insert them into a
database, and I prefer that the user not have to press a second submit.
I have been trying to use cURL to do this, but instead of sending the user
to th
What if you were to open an SSL tunnel to the DB host, then connect through
that???
> like you said... as long as the database provider accepts
> connections from outside, you can administer it from anywhere.
>
> if the provider doesn't accept incoming connections, no amount
> of tools and softw
> 1) Can someone please clarify if we need something else for this
> (asp,cgi,ect).
You don't need anything other than PHP & mySQL. What you are talking about
could be done in ASP, but would be much more difficult (most people find ASP
to be a much more difficult language). When you say CGI, yo
hi there!
the operators you want are ~ and ~* and !~ and !~*.
select name from table where name ~* 'test';
to see all operators availlable type \do in psql's interactive mode ;)
Regards,
Nuno Silva
Derek wrote:
> anyone know how I force a case insensitive search through a postgres
> database
> function sum_array( $input_array )
> {
> var $index;
> var $sum = 0;
>
> for( $index = 0; $index < count( $input_array ); $index++ )
> $sum += $input_array[ $index ];
>
> return $sum;
> }
The array variable issue has indeed bitten me a couple of times, so now all
my arr
phpLinks 2.1 beta is released.
http://phplinks.org/
Thanks,
Greg
--
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]
> I have an array of id numbers ($catids).
> This syntax fails:
> select * from categories
> where cid in $catids
Never mind. I was being stupid. For the record, one needs to implode(",",
$catids) and then use that in the WHERE statement, i.e. "where cid in
($catids)"
c
--
PHP General Mailin
I'm a new PHP/mySQL user (all of about 10 hours so far, working thru some
web-based tutorial stuff and using resources on the Internet). I have the
following "problem":
You can try the code out at
http://www.bond.net/~warrickw/zone6jrs/testsel.php
I want to have a form that lists values in a me
I have an array of id numbers ($catids). I would like to select from the
mysql database all records where cid is in that array.
This syntax fails:
select * from categories
where cid in $catids
What is the correct way to do this? It can be done outside of a loop, can't
it?
c
--
PHP General Mai
The form is no problem but how do INSERT 10 ROWS with one insert
statement. I figure some kind of loop like I did with the form.
When form is submitted:
$query = "INSERT INTO songs VALUES ('$id',
'$songname','$rating','$video', '$album_id', '$movie')";
$result = mysql_db_query("movies", $query
Chris Lott <[EMAIL PROTECTED]> wrote:
> Since nothing seems to be available at snaps.php.net/manual I grabbed the
> phpdoc cvs tree. Could anyone who is building their own manual tell me what
> I need to build it? I'm running RedHat Linux 7.1
egon answered the question about what you need, but yo
I get this too. I think it is because I'm running cgi php. Think it is a
500 error.
Easiest fix would to also create a custom 500 error handler.
Ken Gregg
Enhanced Data Systems, Inc.
http://www.rwre.com for the best in Southwest Oregon Real Estate
Scott wrote:
> I have custom 404 error handli
I have a form with a textarea and it is being used by a marketing dept
to
paste a ms word doc into. It then is saved into a mysql database and
viewable online. the
problem is that the word doc used vbCrLf which is not recognized by
the browser, so the
lines are extmely long.
I have t
From: "Christopher Ostmo" <[EMAIL PROTECTED]>
> The lack of transactions can easily be overcome by proper programming
> logic.
That, unfortunately, is totally untrue if there's the possibility of more
than one person manipulating data at one time on tables.
The "old fashioned way" of locking all
Hi u007!
On Sun, 15 Jul 2001, u007 wrote:
> hie..
> it's simply u did not declare ur class variable...
>
well, actually you don't have to declare them, you can add members as you go
(as opposed to C++ for example)
> class ctest
> {
> var $owner;
>
> function ctest(&$owner)
> {
>
Hi Andrew!
On Sat, 14 Jul 2001, Andrew Kirilenko wrote:
> Hello!
>
> I have following problem:
>
> $container = new ccontainer();
> $container->init();
> $container->test1->foo();
> $container->test2->foo();
> $container->test2->owner->test1->foo();
[*]
> $container->test1->owner->test2->foo()
Well, all the comparisons were based on year old (July 2000) versions of
each database, so not everything mentioned still holds true today.
__
/ Chris Lambert - [EMAIL PROTECTED]
|-> ICQ #: 16435685 - AIM: ClipperChris
`-> Cell: (401) 743-2786 - http://sms.clambert.org
Just for reference, I originally meantioned a comparison of PostgreSQL
beta vs. MySQL latest-- here's the article:
http://www.phpbuilder.com/columns/tim2705.php3?page=1
I'm curious to hear comments on stability of Postgres, since the author
of that article meantions it as a concern of his.
Hi David!
On Sat, 14 Jul 2001, David Brumley wrote:
> Hi,
> Was the complex object issue ever fixed in PHP 4?
works just fine for me (since 4.0.4pl1)
>
> I'm running 4.0.6 with imap, and have built a class IMAPSession
> defined in lib/sessionobject.inc.php. Here is a script:
>
> $config = ar
http://www.bosrup.com/web/overlib/
--
Julio Nobrega.
You're asking me will my love grow, I don't know.
"Dave Freeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On 13 Jul 01, at 21:47, Inércia Sensorial wrote:
> Maybe a pop-up or a CSS/javascript box
Hi Marius!
On Fri, 13 Jul 2001, Marius Andreiana wrote:
> How do you deal with numeric fields which start with 0 ?
> Excel takes the 0s out.
>
[wild-guess]
erm, enclose them in `quotes' ?
-- teodor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
For those of you who might be using Debian (and new to linux in general)
mysql support for php is offered as a separate package in debian. Just
use apt-get install php4-mysql, restart apache and you should be good to
go.
Hope this helps someone.
--kurt
-Original Message-
From: Kurt Lie
On Sat, Jul 14, 2001 at 07:57:19AM -0800, Chris Lott wrote:
> Since nothing seems to be available at snaps.php.net/manual I grabbed the
> phpdoc cvs tree. Could anyone who is building their own manual tell me what
> I need to build it? I'm running RedHat Linux 7.1
You need, DocBook, Jade, and th
hi,
I'm interested in the position,
would it be ok if I were in the position to do it from distance??
I'm currently living in malaysia...
I could do php with mysql.
I could setup apache , mysql and php with source on the unix environment as
well...
php have been my major for about several months
hi,,
u could try using explode function
eg:
arrayresult = explode(string, separator);
cont = explode(thestring, "\"");
echo cont[0] ;
// result as
Content-Type: multipart/mixed;
boundary=
echo cont[1];
//result as
B42DA66C4EC07C9B572A58FC
echo cont[2];
// array index 2 will be not
hie..
it's simply u did not declare ur class variable...
class ctest
{
var $owner;
function ctest(&$owner)
{
$this->owner = $owner;
}
function foo()
{
echo "test!";
}
}
hope it works :)
regards,
James
Andrew Kirilenko wrote:
> Hello!
>
> I have follow
Since nothing seems to be available at snaps.php.net/manual I grabbed the
phpdoc cvs tree. Could anyone who is building their own manual tell me what
I need to build it? I'm running RedHat Linux 7.1
c
--
Chris Lott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
hi,
I would suggest u do not put path to mysql with php configure...simply,
--with-mysql will do..
hope iit works,
thank you
regards,
James
Kurt Lieber wrote:
> OK, there's been another thread floating around about getting:
>
> Fatal error: Call to undefined function: mysql_pconnect()
>
> Tu
OK, there's been another thread floating around about getting:
Fatal error: Call to undefined function: mysql_pconnect()
Turns out, I'm getting this same error message for both mysql_pconnect
as well as plain mysql_connect. I'm using the PHP debian package found
in potato. (4.0.3pl1) phpInfo(
You need to add --with-kerberos not --without-kerberos
On Sat, 14 Jul 2001, Fernando Lozano wrote:
> Hi there!
>
>
> I am trying to compile php 4.0.6 on Red Hat Linux 6.2 with IMAP support.
> I have installed the package imap-devel*rpm and can easily compile PHP
> as an apache module. But, when
And the article was written by Joshua Drake, not Zeev. It seems to have been
published early January, judging by some Google research. Not sure why it
isn't in Zend's article DB anymore...
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Securit
Hi there!
I am trying to compile php 4.0.6 on Red Hat Linux 6.2 with IMAP support.
I have installed the package imap-devel*rpm and can easily compile PHP
as an apache module. But, when I compile using configure --with-imap,
after I install the new php module and restart apache, it complains
abou
How can I "activate" the function imagecreate? I'm using PHP 4 in windows
and Linux.
Fatal error: Call to undefined function: imagecreate() in
E:/Augusto/HomePages/img/imagecreate.php on line 37
thanks,
Augusto
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
> It's late, I've had a couple of beers, and in the morning I'll spend some
> effort trying to imagine such issues. In the mean-time I'd welcome any
> real-life examples.
::start.php::
::header.php::
When header.php is included in the context of start.php then $auth is
perfectly initialized a
Hello!
I have following problem:
init();
$container->test1->foo();
$container->test2->foo();
$container->test2->owner->test1->foo();
$container->test1->owner->test2->foo();
class ccontainer
{
function ccontainer()
{
}
function init()
{
$this->test1 = new ctest(&$thi
Hei!
I have a script, where people can log-in to administrate a site,
but once they are logged in, what do i have to do to log them out again?
I thought to write a logout-script which deletes the $HTTP_AUTH_USER
variable, but it doesn't work.
It seems that the user-data remains in memory until th
You have to use javascript
Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084
http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Brandon Orther <[EMAIL PROTECTED]>
To: PHP User Group <[EMAIL PROTECTED]>
Sent: Friday, July 13, 2001 5:46
well...
i don't think there should be any problem if the included file is a class
(right???)
come to think about it,
is it possible to create an object by passing a url like
this: file.inc?file=new mysql&file->conn() i mean would this run the class??
regards
At 05:00 14/07/01, Rasmus Le
Hi all
Traditionally we've been an "internet only" development company, developing
sites without a need for integration with internal systems. Occassionally
we have done this, for example a daily 500 record CSV upload for one client.
However, this potential job we've been asked to quote for is m
Sorry for the delay.
The project I'm working on is private by nature in the sence that only
my clients will have access to the application. I don't expect to have
more then a few dozen but each of them may have up to say 50 users. Say
I have 50 clients each with 50 users. This means that I cou
Thank you.
I came to the same conclusion on mySQL after only reading about it's
comparative benchmarks and that's why I choose it.
By their own admission mySQL developers have concentrated their effort
on speed but I wondered about real life situations. I wondered if those
benchmarks where do
Hi,
I am trying to capture the Header from a mail for my webmail using php and
pop3. The header is something like this:
Content-Type: multipart/mixed;
boundary="B42DA66C4EC07C9B572A58FC"
When I use preg_split("/[\d;]*/", $buffer), I get
Content-Type: multipart/mixed;
What I want i
On 14-Jul-01 Rasmus Lerdorf wrote:
>> I wrote (attribution added)
>>
>> Enough already.
>> Whom should we flog and keel-haul for starting this include(foo.inc) crap
>> ?!?
>
> There is nothing wrong with naming include files with a separate
> extension.
In the context of C files: *.c *.h .
Hi all,
I'm currently putting in a tender together for a large web project,
using PHP and MySQL, but I believe my skills may not quite be upto
scratch (or at least my development speed / quality of code), so I'm
considering finding a partner for the project.
They have a realistic budget, realist
Hi,
Was the complex object issue ever fixed in PHP 4?
I'm running 4.0.6 with imap, and have built a class IMAPSession
defined in lib/sessionobject.inc.php. Here is a script:
SwitchContext($state, $msg);
?>
My understanding is that the "csession" object should be stored. But
on the second invoc
56 matches
Mail list logo