Is there any way in php to disable the users cache so that every time
you reload you fetch the newest version of the site?
Regards, David
Dose any one have any tips on making a very simple search engine, that
only searches in two fields of a mysql table.
I just need some pointers to know where to begin.
Thanks, David
-Original Message-
From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]]
Sent: 16. janúar 2003 13:59
To: '1LT John W. Holmes'
Subject: RE: [PHP] Problem with a for loop...
I only want the last inserted row in the mysql database, and each time
the script goes trough the loop
I have al for loop that looks something like this:
$checkCurrName = "SELECT imgName FROM $db_img ORDER BY imgName DESC";
$resultCurrName = mysql_query($checkCurrName, $db);
for ($i = 0; $i < $n; $i++){
list($currName) = mysql_fetch_row($resultCurrName);
$newName = $cu
I used mktime to make 1040601600 this stirng but I want to go back to
human readable time how should I do that?
Thanks, David
mail($to, $subject, $body, "From: $email");
how do I insert an attachment into this mail function, It would be
submitted with file field and would be called attachment.
Regards, David
I need to be able to show maybe 10 items that I query from a mysql
database on each page and Im not really sure how I can do this.
If I have lets say 30 items that match the query, I would like the page
to display this at the bottom
Previous 10 page 1 2 3 Next 10 of 30
Can any one direc
I have this code whitch I have been staring at for hours and I just
cant figure out what is going on...
it is about as simple as it gets I just need to pass a variable from
this page to it self, and that would be tha variable $nafn
I have this included code included into another page that is w
Hi I think it is possible to use sessions without having to insert
sid=$sid into every link i print out but I dont get it to work any
Ideas about what I could be doing wrong?
I have a login form on a page called login.php, and if login is ok,
then it sets $sid = session_id(); and prints out heade
Hi Im wondering if any body has done somthing like uploading a whole
directory trough webbrowser using php,
or has any Ideas how such a thing can be done, any Ideas appriciated.
Regards, David
I need to be able to create dirs, chmod and other stuff on the server,
but I get : Warning: MkDir failed (Permission denied), so
Is there any way for me to do something so I can change the user I
attept to execute those functions.
Something like exec(change user, pass).
Thanks David
I have a situation where I allow users to upload images, and I store the
names of the images in a database and the images I store in a some
folder on the server, but what I would like to do is to dynamically
create names for the images and dont ever have to worry about if this
name exists and with
And it results this:
?>&title1=ewrsdf&date1=21.11.2002&headline1=sfasd%20fsd%20sdfdff&full1=s
df%20sdf%20sdf%20asdfdline$i=%s&full$i=%s", $title, $date, $headline,
$full);} php?> , $full); } php?>
Prints out all kinds of stuff, php tags, variable names and stuff, Ive
used this script on a
This is the script Im running
And it results this:
?>&title1=ewrsdf&date1=21.11.2002&headline1=sfasd%20fsd%20sdfdff&full1=s
df%20sdf%20sdf%20asdfdline$i=%s&full$i=%s", $title, $date, $headline,
$full);} php?> , $full); } php?>
Prints out all kinds of shit, php tags, variable names and st
I need to chmod files which are owned by a nother user than nobody with
a php script runing from a browser.
lets say i have a file called image.gif and I want to
chmod(imgage.gif, 0777); and I want to run it as user: myuser with
passwd: passwd.
Can I do this?
Regards, David
I need to write a stand alone script runing on a server that checks and
updates a database every week, is this posable and if so
could some one direct me to a tutorial or to any info on doing this.
Regards, David
I have two arrays and I have complete list of numbers in one of them,
lets call it $complete[]
and another that has some values of the complete one, lets call that one
$part[], now if I want to
return an array with all the values that are in $complete[] but not in
$part[], how would I do that?
R
I have a array called $arr[], it holds integer values, I dont know how
many indexes it holds and I need to be able to find out what the hash
($arr[index])
holds the largest value, is this possable, and if so how?
Regards, David
Lets say I have a date: 29.10.2002 and I want to be able to find out
what week number it is, I know
how to find out what the current week number is: date(W) to day it
would result 44, but i need to be
able to do this dynamically ofcourse, any Ideas?
thanks, David
-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: 4. október 2002 12:23
To: [EMAIL PROTECTED]
Subject: [PHP] Re: XML dom encode
On 10/04/2002 09:14 AM, 翽 wrote:
> But I need to modify this script so that I can set the encoding of the xml document
>to ISO-8859-1 so
0){
//Create DomDocument
$doc = new_xmldoc("1.0");
//Add root note
$root = $doc->add_root("cds");
//Iterate through result set
while(list($id, $title, $artist) = mysql_fetch_row($result)){
I need to be able to disable error reporting on one page with php, I
just dont remember how to do this, if I remember correctly I could call
some function in the begining of a php doc and tell it not to disply any
errors that occur while parsing the doc.
I need to apply iso-8859-1 encodeing to the that
this function creates:
new_xmldoc(1.0).
I tried to replace the line but ofcourse the new_xmldoc function creates
object-tree of the document and I dont know I can reffrer to
the first line, or or just create the document
with the encodeing
I ran into a problem using new_xmldoc() function I just set up PHP v
4.2.3 because the 4.0.1. version resulted:
Fatal error: Call to undefined function: new_xmldoc()
and so dose the new version v.4.2.3
Any Ideas??
24 matches
Mail list logo