if include doesn't work or isn't an optimal solution, you can also use
fopen: this will make another request to the webserver, like a client
request, but sometimes is useful.
write: $fp = fopen("http://www.site.com/script.php?var=string..., this
should work.
Federico
[EMA
Are you using move_uploaded_file() to move the file into place?
On Thu, 6 Sep 2001, Justin French wrote:
> Hi all,
>
>
> My understanding of the whole file uploading thing is not fantastic, and
> i'm unsure where to go next with this one.
>
> I have a file-upload script which works fine on my te
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%$Avar1%' AND
AdminContact LIKE '%$Avar2%'";
try this. Avar1/2 needs to be replaced by your var that u use in your html
form
"Devon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $Query = "SELECT *
Hi all,
My understanding of the whole file uploading thing is not fantastic, and
i'm unsure where to go next with this one.
I have a file-upload script which works fine on my test server
(FreeBSD/PHP4/MySQL/Apache)... when I upload the script to my host,
change the config as needed (different d
$Query = "SELECT * FROM enet WHERE TechContact LIKE '%' AND AdminContact
LIKE '%'";
This query simply prints out my entire tables, is there a way using PHP so I
can make the '%' a user input so they can search the table under those
fields.
Cheers
--
PHP General Mailing List (http://www.php
Which is faster (and/or smarter), using function mail() or doing it by
popen("/blah/sendmail")?
Niklas
Hi,
I am trying to write a dynamic help module based on a mysql database. I
am using Javascript and PHP to do this.
This is part of my script (both java and php)
10-Jul-97
36965 ---> 15-Mar-01
36356 ---> 15-Jul-99
Can anyone tell me what date format this is, or how
> But is there a way to make one of my root scripts run by sending it a
> command to do so from the DSO version of PHP like with system command
> or something like that. Or some roundabout way to make it think root is
> asking the script run.
>
> I hope you understand what I am asking.
There poss
A new version of the free PHP Accelerator for Linux is now available at
www.php-accelerator.co.uk
This release offers a substantial performance improvement over the first
'proof of concept' version, and initial performance tests show that the
Accelerator now delivers approximately the same per
> thanks, another question is what does the ? means in this line?
>From the PHP manual:
Another conditional operator is the "?:" (or ternary) operator, which
operates as in C and many other languages.
(expr1) ? (expr2) : (expr3);
This expression evaluates to expr2 if expr1 evaluates to TRUE, a
Okay, this has gone over my head. I am running Apache 1.3.19, with PHP 4.0.5
and mySQL 3.23.37. The Apache/PHP server is on a Windows development box,
and the mySQL is on a remote box. The basic function of the script is to
first present a form where a user can select records that match a date, an
I have two versions of php running on my site one as a DSO with Apache
and one as a cgi for command line scripting.
I have scripts that run from a crontab that run at root.
Now I know I can not run a script at root from PHP that is running as
A dso with Apache.
But is there a way to make one of
Brian
Thanks for the response, but unless I am misunderstanding, I don't think
this is what I am after.
Just to restate, I want to set up a module as a static data cache. The main
function $my_cache will have a static array $data. There will be a set of
helper functions to set values into $data,
I'm trying to learn PHP right now for a subscription-based site that
requires features such as user authentication and e-commerce (with a
mySQL database) I'm using Dreamweaver 4 on a Mac running OS 9 to build
the site. I'm wondering if the learning curve would be less steep if I
upgraded to Ul
You wrote:
> >Sure it is. Lists or list context. () is not that hard to
> determine
> >what it means. At least, not nearly as hard as you make it out to
> >be for any moderately-experienced programmer.
>
> So it's easy to look it up is if you already know what it does? I
> think the majority of
In following formular,
exp ? statement1 : statement2
if exp is true, statement1 is excuted, else statement2 is excuted.
So it is equivalent to:
if( exp ) {
statement1
} else {
statement2
}
If you still want to ask what "?" means, I think it can be "if exp is true".
Alex
- Original
Hi geeks,
I want to give messenger service to my users. Can i do this ?
I'm running slack linux as server with php4 and mysql.
I so where can i get the required src code both for client (Vb recommended)
and server programs.
/sagar
>I can tell you that in general, companies in Europe appears to be more
>open to open-source solutions much more than ones in the US. Of course,
>Europe is comprised of lots of different countries, and each country has
>lots of different companies, so your mileage may vary.
In The Netherland
thanks, another question is what does the ? means in this line?
Alex Shi wrote:
>
> strstr($str, $needle) returns a substr start from first occurance of $needle
> in $str to the end of $str.
>
> strstr($value,"VLD:") != "" ? $VLD_CNDTNS[] = strtr($value,"VLD:","") :
> $SBMT_CNDTNS[] = $value;
On Wed, 5 Sep 2001 14:36:59 -0400, Ryan Fischer ([EMAIL PROTECTED])
wrote:
>> > You wrote:
>> > > ($var1, $var2) is magic. I hate magic.
>> >
>> > It's not magic. It's just simpler.
>> >
>> > > What do you look up in the Perl
>> > > manual when you hit syntax like that?
>> >
>> > http://www.perl
I believe your problem is due to ambiguous type casting. Your if statement
tests a DOUBLE against a STRING. Try:
$x_distance=20+($year-($current_year-9))*20;
$high_distance=420-round(log($high[$year])*75,0);
$low_distance=420-round(log($low[$year])*75,0);
settype($high_di
@ 4:13:46 PM on 9/5/01, Webmaster wrote:
> Sorry, I forget this is my previous message, I'm running in Red Hat
> Linux 6.0.
Been a long time for me and RedHat/RPM, but..
You need to find the MySQL RPM with the same version that you
currently have installed, but it'll be labeled as 'MySQL client
strstr($str, $needle) returns a substr start from first occurance of $needle
in $str to the end of $str.
strstr($value,"VLD:") != "" ? $VLD_CNDTNS[] = strtr($value,"VLD:","") :
$SBMT_CNDTNS[] = $value;
equivalent to:
if( strstr($value, "VLD:") !="" ) {
$VLD_CNDTNS[] = strtr($value,"VLD:",""
Chris,
Thank you.. that along with one other change solved it... I am just doing
additional test emails now! It look like the editor I use replaced some of the
" and > with html code somehow.
Does anyone have any suggestions (or links to) for a good php editor? I use MS
Interdev for the A
thanx
I look a little futher next time!
erik
"Ouster" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think the best way is to use regular expressions.
>
> Erik <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]
> > I'm develloping a mail application,
Seb,
If you are still stuck... try http://hosts.php.net/
It's a searchable directory for ISPs that support php! It looks like it is
companies that have chosen to list themselves, but the search criteria is
excellent! Pick what specs you need!
Also try http://www.php.net/links.php at the bo
I mean, is there in PHP support for Sybase Adaptive Server Anywhere, any
version, like for MySQL and some other databases?
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
Yes, you are correct, I made a mistake when writing the code block for the
e-mail.
- Original Message -
From: Seb Frost <[EMAIL PROTECTED]>
To: Hugh Danaher <[EMAIL PROTECTED]>; Php-General
<[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 12:54 PM
Subject: RE: [PHP] negative infinit
I think the best way is to use regular expressions.
Erik <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]
> I'm develloping a mail application, wich sends single part e-mail with
PHP.
> for users who want the text version, I want to strip the HTML version and
> send what's left (plain text)
Hi erik,
@ 3:58:31 PM on 9/5/01, erik wrote:
> I'm develloping a mail application, wich sends single part e-mail with PHP.
> for users who want the text version, I want to strip the HTML version and
> send what's left (plain text) to them.
> Can anybody tell me the best way to do this, I mean s
Hi Geoff,
@ 3:30:24 PM on 9/5/01, Geoff Caplan wrote:
> I think I am being dumb but I just can't figure out a way to do this:
> I have a static array inside a function, and I want caller to be able to
> set/get values in the array.
> Something like this:
> data_store( "set", "my_array['key1'
Unfortunately it's only wrong typing. That problem's here to stay.
- Original Message -
From: Seb Frost <[EMAIL PROTECTED]>
To: Ouster <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 9:38 PM
Subject: RE: [PHP] 304 Not Modified
> You don't think your missing "
I'm develloping a mail application, wich sends single part e-mail with PHP.
for users who want the text version, I want to strip the HTML version and
send what's left (plain text) to them.
Can anybody tell me the best way to do this, I mean stripping all teh HTML
tages with PHP.
Thanx
Erik
-
@ 3:55:04 PM on 9/5/01, Webmaster wrote:
> Thanks for your answer, but I can't find libmysqlclient.so.6 in my
> server, is not in MySQL lib directory or PHP Lib directory, How I
> can do for install or copy this lib?? Do I need reinstall MySQL??
> what use in ./configure line???.
Try running upd
hi everyone
i am following this page to add curl to php
http://curl.haxx.se/libcurl/php/install.html
i installed curl and knows it works (curl --version) but trying to
configure php with curl but don't know what this means for "Build PHP
-- Step 1" mean? i did a phpinfo() and got the configure
if ($high_distance=="INF")
{
unset($high_distance);
}
if ($low_distance=="INF")
{
unset($high_distance);
}
Shouldn't this be:
if ($high_distance=="INF")
{
unset($high_distance);
}
if ($low_distance=="INF")
{
unset($low_distance);
}
- seb
---
Outgoing ma
HELP!
I have been trying variations of the code posted below with little success. The log()
function generates a -INF statement when trying to calculate the log of zero or the
log of an empty value in the associative array. With the "IF then unset() "
statements in place, the total contents
Ouster wrote:
>header("304 Not Modified);
>
Looking at the docs (I know, silly, eh?), the correct form of this
appears to be:
header ("HTTP/1.0 304 Not Modified");
In addition to the missing " as was already pointed out...
Chris Hobbs
Silver Valley Unified School District
--
PHP Gen
@ 6:42:33 AM on 9/5/01, * R&zE: wrote:
> This regex gets you everything between all and tags. Case
> insensitive, including embedded HTML-tags etc. Try it and let me
> know if this is what you need.
> --- PHP code ---
> preg_match_all ("/]*>(.+)<\/a>/imU", $StringToSearch, $matches);
> print_r
You don't think your missing " might have soemthing to do with it? Or maybe
it's not that simple at all.
- seb
-Original Message-
From: Ouster [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2001 20:23
To: [EMAIL PROTECTED]
Subject: [PHP] 304 Not Modified
I'm making a sort of cache
strstr($value,"VLD:") != "" ? $VLD_CNDTNS[] = strtr($value,"VLD:","") :
$SBMT_CNDTNS[] = $value;
--
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 PROTE
Hi folks
I think I am being dumb but I just can't figure out a way to do this:
I have a static array inside a function, and I want caller to be able to
set/get values in the array.
Something like this:
I have been mucking about with eval( ) and with variable variables, but
can't get it to wor
Bad design? configuration problems?
You will have better luck asking in the mailing lists,
not here.
Your note will be removed
--- [EMAIL PROTECTED] wrote:
> while reading alot about security here I'm noticed a
> couple of bugs on sites with getting into the files
> without actually loging in
George,
You do not need to have multiple tiny template files. We create a website
in Dreamweaver using builtin "library items". This website has many pages,
sharing the same header and footer library item. Within the html page we
use only two template constructs:
{VARIABLE_NAME}
and:
tha
@ 2:52:49 PM on 9/5/01, Webmaster wrote:
> [root@corotu docs]# ./phorummail
> php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared
> object file: No such file or directory
> What can I do for execute this script properly, What I doing it wrong?
> I am running Apache 1
I'm making a sort of cache system. I fell to this problem: I leave a cookie
with the timestamp of the last access, and when the user reconnect, I
compare the timestamp of the last change with the timestamp sent me with the
cookie. Then I leave a new cookie.
So:
if($last_modified <= $last_access)
- Original Message -
From: "Ryan Fischer" <[EMAIL PROTECTED]>
To: "Mark Maggelet" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 1:35 PM
Subject: Re: [PHP] Assign multiple variables from mysql_fetch_row() call
> You wrote:
> > >I use list context a lot in PH
Hi people:
I trying to execute Phorummail script (put email into a web message board) from my
shell, but I get this error message.
[root@corotu docs]# ./phorummail
php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared
object file: No such file or directory
What can I
There is a ton of great stuff online as someone else mentioned. You might
also want to check out phpbuilder.com, and zend.com for their various
articles and tutorials.
As for books, depending on what you're after, I highly recommend:
"PHP and MySQL Web Development" by Welling and Thomson. This
> > You wrote:
> > > ($var1, $var2) is magic. I hate magic.
> >
> > It's not magic. It's just simpler.
> >
> > > What do you look up in the Perl
> > > manual when you hit syntax like that?
> >
> > http://www.perldoc.com/perl5.6/pod/perldata.html
>
> I said "what" not "where". I still maintain t
You wrote:
> >I use list context a lot in PHP and Perl, and I prefer Perl's way of
> >doing it *because* it allows you to be as verbose or terse as you
> >like.
> >PHP, unfortunately, doesn't give you that freedom.
>
> Hmm... the freedom to write unreadable, unmaintainable code, yes this
> is a ve
> -Original Message-
> From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 3:36 PM
> To: Renze Munnik
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] what will be the output for this pgm?
>
>
> what will be the output for the following program?
>
> >>
http://www.php.net/books.php
hihi
t.
- Original Message -
From: "Nikola Veber" <[EMAIL PROTECTED]>
To: "php forum" <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 19:36
Subject: [PHP] book help
> I am a begginer in php and I have bought the Sterling
> Huges' "php developer's co
Robert,
Thanks for the suggestions, but...
a) I do want to do this and I do think I can.
The big problem is not the templating, php is pretty damn good at that already.
It's handling the header/footer html which appears on every page.
On the one hand we only want one master copy so there's onl
hi all,
any ideas why this does not work? its just a simple script to test
multi-dimensional arrays. the count value should increment...should it not?
many thanks in advance!
";
reset ($HTTP_SESSION_VARS);
while (list($key, $value) = each ($HTTP_SESSION_VARS)) {
echo "Key: $ke
since it was the only book you could
find, that makes it a good choice by
default, if you ask me. you can also
visit www.devshed.com for some great
tutorials.
Regards,
Jerry Lake
Interface Engineering Technician
-Original Message-
From: Nikola Veber [mailto:[EMAIL PROTECTED]]
Sent: W
I am a begginer in php and I have bought the Sterling
Huges' "php developer's cookbook" since it was the only
book I could find. Is it a good choise ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
> I have a foreach loop running in a function. During the foreach loop, if a
> variable matches another variable, it does "return $variable". My question
> is this: does the function automatically stop running when the variable is
> returned?
Yes
--
PHP General Mailing List (http://www.php.net
On Wednesday 05 September 2001 17:17, Joseph Bannon wrote:
> I have a foreach loop running in a function. During the foreach loop, if a
> variable matches another variable, it does "return $variable". My question
> is this: does the function automatically stop running when the variable is
> return
The javascript would have to call a PHP script on the server instead of
an ASP script.
It's nothing specific to MS stuff.
MailingLists wrote:
> I don't know if it's IIS or ASP that handles this, but there's a beast
> called a remote scripting object. It combines JavaScript and ASP to
> c
I have a foreach loop running in a function. During the foreach loop, if a
variable matches another variable, it does "return $variable". My question
is this: does the function automatically stop running when the variable is
returned?
J
--
PHP General Mailing List (http://www.ph
On Wednesday 05 September 2001 16:19, sagar wrote:
> hi,
>
> can i connect to php from a vb appliation.
> should this be asked elsewhere (if so pl
> let me know)
Uhm, I don't quite understand what you mean there. Anyhow, accessing PHP from
VB seems kindof, like a nono, but perhaps you mean acces
php can act as a server in many respects, it can handle sockets, some
streams etc. so the the answer is yes, you can connect to it from
anything. (for instance I'm currently building a plugin to Lightwave that
connects to php)... programs commonly use http to connect (it's simple then
designin
a-ha.
that works.
wonder why it worked without it?
oh well, it works now.
thanks a million!
/ d
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need a call to pdf_open_file($pdf) before you can start doing
> anything.
>
> -Rasmus
>
> O
hi,
can i connect to php from a vb appliation.
should this be asked elsewhere (if so pl
let me know)
/sagar
Hi geeks,
I want to give messenger service to my users. Can i do this ?
I'm running slack linux as server with php4 and mysql.
I so where can i get the required src code both for client (Vb recommended)
and server programs.
/sagar
You need a call to pdf_open_file($pdf) before you can start doing
anything.
-Rasmus
On Wed, 5 Sep 2001, Daniel Andersson wrote:
> hello
>
> had everything working and fine.
> when i went back to the page today, nothing worked.
>
> i can (almost) bet my sack on that i haven't changed any code.
>
hello
had everything working and fine.
when i went back to the page today, nothing worked.
i can (almost) bet my sack on that i haven't changed any code.
Fatal error: PDFlib error: function 'PDF_set_info' must not be called in
'object' scope
is the error i get.
the code is
$pdf = pdf_new();
use zerofill for the column when you create the table!
--- "Dallas K." <[EMAIL PROTECTED]> wrote:
> I am having the problem that Mysql is truncating the
> zeros from both the int and char fields when I try to
> insert How can I fix this.
>
> example:
>
> 0123 in PHP = 123 in mysql
> 3210
1 - 100 of 160 matches
Mail list logo