Hi,
It's a "C Like Syntax"
(condition)?true:false;
is like :
if (condition) true
else false
regards.
P.E. Baroiller
"Jeff McKeon" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
I've just picked up a more advanced book on PHP and it has a lot of
example code in it. I und
Hi,
I don't understand what you really want to do...
what do you mean by "image button" ?
an or ??
On my opinion, you don't need php to check what button is pressed... All
this can be done with
a simple javascript function ... or with tag.
After this, send a value to your phpscript like "presse
Hi,
you can do something like this :
$imgdata = addslashes(imagejpeg($imnew)); // For JPG file.
$query="INSERT INTO your_table (data) value ('$imgdata')";
$result = @mysql_query($query);
I haven't try but it may work...
Regards.
P.E. Baroiller
"Mohammadreza Hassanrezaeian" <[EMAIL PROTECTE
Hi,
it's a common error...
I think you have an unclosed string before in your script...
example :
$data='the data;
$sDate = date('Y-m-d',time());
this code will produce an error on ligne with $sDate only becose the line
with $data is unclosed ( missing the last ' )..
Take a look at your e
Hi,
$HTTP_RAW_POST_DATA is an array...
with echo you'll only get "array"..
To get something into $HTTP_RAW_POST_DATA, you need to "submit" your form
before...
Your script will only display something if you post the form before.
Regards,
P.E. Baroiller
"John W. Holmes" <[EMAIL PROTECTED]> a écr
Hi,
Doest your ftp account have sufficient access rights for deleting theses
files ?
Is your apache user is "nobody" , the chmod will not work ( take a look at
your error log file), so,
only nobody or root will able to remove these entries..
Regards,
P.E. Baroiller
"Stephen" <[EMAIL PROTECTED]>
If it's a real cookie, you can get it with php into the cookie vars..
If it's an asp session, forget it...
"Carlos Castillo" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL
PROTECTED]
HI,
I have the following problem, i have a website with php and asp files, in one asp
fil
Hi,
PHP has nothing to do with this , use javascript to limit user entry into
your textarea field..
I'll find many sample over the net.
Regards,
P.E. Baroiller
"Johnny Martinez" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi all,
> I'm using an Access db as the backend
does your file test.inc exists, and... have you perms to write in this
directory ?
<[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> hi there i have a little problem writing files on a php3 server this code
> worked yesterday but isnt
>
> $handle =
fopen("/www_tools/apache/ht
Hi,
take a look at thedoc... there is a function called nl2br() to convert \n
to for html display.
regards,
P.E. Baroiller
"Bob pilly" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi all
> Can someone tell me why if i echo a line like this:
>
>
> echo "this is a \n n
Hi,
did you try count($value) and strlen($value) ?
count($value) will give size of an array, and strlen($value) size of a
string ...
Regards,
P.E. Baroiller
"Petre Agenbag" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi List
> Just want to make sure:
>
> Is there no w
Hi,
when you call your script, is $point defined somewhere ?
if $point is empty, you'll get an empty string for $links_include and
include $links_include will not work.
Regards,
P.E. Baroiller
"Dougd" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> I am new to all this, bu
Hi...
are your sure your Exchanger server has imap enabled and port 143 is open ?
If you've got the message "connection refused", it can be :
- not imap server is running
- your login/password couple is wrong
or
- you can't connect to the port 143...
regards,
P.E. Baroiller
"Charles Vos" <[EMAI
Have you loaded php module into apache ?
Have you defined .php files into your httpd.conf ?
Try with easyphp on windows... I can't help you more... I hate windows! :D
Regards,
P.E Baroiller
"Karen Santmyer" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> HI:
>
> I in
did you put a before in your script ?
What I see in your script is : addDivName is a text input field, without
value..
so, if you click on you link, is $addDivName wasn't set before, the content
is... empty! :)
I can't help you more with your tiny sample :(
Regards,
P.E. Baroiller
"Joaco" <[EM
How is defined your temp_test table ?
PHP don't truncate content...
you only need to define a binary blob field and store data into it..
regard,
P.E. Baroiller
"Javier" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi everybody, I've trying to store a into a MSSQL Server
Hi,
try with adding this :
$header = "Content-Type: text/html;
charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 8bit\n\n";
If it don't work, try to build multipart email ...
Regards,
P.E. Baroiller
"Tim Thorburn" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
>
> I
hmm...
and... what would you do with a clear screen function on a web page with php
?
I can't see how it could work.. :)
PHP is server side, so you can't clear the user screen like with C or other
language ...
Regards,
P.E. Baroiller
"Artoo" <[EMAIL PROTECTED]> a écrit dans le message de
news:
Hi...
You've made a bad query and there is no result...
mysql_fetch_row($result) => if no data found, you've got an error...
"Marcelo Luiz De Laia" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> What this message means?
>
> What it is the error?
>
> Warning: mysql_fetch_r
Does you php or apache process have perms to do this?
"Billy" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Dear all,
>
> i can't call the "htpasswd" command after i used RedHat 8 ( which i can
do
> so in Red Hat 7.2)
>
> do u have any idea/ suggestion?
>
> thx a lot
> H
Hy,
try with mysql_insert_id() [ if you've set the first field as "index" in
your table ].
Regards.
"Harry.De" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
> if i insert into a mysql table a row e.g.
>mysql_query("INSERT into TEST (testfield) VALUES ('This i
May be this line is wrong :
Echo Geen informatie beschikbaar;
may be use this instead...
echo 'Geen informatie beschikbaar';
no?
:)
regards.
<[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi,
>
> I'm trying to do the following.. When $stadpict is filled in it mu
use opendir() , and readdir()..
you'll get a var like $file,
then check is_file($file) to see if it's a file :)
(take a look at the php doc.)
"Mohd_q" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
I wonder if there is a way to get the files names in a given directory.
The fastest way to do this is very simple :
store the last Id of your banner , get another from your SQL table (with
rand) and display it (repeat if the Id is the same)..
And, in your html page, add a refresh=xx to refresh the ad page.
Regards,
P.E. Baroiller
"Stephen" <[EMAIL PROTECTED]> a écrit
Hi !
Could you write it in english please ?
"Rich" <[EMAIL PROTECTED]> a ecrit dans le message de news:
[EMAIL PROTECTED]
> PHP$B=i?4 $B$*CN7C$rGR
> $BNc$($P!"(Bhttp://www.mydomain.com$B$G%;%C%7%g%s$r3+;O$7!"$=$N8e!"(B
> https://www.mydomain.com/regist.htm$B$X0\F0$7$?$H$-$K!"%;%C%7%g%s$O7
To this : session_register('somevar') and it'll work..
if your're using PHP4, you can also do this : $_SESSIONS['somevar']=$somevar
Regards,
P.E. Baroiller
"Paul" <[EMAIL PROTECTED]> a écrit dans le message de news:
002601c28743$42bebbf0$[EMAIL PROTECTED]
>
> I have a simple object/class:
>
> Cla
go to php.net and unsubsbribe this mailing list :)
"Joe Reichmuth" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you have a lot of code to process, it may be longer but,
if it's a class include, it's very fast to load ..
I've got classes about 60Kb, and the average for processing a page (from
loading to the html output) is less than 5ms...
"Khalid El-Kary" <[EMAIL PROTECTED]> a écrit dans le message de ne
array_diff check value, not keys..
"Nick Eby" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> example:
> $arr1 = array("color" => "red", "flavor" => "cherry");
> $arr2 = array("color" => "cherry", "flavor" => "red");
> print_r(array_diff($arr1, $arr2));
>
> those 2 arrays
Hi,
how did you make for html form to upload files ?
you need to add an encryption like this to post files...
If you make a simple post form, you'll never get the posted files! :)
File uploading works with php3 & php4 and it's very easy to implement.
cheers.
P.E. Baroiller
"@ Darwin" <[EMA
Yes...
I've tried Image Magic , it's good for my work :)
Now, I can resize/resample/reformat any kind of picture...
thanks for all! :)
"Krzysztof Dziekiewicz" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> > The GD library bundled with PHP 4.3 can read gif images (but
I can't get all entry where words is in...
".: B I G D O G :." <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Which functions are you using to do the regex stuff...
>
> That might help...also check out...
>
>
>
> On Thu, 2002-11
Hi!
does someone know how to find an exact word in a content with html tags ?
I'm using a regexp like this :
$searchRegEx = "'\b".$word_search."\b'msi";
to get boundary word results, but... if the searched word is like 'word or
word. or anything else, the
regular expression doesn't work..
if I
thanks for all! :)
I'll take a look at this product.
P.E. Baroiller
"Krzysztof Dziekiewicz" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> > does anyone know a way to convert a gif file to jpg ?
> > I've made a photo album and, want to resize pictures to create
thumbnai
Hi all,
does anyone know a way to convert a gif file to jpg ?
I've made a photo album and, want to resize pictures to create thumbnails..
GD allow resizing jpeg files, but not gif files...
So... how can I create a jpeg file from the gif source ?
(may be with an external software...) ???
Cheers
P
You've forgotten the "" in your echo...
html_header() and html_footer() put html in the right place in your page
but, like you haven't close your tag,
the footer dans be everywhere in your page (depends on the web browser
you're using)..
Regards,
P.E. Baroiller
I have a small piece of code which
the mailing list, do this for me
please !
"Baroiller Pierre-Emmanuel" <[EMAIL PROTECTED]> a écrit dans le message
de news: [EMAIL PROTECTED]
> Hi everyone...
>
> I've got a little problem :
>
> I've got an html template, with javasript functions and style
ace($eregstr,"",$str);
$styles=implode("\n",$matches[0]);
$eregstr="/]*>(.*)<\/head[^>]*>/si";
$str=preg_replace($eregstr,"\\1".$styles."",$str);
And, actually, it works fine..
Any other solution ? ( faster...??)
&qu
Hi everyone...
I've got a little problem :
I've got an html template, with javasript functions and stylesheets in many
places...
This html template is made via a big big template handler i've done...
All seems to work... But, now, I would like to clean this html page to
procude a 'readable' page
Hi... I'm looking for a preg_match regular expression to find all href tags
into a text field...
can someone help me??
I've tried a lot of regexp but... nothing work correctly...
I can't get all matching href ( such as or < a
href="xx"> , ... )
any idea?
cheers..
P.E
--
PHP General Mailing
You only have a difference into your insert query
like this : insert into table (x,y,z) values(x,y) ..
"Miguel BráS" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi guys,
>
> I was doing a script to insert data on a table, and the following message
> appeared me when
I work with double cookie to add a "security"...
If the user try to change de sessionId, I check with the current sessionId
stored into my own cookie..
But.. It may not to be usefull... :)
The cookie is basically a crypted copy of the session content (with a
different encryption method).
I'm lookin
Hi everyone..
I would know what did you think of my method to prevent 'piracy'..
I do like this :
- A Session is made for each user
In the session, put 2 value : a flag "userlogged" and the userId
- In a cookie, I put the session Id and an unique crypted value.
When user go on private parts o
Hi,
Your solution is a good way (I use the same system for user contributions
vote)..
The size of the DB is not a problem...
You can add an history table if you work month by month.
Like this, your 'voting' table will only have current month value, and the
history table
will get results for each m
You can use this function : get_object_vars to retreive vars from a class..
Here is the example from phpdoc :
x = $x;
$this->y = $y;
}
function setName($name) {
$this->name = $name;
}
function ReadPoint() {
return array("x" -> $this->x,
take a look on php website, there is a lot of scripts for this :
http://www.hotscripts.com & others.
Regards.
P.E.
"Thomas Goeminne" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hello,
>
> I am making a page where people can vote for their favourite image. People
> c
Hi,
everyone know how to upload files from the browser to your web server using
multipart-form method with move_downloaded_file() php function.
But... It's a slow method for multiple files & huge files transfert.
I'm currently working on a big photo album tool, and I want to provide user
the ab
Hi,
everyone know how to upload files from the browser to your web server using
multipart-form method with move_downloaded_file() php function.
But... It's a slow method for multiple files & huge files transfert.
I'm currently working on a big photo album tool, and I want to provide user
the ab
only to see if i can post messages
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
49 matches
Mail list logo