Hello
Ok can't refrain from giving my opinion to this one.
First of all I think separating presentation from business logic can be
achived fairly simple with SMARTY and if your template code acutally
contains business logic than you have not understood the concept of the
template engine. The
Hello
First of all NO there is no way of reversing the MySQL password function
since it is a hash not an encryption.
I think the real problem lies in your concern for security. Why hash the
password or encrypt it in a database when you are sending it over the
internet per email?
A better way
On Tuesday 01 April 2003 11:59, Sebastian wrote:
> Hmm, interesting.. i dunno why it doesn't work for me, here is a bit of the
> code, $var isn't getting the output of $id, any ideas?
Are you sure that $id contains what you think it contains?
Also could you explain the reason why your code is lai
ok i've built a class to acomplish this now
class Export_Excel {
var $command
function Export_Excel() {
$this->command = "/www_tools/apache/catdoc/bin/xls2csv";
}
function xls2csv($path,$xls_file,$short_name) {
$cmd = escapeshellcmd(
Dear All,
I'm new to the list. I'm intended to use the auto escalation
functionality in my current project which is related to helpdesk. Can
you please give me some suggestions about how to develop this. I'm using
PHP, MySQL
--
Thanks & Regards
Praveen
SoftPro Systems Ltd,
Plot #12, Software
checkdate function verifies whether the date is valid or not by taking month,
day and year as arguments.
The problem is when someone enters a three digit year by mistake (200 instead
of 2003), this function does not catch it. We are separating the year part
from the string and validating sep
On Tuesday 01 April 2003 12:28, Liam Gibbs wrote:
> Is there anything I should know about is_readable? It seems to find a file
> unreadable whether the permissions are 000 or 777.
Check that whole path leading up to the file is accessible (+x) and readable
(+r) by the webserver.
--
Jason Wong -
try the checkdate() function. i think that will do what you need.
On Monday, March 31, 2003, at 11:06 PM, Ben C. wrote:
How do I easily check to see if a MySQL formatted date is valid such
as if a
user enters
2003/02/28 would return true
2003/02/31 would return false
I have check the manual an
ok it works now
/www_tools/apache/catdoc/bin/xls2csv -q 0 test.xls > test2.csv
column1`,column2,column3
faffafs,fsafsa,fsafs
fssfa,fasfs,fasfs
fasaf,fasfs,asffaf
fafs,sfafsa,fasfas
sfafs,fssfa,fassfa
sfasfa,asfafs,fasfas
asffas,sfaaf,sfafsa
fssaf,asffsa,asffas
sfasfa,sfasaf,fasasf
then i can lo
ok guys are you ready ,
/www_tools/apache/catdoc/bin/xls2csv test.xls > test2.csv
gave me this
"column1`","column2","column3"
"faffafs","fsafsa","fsafs"
"fssfa","fasfs","fasfs"
"fasaf","fasfs","asffaf"
"fafs","sfafsa","fasfas"
"sfafs","fssfa","fassfa"
"sfasfa","asfafs","fasfas"
"asffas","sfaaf"
thanks ... lots of my customers use entourage ...
On Mon, 2003-03-31 at 20:53, Lowell Allen wrote:
> > From: Jimmy Brake <[EMAIL PROTECTED]>
> >
> > The cookies i set for people using Internet Explorer on mac (OS X or mac
> > os 8-9) are not staying alive as long as I would like(12hours) they on
> From: Jimmy Brake <[EMAIL PROTECTED]>
>
> The cookies i set for people using Internet Explorer on mac (OS X or mac
> os 8-9) are not staying alive as long as I would like(12hours) they only
> last for a few hours or sometimes even a few minutes, the time on the
> end users computers are set corr
Is there anything I should know about is_readable? It seems to find a file unreadable
whether the permissions are 000 or 777.
It's faster to use count(*), because it just has to fetch a count of the
rows (but not the rows themselves). If you're retrieving the rows
anyway, you should use mysql_num_rows,
Liam Gibbs wrote:
I'm trying to do a count(*) in SQL. Would it be faster to do a or b below?
a: just do a simple qu
How do I easily check to see if a MySQL formatted date is valid such as if a
user enters
2003/02/28 would return true
2003/02/31 would return false
I have check the manual and other resources but can't come up with anything.
---
Hmm, interesting.. i dunno why it doesn't work for me, here is a bit of the
code, $var isn't getting the output of $id, any ideas?
$var = &$id;
if( ! $forg = resizer_main("image","image_$var", blah, blah");
$org = getimagesize( "$root/$forg" );
$result = @mysql_query("INSERT INTO imag
http://www.ice.ru/~vitus/catdoc/ anyone seen this ? its pretty much wot i
needed, havent used it yet though
>= Original Message From <[EMAIL PROTECTED]> =
>Yeah... you're going to have to use COM or something similar on a windows
>server to get effective access to the server.
>
>Another op
This should work:
parse_str($example_string, $_GET);
___
Marcus Rasmussen
[EMAIL PROTECTED]
www.marcusr.dk
-
On 01-04-2003 at 03:20 Jose wrote:
-
> I might
Putting an & sign in front of the $id in the first line should do the trick:
$variable = &$id;
A short example:
$bar = 0;
$foo = &$bar;
$bar = 2;
print $foo; //prints 2
__
Marcus Rasmussen
[EMAIL PROTECTED]
www.marcusr.dk
i think it should be
line 43 : $person_data[$counter]["description"] .= $data;
wish you luck !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I might be wrong here, but with the code below I would expect $_GET to be
> filled and the script to output the next line:
>
>$example_string = 'action=kick&item=me';
>parse_str($example_string);
>var_dump($_GET);
>?>
>
> // expected output:
> //
> // array(2) { ["action"]=>
I might be wrong here, but with the code below I would expect $_GET to be
filled and the script to output the next line:
// expected output:
//
// array(2) { ["action"]=> string(4) "kick" ["item"]=> string(2) "me" }
//
Is my assumption wrong? What would be the workaround?
Thanks,
Jose
on 01/04/03 8:01 AM, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> "GPL enforces many restrictions on what can and cannot be done with the
> licensed
> code."
The point is, PHP is not released under GPL any more -- it's under QPL, so
this thread hardly seems relevant to any PHP list -- just my
on 01/04/03 11:48 AM, daniel ([EMAIL PROTECTED]) wrote:
> hi guys i am trying to work out how to dynamically be able to upload an excel
> file , export it to csv to be able to import into mysql , is there any
> examples out there ? fopen gave me binary code :|
also see fgetscsv()
Justin
--
PH
Hi!
The cookies i set for people using Internet Explorer on mac (OS X or mac
os 8-9) are not staying alive as long as I would like(12hours) they only
last for a few hours or sometimes even a few minutes, the time on the
end users computers are set correctly. IE on windows is fine and Mozilla
and o
Yeah... you're going to have to use COM or something similar on a windows
server to get effective access to the server.
Another option is dynamically adding at as an odbc datasource and querying
it. Again, this will only work on a windows server...
It's all much easier if you can convince users t
Dear Experts,
Seems like I can't use any of the followings even
though I'm running PHP 4.3.2-RC1:
* imagecreatefromjpeg
* imagecopy
* etc.
Am I right the gd-2.x has already integrated with
PHP 4.3.2-RC1 and the gd also has the jpeg integrated?
Or, should do I have to bring in the jpeg-6x
Hi Sebastian,
> $variable = $id;
> // some other stuff
> @mysql_query here
> $id = mysql_insert_id();
>
> How do I get $id from insert_id() to pass to $variable
> above? Hard to explain the situation i am in, but the
> query has to be below $variable
::blink::
Perhaps something like:
hello all,
$variable = $id;
// some other stuff
@mysql_query here
$id = mysql_insert_id();
to the question: How do I get $id from insert_id() to pass to $variable
above? Hard to explain the situation i am in, but the query has to be below
$variable, is it possible to 'globalize' $id so
hi guys i am trying to work out how to dynamically be able to upload an excel
file , export it to csv to be able to import into mysql , is there any
examples out there ? fopen gave me binary code :|
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
Assuming Month_Start is stored in MySQL date format (-mm-dd) you could
Select blah blah From blah Order By DATE_FORMAT(Month_Start,%m) ASC
The %m will pad on the zeroes.
http://www.mysql.com/doc/en/Date_and_time_functions.html
- Original Message -
From: "Tyler Durdin" <[EMAIL PROTECTE
Right, defaults to /usr/local/ for the source versions of MySQL, in that
case, use
--with-mysql=/usr/local
- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: "Ryan Vennell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 5:00 PM
S
You should tell us
1. What happens
2. What you expected to happen that didn't happen.
As Kevin points out your enctype will be wrong but if that doesn't fix it
then I'd guess at the Apache 2. But tell us what the output is anyway.
- Original Message -
From: "Adrian Greeman" <[EMAIL PROTEC
Sorry about that. i did use /path/to/mysql. i wasnt paying attention when writing my
pervious post.
-Ryan
>>> Jon Haworth<[EMAIL PROTECTED]> 03/31/03 04:00PM >>>
Hi Ryan,
> when configuring php i use --with-mysql and it configures just
> fine. i've even added an =/path/to/php after it to no
- Original Message -
From: "Adrian Greeman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 3:04 PM
Subject: [PHP] Files uploads problem
> I am a learner in PHP - I have been using Larry Ullman's Peachpit
beginners
> book which I have found useful to take me thro
You should be using if(!isset($HTTP_GET_VARS['id'])){ Otherwise, it
generates an eror when it simply doesn't exist. "" and nothing (an
unset variable) are NOT the same.
Tim Haskins wrote:
below is what I have currently
its empty
Now when I change the == to <> I receive the following error:
On 31-Mar-2003 Tim Haskins wrote:
> My bad, I actually meant that the "nothing" was like, if the pr_ID in the
> url is empty then show the following text.
>
if (empty($HTTP_GET_VARS["pr_ID"]))
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest b
I am a learner in PHP - I have been using Larry Ullman's Peachpit beginners
book which I have found useful to take me through the basics.
But the examples were written before the general applicaton of the new
$_POST, $_GET and similar arrays. It has been valuable learning to change
the code for th
Hi,
Trying to install PHP 4.3.1 but getting the following error message:
"configure error: cURL version 7.9.8 or later is required to compile php
with cURL support"
I have curl installed; when I issue a "curl -V", the version number reported
is 7.10.3
Can anyone tell me what the install is look
Hi Ryan,
> when configuring php i use --with-mysql and it configures just
> fine. i've even added an =/path/to/php after it to no avail.
Try --with-mysql=/path/to/mysql instead of --with-mysql=/path/to/php.
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
sorry worked it out i had stderr in the escape string
-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 7:39 AM
To: Php-General
Subject: [PHP] problems with curl + exec
hi guys , this is a wierd problem , for some reason wget is fine to return
std
in addition to my last response, if you go to http://www.php.net/manual/en/ you can
find more than you ever wanted to know about php. just use the search at the top.
>>> Tim Haskins<[EMAIL PROTECTED]> 03/31/03 01:56PM >>>
I'm used to asp and not php, but what would the code be for and if stat
ok i've reinstalled phpseveral times now, reinstalled mysql, and even reinstalled
apache once but i am still getting this same problem.
when configuring php i use --with-mysql and it configures just fine. i've even added
an =/path/to/php after it to no avail.
i keep getting this on pages t
hi guys , this is a wierd problem , for some reason wget is fine to return
stderr to stdoutput , i'll get an exact error in key 4 , ie OK or HTTP 404 ,
but with curl it is not returning the exact errorode or outputting an error
?
here are my instructions although for a 404 instead of 22 i am gettin
if ($HTTP_GET_VARS["pr_ID"] = "nothing" ) {
}
else if ($HTTP_GET_VARS["pr_ID"] = "something") {
}
else {
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It is faster to do a count(*)
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 1:31 PM
To: php list
Subject: [PHP] Question on response time, SQL vs. PHP
I'm trying to do a count(*) in SQL. Would it be faster to do a or b below?
a: just do a sim
Just change the order and do the "search and replace" on "Blueberry" before doing it
on "Blue."
Ei:
str_replace("Blueberry","Strawberry",$paragraph);
str_replace("Blue","Red",$paragraph);
or:
str_replace(array("Blueberry", "Blue"), array("Strawberry", "Red"), $paragraph);
You could replace the longer one, "Blueberry", first. Then, the only
remaining occurrences of "Blue" will be ones that you really want.
Kirk
> I am performing a str_replace() on a large string, and
> everything works
> fine, except that two of the elements I'm searching for (and
> replacing)
- Original Message -
From: "René Fournier" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 1:52 PM
Subject: [PHP] str_replace() problem
> I am performing a str_replace() on a large string, and everything works
> fine, except that two of the elements I'm sea
I'm trying to do a count(*) in SQL. Would it be faster to do a or b below?
a: just do a simple query, and use mysql_num_rows() to return the row count; or
b: do the count(*) and use mysql_fetch_row() to return the result.
I guess it would have to do more with SQL response time (is it faster to gr
Rasmus, I hardly call it a "school" paper. I haven't done one of them in 25
years. But if you are not the one to ask, nor is the "general" list not the
place to ask, who do I email or where do I post to find out more about your
statement at: http://www.php.net/license/
"GPL enforces many restri
wow thanks ! i've been looking for some example like this for a very long
time , does it mean that the templates becomes similar to the template block
?
-Original Message-
From: Pete James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [P
--- Tim Haskins <[EMAIL PROTECTED]> wrote:
> Now when I change the == to <> I receive the following error:
>
> Notice: Undefined index: id in c:\inetpub\wwwroot\_\users.php on line 103
>
> Why would that not work - In asp it does, but I can't get it workin in php.
Are you kidding? You do realize
I am performing a str_replace() on a large string, and everything works
fine, except that two of the elements I'm searching for (and replacing)
have the same first letters. To keep it the issue clear, here's a
simple example of what I'm talking about:
Blue
Blueberry
Now, if I use:
str_replace(
Because not equal is !=, not <>
I think I posted a link to the documentation a few eamils ago in this
thread. Check it out, these are all really easy syntax questions, so you'll
save yourself much hair pulling by just reading the section on basic syntax.
-Original Message-
From: Tim Hask
below is what I have currently
its empty
Now when I change the == to <> I receive the following error:
Notice: Undefined index: id in c:\inetpub\wwwroot\_\users.php on line 103
Why would that not work - In asp it does, but I can't get it workin in php.
If that doesn't make sense, I would like
Is there some reason you want to access it through com?
I'm assuming that you've added the access db as an odbc data source? I'm not
sure, but it seems like you might be using the wrong syntax.
You might want to check out this:
http://www.php.net/manual/en/ref.odbc.php
... or... this, which is a
I've got one here --
http://jonroig.com/modules.php?op=modload&name=News&file=article&sid=55
(Watch out, url may wrap wrong)
That is, if you're just looking to export data to excel...
-- jon
-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 2
I'm pretty sure that if it was in a form but left blank isset() won't work
because it is set in the globals, it is just empty. I've never used
empty(), so I cannot comment on its behavior.
-Original Message-
From: Pete James [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 12:17 PM
Also, take a look at isset() and empty()
http://php.net/empty
http://php.net/isset
Jennifer Goodie wrote:
so change it to ""
-Original Message-
From: Tim Haskins [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 12:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] if statment
My bad, I
Wow, that's weird- I had just tried it and that didn't work, so I thought it
might be some special php thing goin on- thanks for your help!
--
Tim Haskins
"Jennifer Goodie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> so change it to ""
>
> -Original Message-
> From: Ti
if ( !isset($HTTP_GET_VARS["pr_ID"]) OR empty($HTTP_GET_VARS["pr_ID"]) )
HTH
R'twick
"Tim Haskins" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm used to asp and not php, but what would the code be for and if
statement
> that was like:
>
> if $HTTP_GET_VARS["pr_ID"] = "nothing"
so change it to ""
-Original Message-
From: Tim Haskins [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 12:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] if statment
My bad, I actually meant that the "nothing" was like, if the pr_ID in the
url is empty then show the following text
My bad, I actually meant that the "nothing" was like, if the pr_ID in the
url is empty then show the following text.
--
Tim Haskins
"Jennifer Goodie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> if( $HTTP_GET_VARS["pr_ID"] == "nothing"){
> echo "there are no products";
> }
> ht
Why do you need to do this in the first place? If you're trying to
create dynamic CSS, the .php extension will be fine as long as you send
the proper content-type header.
Liam Gibbs wrote:
Is there any way of making PHP parse files with a CSS extension?
--
The above message is encrypted wi
if( $HTTP_GET_VARS["pr_ID"] == "nothing"){
echo "there are no products";
}
http://www.php.net/manual/en/control-structures.php
http://www.php.net/manual/en/
-Original Message-
From: Tim Haskins [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 11:56 AM
To: [EMAIL PROTECTED]
I'm used to asp and not php, but what would the code be for and if statement
that was like:
if $HTTP_GET_VARS["pr_ID"] = "nothing" then
"there are no products"
end if
Also does anyone know a great resource that lists different examples of php
variables, if statements, and so on?
Thanks so much!
php-general Digest 31 Mar 2003 19:42:36 - Issue 1971
Topics (messages 141681 through 141723):
Dynamic include_path
141681 by: Derek J. Belrose
exec different result from command line
141682 by: Jan-Hendrik
[Newbie] Password()
141683 by: Bobby Rahman
141684 b
Thanks Jason and Marek,
I was thinking to difficult, Thanks for the quick responses.
Best regards,
Davy Obdam
> -Oorspronkelijk bericht-
> Van: Jason Wong [mailto:[EMAIL PROTECTED]
> Verzonden: maandag 31 maart 2003 16:36
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: [PHP] date() and mktim
I have a db with events in it. i would like to pull the events out via php,
but i would like them to be ordered by month number (1-12). When I do this
(Select blah blah From blah Order By Month_Start ASC) it orders the months
by number, but it starts with october (month 10) I am pretty sure it i
Hey guys,
How can I enable php to work with mcrypt functions?
I´m using debian woody linux. I´ve had installed libmcrypt already, from
debian cds. But I dont know how to make php understands this lib.
thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.
If the includes are within the website, using
$_SERVER[DOCUMENT_ROOT]/pathtofile/file is a good way to go.
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 2:10 PM
To: 'Greg Macek'; [EMAIL PROTECTED]
Subject: RE: [PHP] require/include from a
--- John Taylor-Johnston <[EMAIL PROTECTED]> wrote:
> Rasmus: I understand there are differences between GNU.org & OpenSource.org
> but I didn't mean to offend anyone. Sorry Rasmus, but I was surprised you
> would answer that way. Is this a touchy subject? The "General" list should be
> the correct
>I tend to get more out of the users comments than the actual manual..
It is possible that is because you don't want to put the time into figuring
things out for yourself. It's a lot easier to post a ton of RTFM questions
than to actually read the manual or research your question. I seem to
reca
- Original Message -
From: "Vinesh Hansjee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 6:55 AM
Subject: [PHP] Date Problem - Last Day Of Month
> Hi there, can anyone tell me how to fix my code so that on the last day of
> the month, my code doesn't repeat th
Hi,
> > This is a list for questions about PHP. Look in the titlebar of your
> > browser when you go to www.php.net
> He was asking *where* PHP stands (regarding licenses), not *what* PHP
> stands for. Maybe PHP FAQ should have something about licenses.
Indeed, I did find somehting ... in the li
change
for ($i=1; $i<=12; $i++)
to
for ($i=1; $i<12; $i++)
--- Vinesh Hansjee <[EMAIL PROTECTED]> wrote:
> Hi there, can anyone tell me how to fix my code so
> that on the last day of
> the month, my code doesn't repeat the months...
> What the code suppose to do is, makes a drop down
> box fro
IMO, Smarty is just an abstraction of PHP. Smarty templates are HTML
templates, but they still contain their own application logic for
looping, etc, and so are still not a real separation (or are *dirty*, as
'rush' calls it).
XML+HTML+XSLT (or Template Tamer from what I can gather) take it the
Liam Gibbs wrote:
Yeah... the same way you made your web server parse files with a .php
extension. Just repeat the same procedure for a .css extension.
if you have cpanel you can add the extension from there.
Yeah, I need to find out where to add the CSS extension to my list of
parsable files. I
Hi,
>From my point of view, XML+XSLT increases complexity
with very less number of advantages.
Fundamental of using XML+XSLT with PHP is to seperate
HTML code from the PHP and database code. But in the
following article, it shows XSL stylesheet comes with
full of logic. Do we really need this ap
> Hi there, can anyone tell me how to fix my code so that on the last day of
> the month, my code doesn't repeat the months...
I'm not sure what you mean by this, but I can be a moron on this list
sometimes and the clear answer usually comes to me about 2 seconds after I
hit the send button. Do yo
Hi there, can anyone tell me how to fix my code so that on the last day of
the month, my code doesn't repeat the months...
What the code suppose to do is, makes a drop down box from which you can
select the month, and if its the current month
the box is already selected.
" .
date("F",mktime(0,0,
"Pete James" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This xml+html+xslt paradigm provides great separation, especially when
> viewed in light of the traditional xslt=html+code method. I've used it
> with good success.
This does relieve the problem of dirty templates, but wit
"Pete James" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This xml+html+xslt paradigm provides great separation, especially when
> viewed in light of the traditional xslt=html+code method. I've used it
> with good success.
This does relieve the problem of dirty templates, but wit
Crystal Decisions provided a resolution to the problem. If the
SelectPrinter method is called, the PaperOrientation method must also be
set.
So, to access Crystal Reports from PHP, the following code is used:
$crapp = new COM("CrystalDesignRunTime.Application");
$creport = $crapp->OpenReport("
This xml+html+xslt paradigm provides great separation, especially when
viewed in light of the traditional xslt=html+code method. I've used it
with good success.
http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html
HTH.
Pete.
--
http://www.shaman.ca/pusher
A news aggregator with email notif
Hello,
Is there a way to know the memory that was used to execute a php page ?
Thanks !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$f1 is the temporary file namen your server, you need to use $f1_name,
or even better $_FILES['f1']['name']
Tomás Liendo wrote:
Hello people, I have the following strange problem:
I designed a form with Front Page XP, and with PHP I save the fields in a
MySQL data base. All fields work perfect,
> Yeah... the same way you made your web server parse files with a .php
> extension. Just repeat the same procedure for a .css extension.
> if you have cpanel you can add the extension from there.
Yeah, I need to find out where to add the CSS extension to my list of
parsable files. I tried just s
Hi,
I have this problem retrieving data from a mssql table with PHP.
I have this in my mssql table column:
Globe and Mail data are retrieved and processed for CustomSearch.
On the R30, the crontab entry:
0 4 * * 1-6 /usr1/applic/ntgm/ntgm_get.pl
will run the Perl script at 4 a.m. everyday to
That's what I thought too, but it's not happening...fopen() is simply
returning an error.
--Dave
On Monday, March 31, 2003, at 09:35 AM, [EMAIL PROTECTED]
wrote:
Assuming you are retrieving this file via http/https then it's really
the remote server that will enforce the access control in wha
Hello people, I have the following strange problem:
I designed a form with Front Page XP, and with PHP I save the fields in a
MySQL data base. All fields work perfect, except one. This is a control to
upload files:
The problem is that in the data base the value selected for the user is not
record
Thank you, your suggestions worked perfectly!
~Scott
Don Read wrote:
On 30-Mar-2003 Scott Thompson wrote:
Hi,
I am using the following code to query a database and build an HTML
table.
/* Printing results in HTML */
print "\n";
while ($line = mysql_fetch_array($result, MYSQL_ASS
Im having big problems -
I have a script that runs on over 250 Servers, all are running NT4.
here is the script:
[php]
function last_sunday() {
return gmdate("Y-m-d", strtotime("Last Sunday"));
}
echo "Last Sunday is returned as: ".last_sunday();
[/php]
Some servers have 'automatically a
On Monday 31 March 2003 22:07, Davy Obdam wrote:
> I would like to select news from my database bases on week/year and
> month/year.
> How can i do this.. I would like to pass two arguments in the query
> string, like news.php?week=14&year=2003 or news.php?month=3&year=2003.
> Can anybody help me.
Check out mysql manual, section 6.3.4 - Date and Time Functions, example
$condition='';
if($GET['week']) $condition .= "WEEK(date)='$_GET[week]' AND ";
if($GET['year']) $condition .= "YEAR(date)='$_GET[week]' AND ";
and so on
then use the condition:
$sql = "SELECT * FROM news WHERE $condition 1";
You need to use socket functions and check the response headers
David Feldman wrote:
I have a script that needs to open a remote file on another Web
server, which may or may not be protected (for example, by an htaccess
file). What would be the best way to check if it's protected, and if
so, p
I have a script that needs to open a remote file on another Web server,
which may or may not be protected (for example, by an htaccess file).
What would be the best way to check if it's protected, and if so,
prompt the user for username and password to open it?
Thanks.
--Dave
--
PHP General M
Hi people,
I would like to select news from my database bases on week/year and
month/year.
How can i do this.. I would like to pass two arguments in the query
string, like news.php?week=14&year=2003 or news.php?month=3&year=2003.
Can anybody help me.. Thanks in advance. I have been looking at the
$string = str_replace("\n",'', str_replace("\r",'', $string));
Diana Castillo wrote:
How can I remove all line feeds from a document?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 108 matches
Mail list logo