Hi,
make sure you urlencode everything that is sent on the url, or as postvars.
$d2 =urlencode($d2);
and so on
then
curl_setopt($ch, CURLOPT_URL, $server);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
don't use the $testrequest, cause it has un-urlenoded values
I think that should do the trick.
I have the following loop to insert data into an array:
while ($data = pg_fetch_object($res)) {
$aProds[] = array('id' => $data->prod_id, 'quantity' =>
$data->quantity);
}
But when I print this out using print_r I get the following:
Array
(
[0] => Array
(
[0]
hi all,
i'm trying to create an script that cut's the text when a "." ( dot ) is
found in one of the last words..
i'm trying it with preg_match but it seems not to work.
this is what i'm trying :
if($i==15) {
if(preg_match("/./",$text2[15])) {
$text3 .= "($i $text2[15] )";
Okay, it may be the end of a long day here, but I can't tell the difference
between the two arrays you posted!
Justin
on 28/08/02 5:31 PM, Jean-Christian Imbeault ([EMAIL PROTECTED])
wrote:
> I have the following loop to insert data into an array:
>
> while ($data = pg_fetch_object($res)) {
Justin French wrote:
> Okay, it may be the end of a long day here, but I can't tell the difference
> between the two arrays you posted!
One array contains only one element. That one element contains two
elements, each and array with two elements.
The other array contains two elements, each elem
On Wednesday 28 August 2002 15:39, [EMAIL PROTECTED] wrote:
> hi all,
>
> i'm trying to create an script that cut's the text when a "." ( dot ) is
> found in one of the last words..
>
> i'm trying it with preg_match but it seems not to work.
>
> this is what i'm trying :
>
> if($i==15) {
>if(p
hi,
yes, you have to escape the '.' because it has a special meaning, it matches
on Any character (except newline maybe).
But you probably do not need a preg_match anyway.
Merijn van den Kroonenberg
e-factory bv
Tel.: +31 (0)475 - 340 975
Fax: +31 (0)475 - 320 351
Web: www.e-factory.nl
-
On Wednesday 28 August 2002 15:31, Jean-Christian Imbeault wrote:
> I have the following loop to insert data into an array:
>
> while ($data = pg_fetch_object($res)) {
> $aProds[] = array('id' => $data->prod_id, 'quantity' =>
> $data->quantity);
>}
>
> But when I print this out using prin
Jason Wong wrote:
>
> If $aProds can contain more than 1 item then what you're doing now is correct.
Thanks. The problem was that I was doing this:
$return[] = get_array_of_prods();
the [] was creating the extra array level ...
The problem I now face is that foreach keeps crapping out if I p
When I restart apache this is the message:
Stopping httpd:[ OK ]
Starting httpd: PHP Warning: Unable to load dynamic library
'/usr/lib/php4/curl.so' - /usr/lib/php4/curl.so: cannot open shared object
file: No such file or directory in Unknown on line
Bruce --
...and then Bruce Karstedt said...
%
% Anyone care to recommend a host as follows:
%
% Unix
% PHP
% MySQL
% Domain Reg.
% No unusual size or traffic requirements (now)
We host with datapipe.net and I've been quite happy; excellent bandwidth,
good uptime, tech support that meets my nee
Hi, all --
I promise I'm not asking the same old question :-)
Our image gallery application takes a directory tree of images uploaded
by the user and then does all sorts of magic to make thumbnails, track
comments, and so on. The only thing owned by the user is the directory
tree and its conten
> I'm trying to get an apostrophe (and a dash, as well) to be
> included in a preg_match expression, but I don't know how to escape the
> characters.
The manual discusses which characters need escaping and how to escape
characters: http://www.php.net/manual/en/pcre.pattern.syntax.php
> if (preg
Hi!
The 8th sample of the New CHM Edition of the PHP Manual is out now.
It fixes the *.js selection problem in the preferences application,
and many bugs experienced by IE6 users:
- example ugliness is away
- horizontal scroll problems are away
- context menu placement is fixed
All
Hi Guys,
I have a real funny problem that I have never encountered before..
I went to hotscripts and downloaded PHPTriad and SpaceServer (In case you are not
familiar with the programsthe programs are supposed to install
Apache/MySql/PHP/Perl on my system and configure it automatically..
Hi,
I've seen similar questions in archives so sorry if I'm asking the same thing
again!
Is it possible, using php, to get the screen, page, or window width?
My aim would be to have a set of picture thumbnails, and give the html the best
number of columns depending on the size of the display.
Hi Ryan,
Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I
uninstalled it and installed SpaceServer...the problem I noticed with both
was I could not get the default page from apache with http://localhost/ I
have to use http://127.0.0.1 or it gives me a page not found err
Yes. Another poor soul who is having problems with PHP and installing the
IMAP library. I've installed Apache 1.3.26, PHP 4.2.2 and MySQL and they all
work just fine together. But I want IMAP as well, because I want my webmail
app to work.
I compiled PHP like so:
$./configure --with-apache=[v
On Wed, Aug 28, 2002 at 01:16:44PM +0200, Steinar Kolnes wrote :
> Thanks for the respond, I am actually using 'extension_dir' There was only a
> typos in the e-mail.
> The question however; how do I specify the directory ??
Chances are pretty high that you've modified the wrong
php.ini
Hi Rick
Check out list archives for last week (and the week before...) keyword:
resolution.
Also check out HTML, which will cheerfully slap text and graphics together
an adapt to local peculiarities.
Regards,
=dn
> I've seen similar questions in archives so sorry if I'm asking the same
thing
Hi Rick,
The important thing to remember is that PHP (as any other similar language)
is a server-side scripting language. It won't help you getting your client
details apart of those sent in HTTP headers.
You should rather consider looking into JavaScript capabilities to
accomplish your task.
HT
Woah, sorry, somehow I missed that thread. Cheers.
--- DL Neil <[EMAIL PROTECTED]> wrote: > Hi Rick
>
> Check out list archives for last week (and the week before...) keyword:
> resolution.
>
> Also check out HTML, which will cheerfully slap text and graphics together
> an adapt to local pecul
On Wednesday 28 August 2002 19:02, Rick Selby wrote:
> I've seen similar questions in archives so sorry if I'm asking the same
> thing again!
What were the answers in the archive?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design
Hi
I would like to do something like the following:
I have a table that contains a bunch of info at various "stages". To
optimize the load on the db, I was thinking it would be better to do a
"select * from table" , and then use PHP to sort through the results,
rather than have 3 SQL's with "wher
Hi!
I have been struggling with getting PHP 4.2.2 to load with Apache 1.3.26 for
a few days now, and after searching through the archives to find that others
have had this problem (yet I couldn't find any replies in the archives), I
thought I might ask myself. :) I'm hoping for better luck.
I ha
Actually, it's not accurate for me to say "stepping through an array
more than once", as I want to step through the database ( $result) more
than once, without having to make connections to the db again.
Can this be done?
On Wed, 2002-08-28 at 13:58, Petre Agenbag wrote:
> Hi
> I would like to do
> From: Petre Agenbag [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 8:17 AM
> To: Petre Agenbag
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Stepping through an array more than once
>
>
> Actually, it's not accurate for me to say "stepping through an array
> more than once", as
Try unset($myrow_it).
You don't want to reset the array, you want to clear it, then use a new
array (with the same name, and the same $result) for another while loop.
FWIW, I'm pretty sure I'd just use three distinct queries. Infact, it'd be
worth you timing your scripts with both these version
On Wed, Aug 28, 2002 at 02:09:57PM +0200, Steinar Kolnes wrote :
>
> When changing the directory to the latter it seems that it finds something
> because it comes up with an new error message:
> "The procedure entry point _Zend_list_delete could not be located in the
> dynamic link library php4t
On Wednesday 28 August 2002 20:16, Petre Agenbag wrote:
> Actually, it's not accurate for me to say "stepping through an array
> more than once", as I want to step through the database ( $result) more
> than once, without having to make connections to the db again.
> Can this be done?
mysql_data_
I wanna do with my bgcolor trough my array
">
blablabbaba
I have look my view source output my TR bgcolor , and i found this below
I want my bgcolor display with one by one like this below
etc
help please.
--
PHP General Mailing List (http://www.php.n
I always put an if(is_array($var)) to check if an array was actually
return.
On Wednesday, August 28, 2002, at 04:49 AM, Jean-Christian Imbeault
wrote:
> Jason Wong wrote:
>> If $aProds can contain more than 1 item then what you're doing now is
>> correct.
>
> Thanks. The problem was that I w
Here is what I would like to do. I have a simple form that asks for
information from a customer. One of the questions is Which categories of
products are you interested in? I want to store all the data in a table
called pf_survey. All the categories(42) are already listed in a
separate table calle
Thanks DL,
I've read that part of the manual. My original syntax was as you
suggested [^a-zA-Z-'], but the PostgreSQl query barfed on the apostrophe.
The preg_match works, but the db refuses to accept the apostrophe. Reading
the postgresql docs, they suggest escaping the character, but since t
It calls for a intermediate table.
You need 3 tables:
pf_survey, categories and survey_cat
They look like:
pf_survey
survey_id, Questions, Whatever, but no categories fields
categories
category_id, category_name
survey_cat
survey_id and category_id
for each record in pf_survey you will have o
This may be an interesting challenge for someone or has it been done
before
Can some one help me.
I am looking for a laboursaving method of extracting the contents of a
web page (Text only) and dumping the rest of the html code.
I need the contents to rework the pages and put the contents into
Hi,
This problem is solved now (thanks Wez Furlong). The problem was, that i had
the mbstring php module enabled (check with phpinfo). By default this module
encodes input data. After i added the following lines to the php.ini the
problem was solved:
mbstring.http_input = pass;
mbstring.http_outp
I have installed GD, libpng, zlib, jpeg-6b, and FreeType 2. I now need to
reconfigure PHP 'with' these additions. I don't understand how to determine
what directories to point to for each of these 'with' statements. In
Windows, I would just look for an exe, but under UNIX (Solaris 7) I not sure
wh
Andre,
> Thanks DL,
=a pleasure
> I've read that part of the manual. My original syntax was as you
> suggested [^a-zA-Z-'], but the PostgreSQl query barfed on the apostrophe.
=these are two quite separate things (1) and (4):
1 accept input ($_POST)
2 validate input
3 prepare input for storage
Carlos,
I'm sorry, but am just leaving... If you check the PCRE RegEx pages of the
annotated manual, there are contributed examples that will help in this
situation (probably under preg_match_all() )
Regards,
=dn
> This may be an interesting challenge for someone or has it been done
> before
>
Remon,
Your code works correct, cause you coded it this way as it should go through
the array and output every element in the array into one line.
If I got your idea correctly - you probably want you rows to be of two
different colors. You may do it simplier way:
blablabbaba
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Folk,
i tried to install pear with
lynx -source http://pear.php.net/go-pear | php -q
After some time, i get an error-message:
Downloading package: XML_Parser...ok
Extracting installer..ok
Fatal error: Can't use method ret
the striptag function is what I think you want, it just removes all HTML
tags and returns whatever is left
php.net/striptag
Andrew
- Original Message -
From: "Charles Fowler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2:58 PM
Subject:
Here's a question,
Say I have a binary number like this
1101 0100 0110 0110
And I want to pull out of the binary number the third quartet (is that the
right word)
I want to know how to apply the mask
to the number above so that the result would be
Well, to begin with applying the mask to 1101 0100 0110 0110 is
going to give you 110 not 110. But you can shift the result to the
right 4 if that is the result you want. There is no algorithm to speak
of here, just apply the mask. Like this:
$num = "1101010001100110";
$
Hey Dave,
It is much easier to use hex numbers when working with bits. Thus, the mask
for the first (left) "quartet" would be 0xF000,
second 0x0F00, third 0x00F0 and fourth 0x000F. To apply the mask use binary
AND operator, which is "&" in case of PHP.
After applying the mask you need to "shift-r
Great! The sample code in the manual looks much better.
But I feel the function definition is not so visible. I almost didn't find
it when I first look at the manual. I think add a blank line before and
after function definition or use a special color could be better.
"Gabor Hojtsy" <[EMAIL PR
Either the ereg_replace, eregi_replace, or preg_replace has a full working
script that does this, returning pretty much plain text.
There's also the strip_tags()/striptags() function which strips out all PHP
and HTML tags -- perhaps not enough, nice you'd want to remove *some* other
stuff maybe,
>I want my bgcolor display with one by one like this below
>
>
>
>
>
>
Try this:
/* -- from here -- */
\n";
foreach ($mycolor as $value) {
echo "\n\n\n";
}
echo "\n";
?>
/* -- 'til here -- */
- E
PS
See: http://www.php.net/manual/en/control-struct
I just cant seem to work out why this doesn't work. My PHP book doesn't
explain "if" statements very well so i have no idea if i am breaking a rule.
$system_day = date("j");
for($day = 1; $day < 32; $day++){
if($day = $system_day){
echo "match!";
}
else{
you need to use "==" instead of "="
"==" is used when comparing values (i.e. is this "==" to that)
"=" is used to set something's value (i.e. this "=" that)
-chip
-Original Message-
From: Chris Barnes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 11:12 AM
To: Php-General (
A single = will assing a value, even inside an if statement
A double = (ie ==) will perform a comparison between 2 values, returning
true if they evaluate to the same value, false otherwise
A triple = (===) will do the same as ==, but also check that the types
of the 2 variables match.
Check ou
(1) for($day = 1; $day < 32; $day++){
(2) if($day = $system_day){
(3) echo "match!";
(4) }
.
.
.
Easy enough. One of those things the programmer may not spot, but a casual
observer might. In line #2, you have a single =. A comparative = is a double
equal (==). The line should
Hi,
Appologies if this comes through twice. I tried to post it via goolg groups
but it didn't seem to work.
If I run the following script from within apache, then the script
fails and returns $error=2
.
I've seen quite a lot on the web about this suggesting that it's a
permissions problem.
How
---
"Ryan A" <[EMAIL PROTECTED]> wrote in message
000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh...
Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I
uninstalled it and installed SpaceServer...the problem I noticed with b
Hi All
Thanks for everyones help in trying to get my script to work - I'm learning
fast. But have the following problem:
I am using the following select command for searching a table with regards
to booked villas according to id number:
$sql = "SELECT COUNT(*) as count FROM bookings WHERE '$boo
Try putting brackets round the date selection part. I think the database
treats AND with a higher precedence than OR, and evaluates ANDs first.
So what your query is doing is like
A OR (B AND C)
But what you want is
(A OR B) AND C
Where
A is '$book_start_date' BETWEEN booking_start AND booki
Actually, the same thing happens if the ServerName directive was not set.
But anyway, even if the default page doesn't show up,
http://localhost/some.php
would still work...
- E
>
>---
>"Ryan A" <[EMAIL PROTECTED]> wrote in message
>000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c
This is giving me a parse error:
$file\n";
}
}
?>
This is the only PHP on the page, so it arguably has to be in the above...
:-(
Wm
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
>$path = '/full/path/to/your/jpeg/dir/'; # Be sure it'
Hey,
Thank you for replying...
I checked the httpd.conf file and this is what I saw
ServerName localhost
ServerName 212.92.**.***
(The stars are numbers of course but I put them there to protect myself from
evil genus's on the list :-) )
I have no idea what the second line is forapache
I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b,
zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an
error. Here is my configure command as well. I am using PHP 4.0.6.
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
Does anyone know of a solution to get a script to actually connect with the
POTS system (even through a 3rd party provider) and send a fax?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi again guys,
Just tried to use http://localhost/ again but as I do so it takes me
http://www.localhost.com tried it in both IE and NN with the same results...
PLEASE help,
-Ryan.
This has nothing to do with PHP.
You are missing a local DNS entry pointing localhost to 127.0.0.1
-Rasmus
On Wed, 28 Aug 2002, Ryan A wrote:
> Hi again guys,
> Just tried to use http://localhost/ again but as I do so it takes me
>http://www.localhost.com tried it in both IE and NN with the s
On Thursday 29 August 2002 01:10, Zach Curtis wrote:
> I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b,
> zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an
> error. Here is my configure command as well. I am using PHP 4.0.6.
> I search for libgd.so whi
First, my mistake: "localhost" still works even if ServerName directive
wasn't set...
(More below)
>
>Hey,
>Thank you for replying...
>
You're welcome :)
>I checked the httpd.conf file and this is what I saw
>
>ServerName localhost
>ServerName 212.92.**.***
>
Perhaps you can try taking on
Mike Mannakee wrote:
>Does anyone know of a solution to get a script to actually connect with the
>POTS system (even through a 3rd party provider) and send a fax?
>
>Mike
>
There are several "fax over the internet" providers out there. I used
to work for one.
That service was via email. You se
shouldn't that just be /localhost/ rather than http://? Seems like the
"http://"; part would be telling it to look for an actual website, which
would default to a .com address...
Wm
"Ryan A" <[EMAIL PROTECTED]> wrote in message
04ae01c24eb6$8228edd0$61d396c1@l2zcaxu7emppqh">news:04ae01c24e
system("html2ps document.html");
system("hylafax -somedirectives document.ps);
I haven't got around to actually figuring this out, but this is my plan.
James
-Original Message-
From: Mike Mannakee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:14 PM
To: [EMAIL PROTECTED]
To clarify, session files ARE being created still, but they all have a length of 0.
So it seems that the permissions to create a file are ok, but something else is wrong.
Any idea why the file could be created, but would be empty?
I'm perplexed.
K.
--
PHP General Mailing List (http://www.php.net
Hmm... maybe there is a problem with your hosts file (in WinNT systems
(NT/W2K/XP), I think you can find it in /winnt/system32/drivers/etc).
Normally, you should have a line that looks like:
127.0.0.1 localhost # default localhost
(the "#default localhost" is just a comment).
Hey Wm,
Nothing prevents you from running a webserver on your local host (unless of
course you're on a corporate network where it's generally pooh-poohed by
the AoH (Admins on High). Lots of developers run local webservers to check
their work.
And, since localhost refers to 127.0.0.1 or the l
Hi Folks,
Seeking some guidance here. My regexp knowledge is pathetic. I want to do a simple
validation of an ipv6 address. I just want to validate the entire string (not specific
blocks) if it has the allowed charachters.
I though ereg('[A-Fa-f0-9:]') would work, but it isn't. Anyone can help
OK, I learned something today...I thought I'd usually seen localhost
specified without the http:// , so I assumed there was a reason.
Wm
"Glenn Sieb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey Wm,
>
> Nothing prevents you from running a webserver
On Thursday 29 August 2002 00:19, Jon Lawrence wrote:
> If I run the following script from within apache, then the script
> fails and returns $error=2
> $data="this is a test";
> $GNUPGHOME="/home/nobody/.gnupg";
> putenv("GNUPGHOME=$GNUPGHOME");
> $HOME="/home/nobody/";
> putenv("HOME=$HOME");
Markus,
After reinstalling almost everything I am happy to report that PHP starts
without any complaints about missing dll's or other error messages.
So it seems that must have been some conflict with older versions.
However I am still not able run any cURL functions like $ch = curl_init
("http:
Hi,
I'm trying to work out how to schedule tasks in php. I would like to use at
but are having a few difficulties.
Does anyone have any suggestions on an alternate way to schedule a command
to run on the system via php.
Thanks a lot,
Todd.
--
PHP General Mailing List (http://www.php.net/)
T
I have a page the will print a telephone listing in pdf (using pdflib and inline pdf)
by POSTing the requested orientation and papersize to a second page. I've found that I
have to post to a second page because IE seems to cache a response, and if I post to
the same page, I can never get the ht
Sounds like an IE bug to me. If it knows there is POST data and it sends
a GET, it is just plain wrong. How about just using GET-method vars in
the URL to bounce this stuff along, or even a cookie-based session.
-Rasmus
On Wed, 28 Aug 2002, Matt Schroebel wrote:
> I have a page the will print
So these 4 variables walk into a bar :^]
I have a form with 4 drop downs. Each of these drop downs might have a value
and there is no order in which they might have a value. A query needs to
built (the WHERE and AND portions) that takes into account which ever
variables have been set. A user
GET solved it.
> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 2:44 PM
> To: Matt Schroebel
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PDF POST, but refresh is GET
>
>
> Sounds like an IE bug to me. If it knows there is POST
Hey,
did a nslookup and got this returned to me
server:ns02.chello.se
address: (looks like an ip no)
*** ns02.chello.se cant find localhost: non existent domain
Whats the problem?
-Ryan.
- Original Message -
From: "SHEETS,JASON (Non-HP-Boise,ex1)" <[EMAIL PROTECTED]>
To: "'Ryan A
I use PHP to send mail. Recently, emails originating
from the server stopped sending. After some
investigation, I looked at the /var/log/maillog file,
and saw the following errors when a mailing tried to
originate:
Aug 29 13:16:10 x sendmail[1162]: g7TIGA001162:
SYSERR(apache): Can't create trans
Hey,
I am on a cable connection...and to connect to the net my provider gave me an address
where my browser would get automatically configured...maybe because of that I am goint
to localhost.com?
I may be way off track here coz I dont know the first thing about what the heck a
proxy itself is
This is the greatest php related question I have ever seen.
tyler
On Wed, 28 Aug 2002 15:23:48 -0400
[EMAIL PROTECTED] wrote:
>
> Hey,
> I am on a cable connection...and to connect to the net my provider
> gave me an address where my browser would get automatically
> configured...maybe because
There must be a better way how to do it but this is what I would do: (Not
tested--just the "idea"...)
Instead of $var1, $var2... I'd use an array for the drop downs thus,
$var[]
$var[]
$var[]
$var[]
Then, check if any is set, then... anyway, this is how it goes:
// from here
$query
Hey,
comon,give a dude a chance,
I'm a newbie trying to leave java servlets and migrate to PHP and cant even
get localhost to work and you are getting sarcastic...
-Ryan A.
> This is the greatest php related question I have ever seen.
>
> tyler
>
> On Wed, 28 Aug 2002 15:23:48 -0400
> [EMAIL PRO
HEY everyone,
esp all of you who tried to help me,
For all of you that are curious how.
"Sheets Jason" got to the problem
it was my proxy setting that was wrong.
I took his advise and went to the settings under tools-connections and checked the
bypass proxy for local addresses and it di
I have tried to use cURL with PHP but without sucess so far.
In the php.ini I have made the following changes:
extension_dir = d:/php/extensions/
and
extension=php_curl.dll
Also, I have copied; "SSLEY32.dll" and "libey32.dll" to WINNT\SYSTEM32
Someone who have expirence with this ?
Thanks i
Todd came in with a good suggestion which I had started towards, so this is
what I have arrived at for the moment. I will be looking to make this more
elegant soon, but since they are screaming for the report now this is what I
did;
"--- Select ---"){
$usoc[] = $usoc1;
}
My PHP session files are being created in the specified directory (/tmp) by
the specified user (apache), but always have a file-length of zero, so no
data is being stored.
Anyone know what may cause this or how to correct?
K.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
I have tried to use cURL with PHP but without sucess so far.
In the php.ini I have made the following changes:
extension_dir = d:/php/extensions/
and
extension=php_curl.dll
Also, I have copied; "SSLEY32.dll" and "libey32.dll" to WINNT\SYSTEM32
Someone who have expirence with this ?
Thanks
Jay -
How 'bout this?
$init = 1;
$query = "SELECT foo ";
$query .= "FROM bar WHERE";
if ($init AND isset($var1)) {
$query .= "WHERE thus = '" . $var1 . "' ";
$init = 0;}
if ($init AND isset($var2)) {
$query .= "WHERE thus = '" . $var2 . "' ";
$init = 0;}
elseif (isset($var2)) {
$query
I have done this two different ways.
The first involves a function that creates a dropdown from the database.
What is special about this function is that I assign it's own condition as
part of the value for that option. Take this sql statement: select distinct
column_name from the_table
and it wou
In a portion of a website, I have implemented user authentication and management using
sessions. When a user first logs in, the $REMOTE_ADDR is stored is a session variable
SESSION['ip']. On each of the protected pages, a header.php is included with the
following code:
if ($SESSION['ip'] != $R
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I am using PHP with MySQL and have a timestamp field in my db table. What
> would be the easiest way to get the newest timestamp out of the db?
>
> Thanks in Advance
> Steve
Use an ORDER BY on the timestamp field in your select state
testing sorry...
Richard Lynch wrote:
>>Hi guys,
>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Any one know why the "+" (plus sign) is not passed as argument to
$argv when calling a php script from linux shell ?
if this is not a bug, how do I pass a "+" as argument ?
should I use urlencode/urldecode ?
is that any php.ini variable to turn off this behavior ?
try this and you
php is treating command line arguments as GET argument. So that means a +
is a space. Try rawurlencode.
- Original Message -
From: "Renato Lins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 1:37 PM
Subject: [PHP] command line argument vs. urlencode ?
> H
Yup, AOL's proxy servers do this.
Justin Garrett
"Joseph Szobody" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In a portion of a website, I have implemented user authentication and
management using sessions. When a user first logs in, the $REMOTE_ADDR is
stor
1 - 100 of 144 matches
Mail list logo