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
not a php expert but have filed this bug report re validating
is_numeric('3e0');
http://bugs.php.net/bug.php?id=32943
Now tried
function isnumeric($n) {
if (ereg(^[0-9]{1,50}.?[0-9]{0,50}$, $n)) {
return true;
} else {
return false;
}
}
and that doent seem to work either..
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 than once.
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
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
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
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
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
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
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 (http://www.php.net/)
To
I've got a database table with a whole list of windows file paths.
eg
Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Binder.lnk
Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Excel.lnk
Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Office Setup.lnk
Advent Tower
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_replace, now I'm
using eregi_replace !
here's the text
$txt = 'span style=font-size: 10pt; font-family: Times New
Roman;Itbr /
blahh blahhh blahhh
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_replace, now
I'm using
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 error
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
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
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 . 'br /';
$total
here's the way I do it
logout.php
?php
session_start();
$_SESSION = array();
session_destroy();
header('Location: login.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
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
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 last_insert_id()');
have fun
Pete
[EMAIL
am not having a lot of success with opening a socket to a secure domain
(php 4.3.8 - apache - openSSL)
$fp = fsockopen($url , 443 ,$errno, $errstr, 30);
have tried the following $urls
---
$url = 'domain.net';
Bad Request
Your browser sent a request that this server could not
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
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
$_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'] .
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 works myself,
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
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
Silvio
--
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:
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,
u need to start the session at the top of each page
sesion_start();
Angelo Zanetti wrote:
Hi all,
Im having a slightly weird problem with my session variables. when on a
certain page call it A, I register a session variable and assign it a
value. I then test if it is registered successfully and
$myimage = 'hi.gif';
echo img src='$myimage';
Henri marc wrote:
Hello,
I would like to use a variable instead of an image
file name in a html page with this instruction:
?php
echo 'img src=$myimage';
?
I tried but the image doesn't show up. Is it
impossible or do I do something wrong?
My goal is
Know this is off topic bu can anyone help with a tuotial of something -
been looking everywhere
All I want is a rule to rewrite
www.example.com?page=mypageid=20this=that to
www.example.com/mypage/20/this
tia
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I had a similar scenario recently
the way I tackled the problem was to set a cron to trigger a cli
script every minute
the script first checked a database to see if there was any jobs queued
then processed in the background
works a treat
pete
C.F. Scheidecker Antunes wrote:
Hello all,
I need
http://phpmailer.sourceforge.net/
check the tutorials
Syed Ghouse wrote:
Hi all
i want to send more than 1000 mails from php program at a time.how can i send it and
will the execution of program become slow.
pls reply to the above ASAP
syed
--
PHP General Mailing List
select * from table where week(date_field) = ( week(now()) -1 )
Tom Chubb wrote:
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each week.
I want to have a page that displays the results for the last week
http://phpmailer.sourceforge.net/
Ryan Schefke wrote:
Could someone please send me a function for MIME mail. I've been searching
for the past 3 hours and haven't come across anything that is solid and
works for me. I need the following:
1 - send MULTIPLE attachments
2 - send message in html
I use phpMailer
http://phpmailer.sourceforge.net/
makes mailing a doddle
pete
Phpu wrote:
Hi,
How can i send email in php usig the smtp server? I'm looking for a tutorial or a good
script.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
in Javascript
frame_name.reload()
Robert Sossomon wrote:
I am in need of a way to reload a page within a frame as the other
frames are used to modify the information.
I have a 3-frame site now that I am using 1 frame as a list, another
frame to add the information, and the 3rd frame to show the
Brent Clark wrote:
Hi all
I have a problem where, when I click on a link and when the page is finish
loading
I would like for the cursor to ready in the correct html text box.
I cant seem to find a solution
If anyone could help, that would be most appreciated
Kind Regards
Brent Clark
Stick this
http://www.aditus.nu/jpgraph/
By far the best I've seen is jpgraph, does Gantt too as well as 3d pie
et all..
Easy to code 2 and the manual is cvomprehensive
pedro
Richard Hawkes wrote:
Good morning gang,
I'm looking for a snazzy line/bar graph class. I've got GD running, with just
the
Am trying to increae the session lifetime to 8 hours ish
using this code
ini_set('session.gc_maxlifetime',28800);
does not work ?
any ideas
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't see why you keep persisting this thread.
Smarty is a cool tool and lots of people use it. You have decided NOT to
use it.
So why keep going on; you not like Smarty; are you encouraging users not
to use Smarty. I don't see your point at all !!!
There's more than one way of skinning a
I use dreameaver.
Arthur Radulescu wrote:
Hello!
This might sound like a stupid question but could anyone recommand a good
PHP editor...
I have used some editors until now but each one has some problems...
Right now I am using PHPed which is pretty good but oine of the major
problems is that it
I code with pencil and paper then scan it with OCR ;-))
Arthur Radulescu wrote:
Hello!
This might sound like a stupid question but could anyone recommand a good
PHP editor...
I have used some editors until now but each one has some problems...
Right now I am using PHPed which is pretty good
Unfortunately most of the $ signs usually get messed up...
Because I'm in the UK I use £ instead of $ and do a global search and
replace
Richard Harb wrote:
Finally somebody else who does it that way
Unfortunately most of the $ signs usually get messed up...
So ... which ocr program do you
Moving our sites to smarty is the best thing we've done at our company...
I do the php/database coding (logic)
the html designer does the templates/css
and the graphic designer does his bit.
What's fantastic is that we never ever tread on each other files whilst
working on a project, unlike
code that lot and remember its ALL to do with presentation ?
pete
Chris De Vidal wrote:
pete M said:
Moving our sites to smarty is the best thing we've done at our company...
Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as
mostly (not always) redundant. See my post
.
Vicente Werner wrote:
El Wednesday 14 April 2004 13:33, Chris de Vidal escribió:
pete M said:
Moving our sites to smarty is the best thing we've done at our company...
Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as
mostly (not always) redundant. See my post where I learned
wrote:
pete M said:
Moving our sites to smarty is the best thing we've done at our company.
Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as
mostly (not always) redundant. see my post where I learned that PHP
makes a great templating engine:
http://marc.theaimsgroup.com/?l
Actually where it =really speeds thing up is the
prototype/research/planning etc
We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That
stuff then gets coded.
Doddle
Pete
Vicente Werner wrote:
El Wednesday 14 April 2004 13:33, Chris de Vidal escribió:
pete M said:
Moving
+ bound to the php-interpreter and cannot be used w/ other languages.
this point is completely invalid... Haame me any other templating system
that can be used across diffeerent languages ??
+ content rendering process cannot be separated from the application
server.
ITS NOT AN APPLICATION
Curt Zirzow wrote:
:0
* ^Subject: Re: smarty
/dev/null
Curt
agreed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brent Clark wrote:
Hi
Does anyone know of how to execute a php shell script in a php file.
Kind Regards
Brent Clark
assuming *nix
php myscript.php
or stick at the beginning of the file
#!/bin/php
and then run ./myscript.php
hope it helps
pete
--
PHP General Mailing List
THis does the same
http://0x00.org/php/phpApplication/
pete
Patrik Fomin wrote:
Hi,,
is there anyway to get the number of people connected to the site?
in asp you just use Application and session_terminate to accomplish this
is there anyway to do this in PHP ?
regards
patrick
--
PHP General
Am trying to do a strange thing with php..
Extract the urls from the Internet Explorer index.dat history files
(dont ask why!)
Here is a snippet
ð:2002020720020208:[EMAIL PROTECTED]://www.lyricsworld.com/cgi-bin/search.cgi?q=Bruce
+Springsteenm=phraseps=20o=0wm=wrdul=wf=1ðððð
it
Brian Dunning wrote:
This inserts nothing into the database, but returns no error that I can
see. How come? What's wrong with it?
$dbname = my_database;
$dbconnection = mysql_connect(mysql05.powweb.com,my_user,my_pass);
mysql_select_db($dbname, $dbconnection);
$query = INSERT INTO invoices
I'm trying to group matches..
the string is (all one line)
:2002020720020208: [EMAIL PROTECTED]://www.azlyrics.com __ continued...
/s/springsteen.html?dsd=sadsaetc=tec
here the first bit I'm trying to match
:2002020720020208:
preg_match((:[0-9]{16}:), $contents, $match);
and then the default@
Does this mean the end of the script termination does NOT need to be
sent back to the browser ?
This smacks of something I needed recentyle with sending reports
The way I got around it was to
Create a flatfile database table with the job entries in it
Create a crontab that executed and cheked
Which EntireX
pete
onrad Strydom wrote:
Hi there guys,
We have a PHP application on a remote linux machine that needs to
interoperate with a COM based interface on a windows machine.
If both where on the same win32 machine things would have been easy ,
but unfortunately they aren't.
What
Wicked - that's the best tip I've seen for a long time... TA
Gareth Williams wrote:
Well if you are a unix/linux/os x user, drop to the command line, go to
the directory with all the php files, and type in:
grep function_name php
or if your php files are scattered around a load of
Getting completely confused how this stuff works !!!
Anyone recommend a book for a regex newbie ?
pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Im trying to scan a file and lift the image name from the img tag
ie
img src=THISBIT.ext
where there could be ' or
I messed around but am 2 embarassed to post code cos it dont work ;-(
thanks in advance
pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Think this is what u want
Imran Asghar wrote:
Hi,
Is not working, is it correct way
File1.php
? $colors = array('red','blue','green','yellow'); ?
form action=file2.php method=post
input type=hidden type name=colors value=?=$colors?
/fomr
?php $colors =
I personally abandoned using any com object a few months ago as
maintaining and identifying similar problems took mmore time that
writing effective code to make the system steady...
C C wrote:
Hi,
I am running PHP 4.3.4 on Windows 2000 server with
Apache 2.0.48. I am using COM objects in some
What you trying to achieve...
Decapode Azur wrote:
hello,
Is it possible to make php scripts working like deamons
and build something like a server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
check out the mssql.max_links setting in php.ini
There's a dew other settings in there 200
pete
Diana Castillo wrote:
Is there any way to limit the connections so that this error never happens?
Warning: mysql_connect(): Too many connections at
/home/local/global/php/libraries/dblayer_mysql.php
Just add order by to the sql query instead eg
SELECT id, name, surname, address FROM addresses order by name asc;
or descending on surname
eg
SELECT id, name, surname, address FROM addresses order by surname desc;
hope this helps
Pete
Bart Koppe wrote:
Hi all,
I'm quite a newbie ot php/mysql,
go and check out www.hotscripts.com - there's load of ecomerecce scripts
there.
regards
Pete
Pehepe Php wrote:
Hello. How can i build e-commerce site with php. Do you know any
source,documentation,e-book.
Please help me.
if you use msn messenger, please add me your contact list.
messenger :
Have u looked at sudo and sudoers
http://www.courtesan.com/sudo/
http://www.courtesan.com/sudo/man/sudoers.html
regards
pete
Mat Harris wrote:
Hi,
I am building a web interface to the vacation autoresponder program on linux.
I let users login, edit their message and enable the autoresponder.
have you looked at to_days() and to_years() in the mysql manual
Dvdmandt wrote:
How would I get the age of someone if I store the birthdate in a date field?
I just realized FLOOR((UNIX_TIMESTAMP(NOW()) -
UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born
before 1970... :p I
could someone explain what this bit of code does please...
if (!preg_match(/^.$thumbname./,$item))
{
}
tia
PEte
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have written and applicaiton in VB (yuck but that's what the client
wants) and part of the application involves importing and processing
text files.
For that I turned to php;-) for all its processing power as a shell script.
Now here is the daft question.
How would I go about embedding the
?php echo $_SERVER['REMOTE_ADDR']; ?
Mba wrote:
How could I use this php code,
?php print($REMOTE_ADDR); ?
in order to show the ip in a web page?
thanks
-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
--
PHP General Mailing List (http://www.php.net/)
For the exe part, check this list or
the internet for [PHP commandline].
Didn't think calling that from VB -
ta - problem solved
Pete
Chris Hayes wrote:
At 15:27 3-12-03, you wrote:
I have written and applicaiton in VB (yuck but that's what the client
wants) and part of the application
What Preg_replace code would I need to highlight all the code within the
script /script tags in red.. (case insensitive)
What I want is a view_source.php page to highlight the javascript for a
tutorial I'm writing. Can view the source ok but need to highlight the
code.
Not a regular
thsi si a nighmare area. and loast days on same problem
This works for me.. hope it does for you
$file = $_GET['file'];
$path = '/www/cgi-bin/docu/personal/'.$file;
//force download dialog
header(Content-type: application/octet-stream\n);
header(Content-disposition:
On way to do it would be to create a table called flags and update the
value in that
psuedo code
update flags set locked =1
get value to calculate
otheruesrs would check the page
select locked from flags
if NOT locked then do query
on the update page
update table set calculation = result
update
Another idea would ne to use an application variable..
This is like a Session variable but is site wide
http://0x00.org/php/phpApplication/
regards
Pete
Tony Crockford wrote:
Hi
bit confused!
here's what I want to do:
get a numeric value from a MySQL table, do a calculation, then on
UPDATE tblfoo SET value= (value+1) WHERE conditions
Tony Crockford wrote:
On Tue, 25 Nov 2003 07:15:10 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
is there a way I can get a number and increment it all in one query
then?
[/snip]
UPDATE tblFoo SET value = (value+1) WHERE conditions
Jake McHenry wrote:
Is this possible? I've been messing with this for about an hour now,
searching on google for about half hour. Here is what I want to do:
foreach ($array as $key = $value)
{
$value = explode(|, $value);
$counter = 0;
if ($value[7] == Yes)
{
$counter++;
Even the pros systems crash sometimes
http://www.php.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
need to issue a
session_start()
at top of page
Pete
Jas wrote:
Not sure why this is happening but I think it has something to do with
an include statement...
[Server environment]
Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3
register_globalsOnOn
report_memleaksOnOn
safe_modeOff
psuedo code
session_start()
if (incoming POST and $_SESSION['in_database'] != 1)
{
insert to DB
$_SESSION['in_database'] = 1
}
pete
J J wrote:
What is the simplest way to avoid duplicate order
entry on a form? Some people aren't patient enough to
wait for the SSL/credit card
array_reverse()
Vincent M. wrote:
Hello,
I have an array like that:
$return[0][photo] = monuments_01.jpg
$return[1][photo] = monuments_00.jpg
$return[2][photo] = monuments_03.jpg
$return[3][photo] = monuments_02.jpg
$return[4][photo] = monuments_04.jpg
If I use the sort
I use PEAR db
http://pear.php.net/manual/en/package.database.php
http://pear.php.net/manual/en/package.database.db.intro-dsn.php
this is included with the php distibution and makes swapping databases a
doddle
pete
Fernando Melo wrote:
Hi everyone,
What is the quickest and easiest way to enable
its probably because its possible to authenticate with an url ?
eg
http://name:[EMAIL PROTECTED]
Chandu Nannapaneni wrote:
hello all ,
I'm able to get successfully http authenticated from my php scripts
Ex :
$header = POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ;
$header .=
definately take a look at smarty.php.net
Might take a day or so to get used to the concept bit it makes maintaing
and creating large sites (and small) a doddle.
Main thing is that it seperated php code from html
can't imagine not using it on any site anymore..
pete
Adam wrote:
All,
I'm not
If the files are included then one of the catch me's is when theres a
space before or after the ?php ? tags
pete
Mark Roberts wrote:
Could someone help me out with this. I had this problem about a year ago
with another site and I can't for the life of me remember what I had to do
to fix it. I
tikiwiki.org
me love it
Pete
Dennis Gearon wrote:
I need a wiki, VERY simple. BUT OTOH, it'd be nice if it had the ability
to display, or attache a picture to a topic.
Any good stuff known to exist?
MySQL background.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
strip_tags() function
;-)
D. Jame wrote:
HI,
Is ther any way to remove HTML tags from Source File with PHP
jame
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do I set the session timeout - eg someone leaves a broweser for say
half an hour then have to log in again..
As I'm on an intranet I want to increase ro 3 hours
Pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
things to check..
check the register_globals flag in php.ini - you can also set this using
ini_set()
Check the short_open_tags are either on/off - again this chan be changes
in ini_set()
pete
News.Comcast.Giganews.Com wrote:
I am an experienced web developer who is just getting into php. I
Tim Winters wrote:
select EyeColor, count(eyeColor) from males
group by eyecolor
;-)
Hello,
Sorry for the probably newbie question.
Is there a way to show the number of records in a recordset based on a
specific criteria?
For example, if I create a record set of all male employees
Why not save the file as index.php
Michael Seely wrote:
HI -- I just broke something simple and I'm stuck.
I've been using index.php3 as the start file in each directory for a
long time. I just set up a new site using php4 and the index.php4 pages
are not displayed as the default page for the
from the manual
?php
echo 'pre';
// Outputs all the result of shellcommand ls, and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls', $retval);
// Printing additional info
echo '
/pre
hrLast line of the output:
This posting has made me think..
Problem is server side because the script executes to create the image
and the script runs every time..
Try writing out the image to a file and then send that to the browser
psuedo code
if image NOT exists
create it
write to file
embed file
pete
Ilja Polivanov
echo input type='text' name='reportnum' size='20' value='$reportnum';
Rique Gresham wrote:
Hi All,
I'm having trouble with a input box disappearing when using php to
generate the input box. I tested this script in a test.htm and worked fine.
Does it have something to do with the script being
psuedo code
index.php
php
code to process form
if(no_errors) redirect to another page
?
form action=index.php method=post
input type='text' name='user_name' value='?php echo
$_POST['user_name']?
submit
/form
YOur submitting the form to itself so the $_POST variable is available
in the form
also check magic_quotes_runtime in php.ini.
This add's slashes to incoming Post/get variables
You can change this at tun time with the ini_set() function
pete
Steve Buehler wrote:
I am using PHP/MySQL and am having a problem. We have some names and
addresses in the database that have single
http://www.zend.com/zend/art/parsing.php
http://www.zend.com/zend/tut/tutbarlach.php
in fact a google search for php,xml, expat, tutorial
pete
Victor spång arthursson wrote:
Hi!
I've been looking at the XML-parserfunctions in the manual, and they
seems nice enough.
But I'm currently in a
1 - 100 of 134 matches
Mail list logo