beholder...
Cheers
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
afe6dd12ec58245d"));'
returns
float(8315)
It gives up when it finds a non-numeric character (as the documentation
would tell you)
Perhaps what you need is
php -r 'var_dump(floatval(0x8315e839da08e2a7afe6dd12ec58245d));'
float(1.7424261578436E+38)
In other words, you need to
es developers.
The weak typing *is* a feature of PHP: other languages are more suitable
when you need more enforcement of types: Java, for example.
With all due respect to an experience programmer, years of experience do
not make up for a limited tool set.
Best Regards
Daniel Buschke
Cheers
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r an appropriate image for it...
I'll get my coat...
Pete
--
Peter Ford, Developer phone: 01580 89 fax: 01580 893399
Justcroft International Ltd. www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom
Regist
On 06/07/11 17:33, Robert Williams wrote:
Where I've made most use of heredocs is when I want to do nothing but define a
bunch of
long strings in one file.
I find the most useful thing about heredocs is that they don't care about
quotation marks, so I often use them for SQL statements where I
On 15/06/11 01:24, Marc Guay wrote:
I bought a 1GB external hard drive for $1000. Did I just choke on my lunch?
If that was about 20 years ago, then it would be fine!
--
Peter Ford, Developer phone: 01580 89 fax: 01580 893399
Justcroft International Ltd.
On 06/06/11 21:07, Richard Quadling wrote:
On 6 June 2011 13:55, Pete Ford wrote:
Is there something on the Apache/PHP end that might be causing this
blocking? (Apache 2.2.10, PHP 5.2.14)
The browser and / or OS may be obeying the settings about the number
of simultaneous connections per
I have a file download 'guardian' page which does something like this:
$size = filesize($path);
$fi = @finfo_file($path, FILEINFO_MIME_TYPE);
@header('Content-type: ' . $fi);
@header('Content-Length: ' . $size);
@readfile($path);
exit;
($path is derived from parameters in the request, including
On 23/05/11 13:12, tedd wrote:
At 9:47 AM +0100 5/23/11, Pete Ford wrote:
Finally, for some applications I have made an AJAX (javascript + PHP)
implementation which provides feedback to the user as they type in the
date field: every time a character is typed in the box, the backend is
asked to
On 20/05/11 16:29, Geoff Lane wrote:
On Friday, May 20, 2011, Peter Lind wrote:
Try:
$date = new DateTime($date_string_to_validate);
echo $date->format('Y-m-d');
Many thanks. Unfortunately, as I mentioned in my OP, the DateTime
class seems to be 'broken' for my purposes because it uses str
On 22/05/11 06:46, Roger Riordan wrote:
On Thu, 05 May 2011 08:28:53 -0400, sstap...@mnsi.net (Steve Staples) wrote:
On Thu, 2011-05-05 at 21:41 +1000, Roger Riordan wrote:
I have developed a common engine which I use for several different websites. I
had been
using PHP 5.2.? and IE6 (yes; I
On 19/05/11 10:37, Tim Streater wrote:
On 19 May 2011 at 10:20, Richard Quadling wrote:
On 18 May 2011 19:15, Nazish wrote:
Hi everyone,
code, code, code.
?>
The session cookie must be sent prior to any output. Including, but
not limited to, comments, whitespace, HTML code, etc.
On 03/04/11 19:41, Jason Pruim wrote:
So the subject says it all... And yes I know this isn't related to PHP but it's
the weekend and I trust the opinions on this list more then any other list I
have seen. I've been doing alot of reading on XML and honestly it looks pretty
cool... BUT the ques
On 22/02/11 14:40, Gary wrote:
"Pete Ford" wrote in message
news:76.48.39221.054c3...@pb1.pair.com...
On 22/02/11 13:59, Gary wrote:
"Pete Ford" wrote in message
news:a4.c0.39221.b3ca3...@pb1.pair.com...
On 22/02/11 05:40, Gary wrote:
Can someone tell me why this is no
This bit?
On 22/02/11 22:06, Gary wrote:
for($i=1; $i<=$_POST['counties']; $i++) {
if ( isset($_POST["county{$i}"] ) ) {
You loop over $_POST['counties'] and look for $_POST["county$i"]
I suspect that there is no field 'counties' in your form, so the server is
complaining about the missing i
On 22/02/11 13:59, Gary wrote:
"Pete Ford" wrote in message
news:a4.c0.39221.b3ca3...@pb1.pair.com...
On 22/02/11 05:40, Gary wrote:
Can someone tell me why this is not working? I do not get an error
message,
the results are called and echo'd to screen, the count does not work
On 22/02/11 05:40, Gary wrote:
Can someone tell me why this is not working? I do not get an error message,
the results are called and echo'd to screen, the count does not work, I get
a 0 for a result...
$result = mysql_query("SELECT * FROM `counties` WHERE name = 'checked'") or
die(mysql_erro
On 2/20/2011 6:41 PM, Richard Quadling wrote:
On 20 February 2011 23:34, Richard Quadling wrote:
On 18 February 2011 19:03, Pete Woodhead wrote:
Hi I'm Pete Woodhead. Â I'm new to the list and to PHP. Â To be honest I very
new to code writing.
Thought this would be a good way to
On 2/20/2011 3:47 PM, tedd wrote:
At 2:03 PM -0500 2/18/11, Pete Woodhead wrote:
Hi I'm Pete Woodhead. I'm new to the list and to PHP.
To be honest I very
new to code writing.
Thought this would be a good way to learn good habits as
well as good code
writing.
Looking forward t
error will be very obvious in such a program.
I'm not going to recommend one - that's a sure way to start an argument - but
I use Netbeans.
Cheers
Pete
--
Peter Ford, Developer phone: 01580 89 fax: 01580 893399
Justcroft International Ltd.
Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very
new to code writing.
Thought this would be a good way to learn good habits as well as good code
writing.
Looking forward to learning and participating.
On 12/01/11 14:13, Richard Quadling wrote:
On 12 January 2011 14:07, Steve Staples wrote:
On Wed, 2011-01-12 at 13:40 +, Richard Quadling wrote:
On 12 January 2011 13:20, Steve Staples wrote:
Jim,
Not to be a smart ass like Danial was (which was brilliantly written
though), but you hav
On 12/01/11 03:35, David McGlone wrote:
Hi Everyone, I'm having a problem validating some links I have in a foreach.
Here is my code:
http://www.w3.org/TR/html4/loose.dtd";>
my PHP code:
$categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us',
'testimonials');
foreach($categ
On 29/11/10 23:54, Ron Piggott wrote:
I am unable to retrieve the value of $referral_1 from:
$new_email = mysql_escape_string ( $_POST['referral_$i'] );
why?
PHP while lopp to check if any of the fields were populated:
$i=1;
while ( $i<= 5 ) {
$new_email = mysql_escape_string ( $_POS
On 15/09/10 18:00, David Harkness wrote:
And let's not forget
$v = $row->xpath("//membernumber[. = \"$MemberId\"]");
The \" inside the string turns into a double-quote and using " to delimit
the string allows for variable substitution.
Oooh, I hate using backslashes - they always seem so unt
If you needed the double-quotes in the Xpath expression when the constant is
used , then you probably need them in the variable version.
$v = $row->xpath('//membernumber[. = "'.$MemberId.'"]');
That should put the double-quotes in for you...
On 15/09/10 09:33, Sridhar Pandurangiah wrote:
---
On 12/09/10 18:33, tedd wrote:
At 5:57 PM +0100 9/12/10, Ashley Sheridan wrote:
On Sun, 2010-09-12 at 12:55 -0400, tedd wrote:
Can a business have a server connected to the Internet but limit
access to just their employees? I don't mean a password protected
scheme, but rather the server being
u certainly cannot trust the client side to do any checking. In any case,
JavaScript doesn't (shouldn't) have access to the file you are trying to upload,
so there's not much you can do there. You might achieve something client-side
with Flash, or a Java uploader applet, I suppo
On 27/07/10 14:16, Peter Lind wrote:
2010/7/27 Nilesh Govindarajan:
2010/7/27 Dušan Novaković:
Hello,
so when I'm sending the array to model it's like this:
$fp = fopen(INVOICE_PATH.date('Y-m-d').DS.$pdfName, "r");
$pdfContent = array(
'file
On 27/07/10 10:42, viraj wrote:
$firstName is the most readable.. for variables.
does anybody have negative thoughts on using the same naming format
for method/function and for class names?
i guess it's worth sharing! many thanks!
~viraj
I like to use $firstName, and function firstName(), b
On 15/07/10 09:14, Ashley Sheridan wrote:
ALTER TABLE is the way to go. If in doubt, look at the SQL phpMyAdmin
produces when you make the changes in there.
Thanks,
Ash
http://www.ashleysheridan.co.uk
Yeah, scripting "ALTER TABLE" commands ... :)
--
Peter Ford, Developer pho
On 15/07/10 06:03, Paul M Foster wrote:
On Wed, Jul 14, 2010 at 09:28:53PM -0700, Slith One wrote:
I'm developing an app using Zend Framwork using Git for version control.
What is the best approach for updating the schema and the database
when one of us makes an update to the db structure?
cu
On 05/07/10 14:38, Richard Quadling wrote:
On 5 July 2010 14:02, Jason Pruim wrote:
Hi everyone,
I'll admit right now that I'm still trying to wrestle with inner joins...
It is all about set theory. Imagine two circles, which overlap
(http://en.wikipedia.org/wiki/Venn_diagram#Example as an e
On 21/06/10 00:45, Rick Pasotto wrote:
Within a class function I have defined another function for use with the
usort() function. How do I reference it?
When it's not part of a class usort($arr,"cmp") works fine but when it's
within a class function I get this error:
PHP Parse error: syntax er
On 07/06/10 18:49, David Mehler wrote:
Hello,
I've got a form with two combo boxes, one for the month one for the
day. Both are required. I've got code that checks the post submission
to ensure neither is empty. My problem is that if a user does not
select anything in the combo boxes January firs
On 12/05/10 11:23, shiplu wrote:
Can you paste a sample encoded version of a php file on pastie.org?
Shiplu Mokadd.im
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jo
On 12/05/10 10:48, Pete Ford wrote:
On 12/05/10 01:06, Ashley Sheridan wrote:
On Tue, 2010-05-11 at 16:50 -0700, Brian Dunning wrote:
Hi Shiplu -
I also have a product with similar requirements. I searched a LOT and
was never able to find a free solution that I was satisfied with.
Even a lot
On 12/05/10 01:06, Ashley Sheridan wrote:
On Tue, 2010-05-11 at 16:50 -0700, Brian Dunning wrote:
Hi Shiplu -
I also have a product with similar requirements. I searched a LOT and was never
able to find a free solution that I was satisfied with. Even a lot of the
commercial solutions require
On 06/05/10 11:52, Paul Waring wrote:
Ashley Sheridan wrote:
Why don't you store them as integer values and add in the decimal point
with something like sprintf() afterwards? Store the values as pence and
then you won't have any rounding problems.
If I was designing the system from scratch, th
tell
you, and possibly provide a workaround. If not, then you probably shouldn't be
doing what you are trying to do anyway - there a reason why they are blocking
bots...
Cheers
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 27/04/10 16:37, tedd wrote:
Error handling is almost an art form.
More like a black art - voodoo perhaps...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 26/04/10 16:56, Michelle Konzack wrote:
Hello Peter,
Am 2010-04-26 09:28:28, hacktest Du folgendes herunter:
var_dump($isfile);
Don't make assumptions of what the value is, just check it.
Yes and grmpf!
The filename has a space at the end but it can not removed even using
var_dump(
On 31/03/10 15:30, Ashley Sheridan wrote:
On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:
Hi All,
I have a web project built in PHP which we want to break out part of into
a stand-alone GUI program. The architecture is fine - display nicely
separated from logic, so coding is not a problem
On 31/03/10 15:30, Ashley Sheridan wrote:
On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:
Hi All,
I have a web project built in PHP which we want to break out part of into a
stand-alone GUI program. The architecture is fine - display nicely separated
from logic, so coding is not a problem
major toolkits?
Cheers
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 17/03/10 18:59, Tommy Pham wrote:
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman wrote:
hmm.. seems easier to me to push a filetree of .php's with wrote:
At 8:55 PM -0400 3/16/10, Adam Richardson wrote:
That said, I'm not taking exception with those who don't use the short
tag, only with
On 24/02/10 08:20, shiplu wrote:
Lots of confusion!
So I tried this,
$ for x in cat dog rabbit rat; do echo -n "$x "; if whatis $x>
/dev/null; then echo found; else echo not found; fi ; done;
cat found
dog not found
rabbit not found
rat not found
That's easy to fix:
sudo ln -s /bin/cat /b
Richard Quadling wrote:
2010/1/22 Pete Ford :
IMHO, a constant is not the correct beastie in this case - if you want it to
be different depending on the implementation then it ain't a constant!
You should probably have protected static variables in the interface, and
use the implementat
mplements SetKillSwitch
{
public function __construct()
{
self::$isSet = FALSE;
self::$date = '2010-01-21T09:30:00+';
self::$notes = "Test";
}
}
Cheers
Pete Ford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am on the top of the world! Borlange University wrote:
hello, i can obnot retrieve a select ject from div innerHTML.
what i want to do is that when a page is loaded, first selector,say #1,
would be shown in the first div by sending a request.then i choose one
option from #1, fire change event o
arrays as arguments, and accepts a return value of any of
those same types. All data translation and inter-process communication
is transparent. It's just as if a local object instance is being
messaged directly.
If there's interest, I'd like to offer DRbClient to the php community
On 24/12/09 16:59, Bastien Koert wrote:
On Thu, Dec 24, 2009 at 9:12 AM, tedd wrote:
At 10:20 PM +1000 12/24/09, Angus Mann wrote:
Hi all. I need to allow users to enter dates and times, and for a while
now I've been forcing them to use javascript date/time pickers so I can be
absolutely sure
e's some overhead in the AJAX calls, and it requires JavaScript.
If you wanted to do without JavaScript you could do a similar parse-format
sequence when the form is submitted and show a confirmation page with your
server's interpretation of the date.
Cheers
Pete
--
PHP General Ma
Can anyone point me to a (free) script that will ask for a person's
email address and username, and then look up the password that's in a
plain text file?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ooops!
processor.php is now:
$where_form_is =
"http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/";
$to = "[EMAIL PROTECTED],[EMAIL PROTECTED]";
$subject = "SUBSCRIBE";
//$from = $_POST['field_4']; <<<== this was the culprit
$body = "Form data:
Name: ".$_POST['field_1'].
Daniel Brown has written on 4/17/2008 12:29 PM:
I'll reiterate:
"Note the mail() parameters. There's no header information there."
RTFM: http://php.net/mail
You just have your mail() function wrong. Reiterating my code as
well (with updated field_4 data):
http://".$
Daniel Brown has written on 4/16/2008 5:20 PM:
On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote:
Why do I need both from_addr and field_4 (Email Address)? Could I just use
$from = $_POST['field_4']?
Sorry, I noticed it after I started re
Daniel Brown has written on 4/16/2008 4:56 PM:
On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote:
The entire processor.php file is:
http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
Daniel Brown has written on 4/16/2008 4:04 PM:
On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg <[EMAIL PROTECTED]> wrote:
I wanted a form for people in my community to use to subscribe to a yahoo
group that I run.
Not being a PHP programmer, I created the form with phpFormGenerato
I wanted a form for people in my community to use to subscribe to a
yahoo group that I run.
Not being a PHP programmer, I created the form with phpFormGenerator
from SourceForge.
It works fine except that the email that gets sent to yahoo appears to
come from my web host's domain!
How can
ello all, Im a beginner at php. but I was able to get this script to work.
Now I am looking to have it automatically refresh itself using ajax
every 10 seconds.
Can somebody explain or show me how to do this.
Thank you.
PHP Code:
| | |$httpfile =
file_get_contents('http://www.game-monitor.c
Thanx
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://uk2.php.net/manual/en/function.array-diff.php
http://uk2.php.net/manual/en/function.array-diff-assoc.php
Blackwater Dev wrote:
Hello,
Is there a good way to get the difference in two arrays and have both
values returned? I know I can use array_dif to see what is in one and
not the other but
set a $_SESSION['var'] at the end of the first post and check for this
the second time around
pete
Fredrik Arild Takle wrote:
Hi,
what is the easiest way to check if a person i registered twice in a
mysql-table. Lets assume that I only check if the last name is in the table
more
seem to work either..
any ideas.. need to validate anything without 0-9 and a dot within
tia
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://phpmailer.sourceforge.net/
excellent and easy to use class
Malcolm Mill wrote:
Does anyone know of a PHP script to access gmail's POP services?
Thanks,
Malcolm.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi clive
I tried all of them and I must admit smarty comes out on top by a mile
I use it on a very busy virtual host and have had NO problems with slow
script etc, highly recommended http://smarty.php.net
pete
Clive Zagno wrote:
Hi all,
What templating engines do you use with php and why?
Ive
check out
hotscripts.com
Clive Zagno wrote:
Hi
does anyone use any cool php mailing list software.
clive
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://phpmailer.sourceforge.net/extending.html
Balwant Singh wrote:
hi,
I am using FEDORA 3 and PHP. I want to send email to outside by my above
mentioned linux machine through PHP. For this i want to use my SMTP
sever, which is on a WINDOWS machine
Please inform what setting to be done in php.ini
check out phpmailer
http://phpmailer.sourceforge.net/
use it all the time - its brilliant !!!
Balwant Singh wrote:
hi,
I am using FEDORA 3 and PHP. I want to send email to outside by my above
mentioned linux machine through PHP. For this i want to use my SMTP
sever, which is on a WINDOWS machine
Pl
I'm trying to figure out out to put a directive in .htaccess to make the
session timeout in 4 hours ..
tried
php_flag session.cookie_lifetime 240
and a few others
can someone help !
tia
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
want is to return all rows that start with
'Advent Tower PC\C\freeserve\help\images\'
tia
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there an easy way to "trim" an array ?
I'm using array_unshift to push elemnts onto the front of an array but I
want to limit the size to 20 ??
Is there an easy way to do this without "looping" and unsetting the
elements ??
tia
Pete
--
PHP General Mailing List
Thankyou
Diolch
danka
There seems to be a big difference between eregi_replace() and preg_replace
Am reding teh Sams - Regular Expressions in 10 mins bu the syntax seems
ot be different. !!
regards
pete
Erwin Kerk wrote:
pete M wrote:
The pattern
$pattern = 'font\-size:.*?\;';
throwns
The pattern
$pattern = 'font\-size:.*?\;';
throwns the error
eregi_replace(): REG_BADRPT
Erwin Kerk wrote:
pete M wrote:
I've been messing about with this for a while to no avail.. so help
would be appreciates
I'm new to regular expressions and tried this with preg_rep
*\;';
$txt = eregi_replace($replace,'',$txt);
What I'm trying to do is match the font-size: and replace everything up
to the ; with '' ie nothing
dont work
Feel I'm so close ;-(
tia
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
check www.hotscripts.com
Ryan A wrote:
Hey,
I am looking for a software that just lists adverts...
eg:
Like ebay but without the bidding
Requirements are simple, so simple that i am sure something like this exists
and i dont have to write it myself:
0.They must register first then...
1.offer the pe
Jay Fitzgerald wrote:
I have messed with this for a couple of days and cant get it right. Maybe I
need sleep :-)
The code below is echoing the qty correctly (10, 5, 25)
$total = 0;
for ($i = 1; $i <= $sendnum; $i++)
{
$qty = $_POST['qty'.$i];
echo $qty . '';
$total += $
Check this out
http://adodb.sourceforge.net/
http://phplens.com/adodb/code.initialization.html#init
have fun
Pete
Bruno Santos wrote:
Hello.
I need to to an application in PHP with graphics creation.
The database where i need to go and fetch the values is access.
is possible for PHP to fecth
try
$_SERVER['SCRIPT_URI'];
Gary C. New wrote:
I am writing some php code that requires the $GLOBALS['SCRIPT_URI']
variable. When I access the code under its encrypted (https) location
it is available without issue. However, when I try to access the code
under its unencrypted (http) location it i
here's the way I do it
logout.php
Jacques wrote:
I am developing an application. When the user signs in a Session ID is
created (for argument sake: 123). I have a sign out page that has the script
session_destroy() on it. This page directs me to the sign in page. When I
sign the same or any oth
Check out abstraction layers
I use adodb
http://adodb.sourceforge.net/
makes coding much much easier ;-))
eg - mysql example
$sql = "insert into table (col, col2)values('$this','$that')";
$db->execute $sql;
// get last id
$new_id = $db->getOne('select
Bad Request
Your browser sent a request that this server could not understand.
Client sent malformed Host header
Am I missing the obvious as I cannot thing of any other options ;-((
tia
pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need to post some code
#are you using phpMailer - makes emails a doddle
http://phpmailer.sourceforge.net/
Afan Pasalic wrote:
I have a form and once the form is submitted, php code build csv file
with entered information and store it on server in temp file. Then send
this file as an atta
as 123.php or
>123.phtml abc.html can continue to be abc.html
>
>>
>>Again I realize this is a complete newbie question but I appreciate any
>>help you have.
>>
>>Todd
A further point (since you are newbie ) is to remember that abc.html
will not normally be a co
$_SERVER['REQUEST_URI'];
Matthew Weier O'Phinney wrote:
* Jason Paschal <[EMAIL PROTECTED]>:
Trying to get the current viewed page's URL (query string intact).
this works, but infrequently:
$url = $_SERVER['URI'];
and this ignores the query string:
$url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SEL
Unsetting class objects does take time and is really of no benefit
unless there are memory problems
as for freeing resuslts - the same applies
pete
Jordi Canals wrote:
Hi all,
I was working now in a new site developed with PHP 5.0.2 and a wonder
came to me:
Is usefull and recommended to unset a
n't arrive.
The client has PHP Version 4.3.1 on Windows NT localhost 5.2 build 3790
--
Pete Clark
http://www.hotcosta.com
http://www.spanishholidaybookings.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
N['user_level'] = $user_level;
>>
>>
>You should only save the userId in the session, everything else should
>be retrieved from your database using that id.
I normally do as you have suggested here - but why do you suggest that
this method is better?
--
Pete Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
clude 'http://www.example.com/guestbook.php?option=view&offset=$offset';
- guestbook.php -
$offset gets value "$offset" instead of "0"
$option has correct value, "view"
How do I write my include so it works?
Would appriciate som help.
Regards
Wow - this is *really* spooky!
When I wrote that, with RewriteRule "relative URLS within that page no
longer work correctly", I had not realised that those within PHP worked
ok, whereas those in raw HTML didn't...
--
Pete Clark
--
PHP General Mailing List (http://w
URLS? And if absolute
is absolutely necessary, should I include the domain name?
--
Pete Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
goto
sourceforge.net
there's tons of stuff there.. No need to reinvent the wheel ;-)))
pete
Lee Standen wrote:
Hi Guys,
I was wondering if anyone knows of a project for creating a
troubleshooting wizard, much like in the Microsoft help. I've managed
to make something which kind of wo
ields are 'a paragraph full'), and work from
there.
Of course, it doesn't need to be fast to run.
--
Pete Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
doh!!
ta ;-)
S
ilvio Porcellana wrote:
$ok = setcookie("client_id", "argh", 259300); //* expire in a month ish
Nope, it expired a long time ago... :-)
Read the manual for setcookie:
http://php.libero.it/manual/en/function.setcookie.php (mainly the part about
the "expire" parameter)
HTH, cheers
Silv
I've got this function in a class object, however the cookie does not
set even though £ok returns true !!! I've got cookies enables on all my
borswers (firefox, mozilla, opera , IE)..
any ideas !!
function updateClient($arr){
extract($arr);
//print_r($arr);
$sql = "update clients set
n
T Umashankari wrote:
Hello,
Can any one tell me how to assign a null value to a php string?. I
tried assigning empty single quote,backslash with zero,double quotes
also. but nothing works..
Regards,
Uma
$str = NULL;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Hi List,
I am getting a strange error notice for the following config file:
'mysql',
'username' => 'root',
'password' => 'secretpass',
'hostspec' => 'localhost',
'database' => 'mydb',
);
$options =
array(
'debug' => 2,
'portability' => DB_PORTABILITY_ALL,
);
/**
This might be slightly off the topic but I would recommend you use a
database abstraction layer which will do what you want to achieve
Check out
Pear DB
http://pear.php.net/manual/en/package.database.db.php
and adodb
http://adodb.sourceforge.net/
pete
Dan Joseph wrote:
Hi Everyone
$myimage = 'hi.gif';
echo "";
Henri marc wrote:
Hello,
I would like to use a variable instead of an image
file name in a html page with this instruction:
';
?>
I tried but the image doesn't show up. Is it
impossible or do I do something wrong?
My goal is to have a random image print in the page,
th
1 - 100 of 319 matches
Mail list logo