$result = mysql_query(...);
while( $t = mysql_fetch_row($result) ){
$array[] = $t;
}
No. I need a 2 dimensions arrays, each line of this array, is the result
of one row of the query and each cell of this row is a field from the
select.
Example, the query return 2 row and 3
$result = mysql_query(...);
while( $t = mysql_fetch_row($result) ){
$array[] = $t;
}
No. I need a 2 dimensions arrays, each line of this array, is the result
of one row of the query and each cell of this row is a field from the
select.
Example, the query return 2 row and
Sorry, can't help you there. I'm not familiar with swf_* functions
Martin
-Original Message-
From: dinnie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 4:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] frame
anyway thanks before mr martin..^_^
i know to use it if use
Hi!
I have web-form, which has field (10 chars), there I enter date (format
dd.mm.). Then data saves to database (date-field type is date).
So everything works, but not fine. When I enter date in format ex.
31.12.2002 and save form, then I'll check what are in db (there are
2031-12-20).
Hi,
I want to understand what is wrong with this code?I am trying to understand
when an empty inputs come from form and I will then give a warning message..
if($_POST[new_password1] ==)
echo empty input;
thanks..
meltem
--
PHP General Mailing List (http://www.php.net/)
To
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On September 12, 2002 01:55, Christian Ista wrote:
$result = mysql_query(...);
while( $t = mysql_fetch_row($result) ){
$array[] = $t;
}
No. I need a 2 dimensions arrays, each line of this array, is the result
of one row of the
On my laptop i still have 4.11 apache,linux on it but its just for
development.
I must be confused about get and post handling. I've been referrencing
them in $_GET, etc but I was just working on something and linked to a
script by using ?section=duh in the query string,etc
Now i thought $duh
Hi,
I have a problem when registering Session variables.
Let me describe.
I have 2 files. In the first one initialization is done and some session
registering.
The second one is my main application. If I call a method from the first
file in my main file , variables are not registered. I use
try this:
if (empty(trim($_POST[new_password1])))
{
echo 'Empty!!!';
}
Meltem Demirkus [EMAIL PROTECTED] wrote in message
001701c25a2c$4758d4a0$5583@hiborya">news:001701c25a2c$4758d4a0$5583@hiborya...
Hi,
I want to understand what is wrong with this code?I am trying to
understand
if ($_POST['new_password1'] == || !isset($_POST['new_password1']))
echo empty input;
-Original Message-
From: Meltem Demirkus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] what is wrong?
Hi,
I want to understand what is
It looks to me like the database is interpreting your date
incorrectly. Try changing the format you use to insert, -mm-dd
- jacob
At 15:11 09/12/2002, Tommi Virtanen wrote:
Hi!
I have web-form, which has field (10 chars), there I enter date (format
dd.mm.). Then data saves to
Well, insert format in wrong, but in Finland enter format is dd.mm.,
so I cannot use other insert format (it have to do other way).
gustavus
It looks to me like the database is interpreting your date
incorrectly. Try changing the format you use to insert, -mm-dd
--
PHP General
Hello,
I use in general the chm help file in English. Today I downloaded the
french version (php_manual_fr.chm) but it's not french it's a mix
german/english.
Downloaded from this page : http://www.php.net/download-docs.php
Christian,
--
PHP General Mailing List (http://www.php.net/)
To
You need to turn register_globals off in your php.ini
file. This is default in php 4.2+
Try this article for a great overview:
http://www.webmasterbase.com/article/758/8
olinux
--- swade [EMAIL PROTECTED] wrote:
On my laptop i still have 4.11 apache,linux on it
but its just for
Why can't you just reformat it before inserting it into the db?
$date = 31.12.2002;
$parts = split(\., $date);
echo $parts[2].-.$parts[1].-.$parts[0];
- jacob
At 16:13 09/12/2002, Tommi Virtanen wrote:
Well, insert format in wrong, but in Finland enter format is
Does anyone know how to add a line describing charset in vbulletin?
MQ.
I need to learn PHP and databases. If I had those skills, I would be so much
more succesful with my web designs. What I usually do, is make the html
templates, and then hire someone, usually expensively, to do the PHP and
MySQL bankend.
Unfortunately, my programming skill is ZERO. Ok, maybe not
Hi,
I am using PHP v.4.1.2, CURL v7.7.2 with Apache server on MacOS X
10.1.5
I have a PHP script containing the following:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,http://omitted.com;);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch,
Hi all,
I'm trying to open a socket connection on a client. The server needs a
username/password combination for this connection to accept. Does anybody know how to
send this with php??
In ASP I use
xmlhttp.Open POST,sURL, false, sUser, sPass
,where sUser=myUsername and
Dude, take small steps, and try to understand what you're doing rather than
jumping in head-on. Do lots of reading and searching.
1. You need an Apache webserver on your local machine. There are many good
tutes, pre-compiled .exe's, etc etc on apache.org, and hundreds of tutorials
on it
Hello Chad,
I started PHP from a book.
I believe a book is a good way to start as it organized and well written to
make sure you're progressing chapter by chapter.
After that, I read articles and tutorials as I needed to expand my skills.
just my 2cents,
Elias
Chad Winger [EMAIL PROTECTED]
Hello,
1)probably you don't have CURL extension enabled in your php.ini file? try
to open php.ini and search for CURL.
2)to achieve a POST via PHP code, look at www.phpclasses.org
Elias,
Geoff Lists [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I am
how can i access a property statically (without creating an object)?
is that possible at all?
i.e.
class foo
{
var $prop = array('some','defines','are','here');
}
$myVar = foo::prop;
OR
$myVar = foo::prop[0];
how can this be realized?
can someone help? is that possible with php?
--
I started also from a book Begining PHP 4 by wrox. I had a good
understanding of programming languages before I started as I had experience
of Delphi and some Java. oh and BASIC which I also learned what I was about
6! on a spectrum by any chance?
If you have a grasp of programming languages
Edit this to what you need:
http://www.evilwalrus.com/viewcode.php?codeEx=546
Regards,
Heidi Belal [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I was wondering if anybody could tell me the best way and how to code
sending an attachement with an email
Justin,
Thanks for the reply. Funny seeing the word dude again. Havent heard that
in quite a while, since moving over here to Italy. :)
I hope I didnt come across as thinking I can just learn this in a week or
two. I'm bright, but I'm not a genius. I know, and realize that it is a long
a
Hi people...
Anyone know a class or a solution so I can find the DPI (dot per inch)
of an image?
getImageSize do not help me? Any other solutions?
Regards,
Johan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$hostname=https://www.url.com;;
$port=443;
$loginmessage=GET / HTTP/1.0\r\nHost: www.php.net\r\n\r\n;
$timeout=30;
$fp = fsockopen ($hostname, $port, $errno, $errstr, $timeout);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
fputs ($fp, $loginmessage);
while (!feof($fp)) {
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says...
Could you explain what man patch does or is? I haven't updated using a
patch before. Thanks.
From: [EMAIL PROTECTED]
Newsgroups: php.general
Date: Wed, 11 Sep 2002 23:14:55 +0200
To: [EMAIL PROTECTED]
Subject: Re: How do I
In article 001701c25a2c$4758d4a0$5583@hiborya, mdemirkus@momentum-
dmt.com says...
Hi,
I want to understand what is wrong with this code?I am trying to understand
when an empty inputs come from form and I will then give a warning message..
if($_POST[new_password1] ==)
echo empty
Hi Chad.
Some really excellent places to start:
http://www.onlamp.com/php/
http://www.phpbuilder.com/
http://www.devshed.com/Server_Side/PHP
http://www.zend.com/zend/tut/
Good luck!
Regards
-|Scott
-Original Message-
From: Chad Winger [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Meltem Demirkus wrote:
Hi,
I want to understand what is wrong with this code?I am trying to
understand when an empty inputs come from form and I will then give a
warning message..
if($_POST[new_password1] ==)
echo empty input;
And as final addition, you probably have to use
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Hi,
I am using PHP v.4.1.2, CURL v7.7.2 with Apache server on MacOS X
10.1.5
I have a PHP script containing the following:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,http://omitted.com;);
curl_setopt($ch,
I'ld also add isset() to avoid warnings too:
if (isset($_POST['new_password1'])
!empty(trim(isset($_POST['new_password1']
{
echo i am not empty, you can do whatever;
}
else
{
echo i am empty! show error message;
}
Erwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Hello,
I use this code :
$myarray= array();
session_register (myarray);
$i=0;
while ($row = mysql_fetch_object($result)) {
$myarray[$i][0] = $row-ID;
$myarray[$i][1] = $row-NOM;
$myarray[$i][2] = $row-PRENOM;
$i = $i + 1;
}
for($i=0; $isizeof($myarray);$i++){ ?
a
i create some pdf in php like this :
?php
$p=PDF_new();
PDF_open_file($p,);
PDF_begin_page($p,595,842);
$font=PDF_findfont($p,Helvetica-Bold,host,0);
PDF_setfont($p,$font,18.0);
PDF_set_text_pos($p,50,700);
PDF_show=($p,Tess pdf!);
PDF_continue_text($p,Line 2 nih);
PDF_end_page($p);
I'm doing a little form:
In the first page i have the form to insert datas,then redirect the
control to a script that check if the filds are correct.If they are
correct redirect the output to a prospect else to the first page.The
problem is that it gives an error like this
Warning: Cannot send
Ahem *tap* *tap* is this thing on?
Hi everyone, my name is Will and I've been addicted to php for 3 months
and 21 days... *grin*
I'm hitting a bit of a brick wall in a current project - the answer is
probably quite simple, but I'm still newish to php and coding in general
so bear with me:
I
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says...
I'm doing a little form:
In the first page i have the form to insert datas,then redirect the
control to a script that check if the filds are correct.If they are
correct redirect the output to a prospect else to the first page.The
we are using apache 1.3.12 server, php 4.2.3 on linux.
Before, we didn't write cookies.txt on harddisk. We changed some
configuration in httpd.conf like.
We disabled mod_proxy module and then cookie had been wrote. But now, we
are not reading
cookie variables from cookies.txt (Netscape). I konw
we are using apache 1.3.12 server, php 4.2.3 on linux.
Before, we didn't write cookies.txt on harddisk. We changed some
configuration in httpd.conf like.
We disabled mod_proxy module and then cookie had been wrote. But now, we
are not reading
cookie variables from cookies.txt (Netscape). I konw
please anyone can help me about querying a domain
like whois queries ?
if someone has got a script , it's acceptable
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Looking for this file, php_pgsql.dll
running php 4.1.2 on w2k.
anyone where i can find it.
Regards
Nyon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
As far as Apache is concerned, I looked at the website, yet couldnt find the
exact server software, so if you could provide me with a direct link I'd
appreciate it. It would be to my benefit however, if I could not only serve
myself html pages as http:// but also as file:// as internet
After being told off on the dev list I have posted this on this list (I
thought it was techie enough to go on that list but I was wrong)
I am running a large PHP/MySQL/Apache driven website and I am finding that
the apache Processes get larger and larger as the days go on. When I
stop/start
Have a php page that runs exec() or system() and does a whois query on the
domain you want and then have it output the text to a page. Very simple
to do, less then 2 minutes of coding.
Adam
On Thu, 12 Sep 2002, yasin inat wrote:
please anyone can help me about
Thanks for the reply :P
I found it actually. Now I have the apache and php running, and am able to
run my aforementioned test script locally. I am still looking through the
manual now for the syntaxes and such. I am also looking on the web for some
simple prewritten scripts to run and then try
You can use PHP and file() to do with, along with the str functions, but
if I were you and you already know what the filename of the file is you
are working on (or can submit it via a form) I would use the unix command
cut to do the operations on the file. Use another exec() or system() and
have
I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...
When I type the IP address of the server into my browser, all I see is PHP
code. However, when I type the IP address, with the index.php, it works
perfectly! Why would one work and not the other?
192.168.1.1
I have no idea what that means, sorry :)
My point for wanting to do this isnt because I really want to make a list of
the home teams or whatnot. But obviously, at some point, I am going to have
to learn how to split different bits of information, how organize them in
certain ways, in certain
The detailed answer, I have no idea.
The simple answer, currently there compatibility is NOT stable, but will
be soon
~ Matthew
-Original Message-
From: Aaron Gould [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:35 AM
To: PHP-GENERAL
Subject: [PHP] PHP or Apache
If you can't do a exec or system call on your server, then look at the
many examples of whois scripts here:
http://www.hotscripts.com/PHP/Scripts_and_Programs/Networking_Tools/Whois/
some of which use sockets or other methods which might be allowed on your
server
Also for reference,
Rick,
Someone had mentioned doing the following:
$name = $_POST['name'];
$message = $_POST['message'];
at the top of your script to enable the variables.
Or, you could try this at the top of every page:
global $HTTP_POST_VARS;
global $HTTP_GET_VARS;
and then use:
$_POST[field_name]
Heh - I know how you feel.
I'm an ex network tecchie fighting my way through a career change to web
developer - spent some time messing with various scripting tools and so
forth, but never really had any formal coding experience until I hit php
- if you want some advice on learning php mine is
Hi all,
One of my customers needs to show magazine newspapers reviews of his
work, which are scanned in such a low res due to a file size matter, that
the images are not quite readable. Can I convert large size images to pdf
with PHP in order to show them faster on-the-fly? Will this be better?
That's an expansive reply! Cheers Peter
Since I had to alter the db (quite simply) to include this tweak, I thought
best to do it now in dev phase (and keep it as an option), that mess around
with it later when lots of data exists.
It's my own code, and benchmarks show it to perform fast.
Html is something i do in my sleep :P thankfully I've been good enough with
it to make a decent living with it. What you mention is quite logical, as i
would find myself correcting the ppl coding the databases and/or scripts by
saying, stuff like you realize that when the info is returned like
Hello everyone,
It is a question about .php file extension. Is there any way to access PHP4
script in Apache 1.3.x without .php extension? For example, how to use
http://localhost/phptest?id=22
instead of
http://localhost/phptest.php?id=22
Thanks a lot!
ld.
make a .htaccess file like this
Files main
ForceType application/x-httpd-php
/Files
Files boards
ForceType application/x-httpd-php
/Files
Files read
ForceType application/x-httpd-php
/Files
This makes the file main boards read php files
What we do with it is make dynamic pages look like dirs
make a directory called phptest and put a file, index.php in it...never
tried it tho.
On Thu, 12 Sep 2002, LI DONG wrote:
Hello everyone,
It is a question about .php file extension. Is there any way to access PHP4
script in Apache 1.3.x without .php extension? For example, how to use
Heh good so you're not a complete n00b then :P Luckily I had a fairly
decent grounding in html and css as well when I got going - I'm just
putting the finishing touches on my first serious project atm using OO
style php which made the learning curve about 10 times steeper as I had
no previous
I've made a website for a real estate appraiser, who wants to put all his appraisals
for his clients online. I have stored these PDF documents in a folder outside of the
webserver folder, for security. When a client successfully logs in and clicks the link
to biew the PDF, I have a PHP script
Hi..
anyone know any function to convert numeric values to word..
something like this:
1252 -- one thousand two hundred and fifty two
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam Williams wrote:
make a directory called phptest and put a file, index.php in
it...never
tried it tho.
In that case you will have to call http://localhost/phptest/?id=22
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Joseph Szobody wrote:
I've made a website for a real estate appraiser, who wants to put all
his appraisals for his clients online. I have stored these PDF
documents in a folder outside of the webserver folder, for security.
When a client successfully logs in and clicks the link to biew the
Thanks Erwin, that helps but I'm still not getting it to work. Should I still use
the
Header(Content-type: application/pdf);
line?
I tried using readfile() keeping the header. When I click the link to the PHP script
that should show me the PDF, the IE status bar says something like
|Serie C2 Round 2|09.09.02|20.45|Sangiovannese|Florentia Viola
|Serie C2 Round 2|09.09.02|20.45|Gualdo|Florentia Viola
So for example, lets say I wanted to make another html form
that has a form
field for List team by: and and select either home or away ... by
selecting home, the browser
Joseph Szobody wrote:
Thanks Erwin, that helps but I'm still not getting it to work.
Should I still use the
Header(Content-type: application/pdf);
line?
I tried using readfile() keeping the header. When I click the link to
the PHP script that should show me the PDF, the IE
Hey guys,
I just setup php nuke (damn,thats a big package) but the problem is that i cannot
create a super user ,go the admin, or do anything
when i go to index.php it tells me to create a super user by clicking the link,after i
click that link i go to admin.php and when i fill that form,it
Ryan A wrote:
Hey guys,
I just setup php nuke (damn,thats a big package) but the problem is
that i cannot create a super user ,go the admin, or do anything
when i go to index.php it tells me to create a super user by clicking
the link,after i click that link i go to admin.php and when i
I think you need change permissions the file that holds configurations
settings for php-nuke.
Read the install instructions it's in there
chmod 665 config.ini
or whatever the name of the file is
Ryan A wrote:
Hey guys,
I just setup php nuke (damn,thats a big package) but the problem is that i
OK y'all, go ahead and shoot me, but this is what I'd do:
$mystring=enters $56.55 for example;
$mynumber=$mystring+1-1;
$mynumber now equals 56.55 If you want the . to go to, use the other
methods.
-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
As an fan of Homesite for many years I'm a little annoyed I can
no-longer purchase the product seperately, so am going to be
stuck with v5.0 as I don't fancy the idea of forking out
for Dreamweaver MX.
I'm looking for (hopefully) a GNU/GPL Open source product that
supports PHP syntax (and
Hi all,
Maybe a stupid question, but i have to make it:
How can a local variable pass its value to a global one?
Is it possible?
Thanks in advance.
Peace Love
skitum
I'm writing a web app with php, and would like to do the following:
when an error occures (a php/apache error or an application error) the error
is logged to a log file. The user is displayed a page that says 500 internal
server error, and nothig more. I have access to .htacces and no access to
Ok I think it's working now. When I click the link going directly to the PHP
script, it's displaying the PDF file in the browser appropriately. Exactly what I want.
Now some of these PDF docs are so big, they could take a while to show up if a
client is on a slow connection. So now I
I'm used to the unless-statement in perl... How do I do this:
if string A or B are NOT in string C, then do something and quit.
In perl, I would do this:
unless ($c =~ /$a|$b/) {
blabla
exit 0
}
- M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I have a large binary file (50+ megs) ... I want to read the first 1k
bytes, make changes, and write a new file with the new 1k bytes plus the
balance of the original file unchanged.
I've tried several different ways of doing this, but nothing works, and I'm
out of ideas - any suggestions as
eg ...
$var = 'value';
function myFunction($var2)
{
GLOBAL $var;
$var = $var2;
}
Skitum [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all,
Maybe a stupid question, but i have to make it:
How can a local variable pass its value to a global one?
Is
Thanx friends
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if ($A != $C || $B != $C) {
I think, but im fairly new
Magnus Solvang [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm used to the unless-statement in perl... How do I do this:
if string A or B are NOT in string C, then do something and quit.
In perl,
Sorry if this question has been asked before...
Is it possible to build PHP on Windows using Borland's C++ Builder? All
the docs I've seen talk about MS Visual C++, so I wondered if that's the
only compiler that will build it. I've not seen any mention of other
compilers.
Cheers,
Richy
All,
I apologize up front for being off topic, but I don't want to have to
subscribe to other lists unless necessary. I know that someone on this list
should be able to help me out.
I have the SQL string below that I am running. The problem I'm having is
that the history table being called in
[snip]
SELECT customer.customer_id, customer.customer_name,
business_unit.business_unit, customer.created_date, CONCAT_WS(, ,
username.last_name, username.first_name), history.modify_date, CONCAT_WS(,
, modified.last_name, modified.first_name), history.description
FROM `customer`
LEFT OUTER JOIN
Hi,
I'm looking for somebody to give me a hand to create some expressions to
extract my information out of an ebay auction page. So that I can manage
them more effectively.
I've try lost of patterns but can't seem to get the hang of it.
Is there anybody willing to lone their brain to a php
snip
In the past I've been using TextPad and UltraEdit but really want
something that picks up on PHP syntax and function spelling (eg
Homesite would 'bold' a function word if it was splt correctly).
/snip
Just download the PHP syntax file for TextPad.
Dave
--
PHP General Mailing List
First some background. I have two servers:
1) Windows XP with Apache 1.3.26 and PHP 4.2.2
2) GNU/Linux with Apache 1.3.26 and PHP 4.2.3 compiled in statically
Both are working well, but I now want to add PDFlib support to both servers.
On the win32 machine it was as easy as uncommenting
jEdit is nice
www.jedit.org
Seán Dillon wrote:
As an fan of Homesite for many years I'm a little annoyed I can
no-longer purchase the product seperately, so am going to be
stuck with v5.0 as I don't fancy the idea of forking out
for Dreamweaver MX.
I'm looking for (hopefully) a GNU/GPL Open
Hi,
I've got a customer who needs a banner rotation system. I don't want to
recreate any wheels and I'm tryin to avoid a lot of research.
I'd like one that doesn't use globals, it uses PEAR classes and preferably
uses the Smarty template system or another template system, or you've used
it
There is no 'unless' in PHP, so you just have to grind it out. If you are
searching for known strings, rather than string *patterns*, use the strstr()
function here: http://www.php.net/manual/en/function.strstr.php.
So, something like:
if(!strstr($c,$a) !strstr($c,$b)) {
bla;
exit;
}
True, but isn't unless just a negated while?
q.e.d.
while ($c==$a OR $c==$b)
{
blabla
exit 0
}
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: unless something...
There
Indeed, it is a negated something or other.
-Original Message-
From: David Buerer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 11:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Re: unless something...
True, but isn't unless just a negated while?
--
PHP
-Original Message-
From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
Hi,
I've got a customer who needs a banner rotation system. I don't want to
recreate any wheels and I'm tryin to avoid a lot of research.
Have a look at phpAdsNew
http://sourceforge.net/projects/phpadsnew/
Hello all,
I've got a bit of a code problem that's been baffling
me for a while now.
I'm working on a basic weblog system for personal use,
using MySQL. I've got the new post and delete a
post aspects working fine, but for some reason, I
can't get the update a post part happening.
What
Lo all,
I get a timeout on line 523 of my code (posted and marked below). However,
I fail to see where the timeout is occurring, and even debugging
(mysql_error()) doesn't report anything wrong!
I'm baffled as to what exactly is causing this timeout The code is
currently on Apache (Win32)
Hello everyone.
I want to implement templates in a site, but am having trouble processing
php within the template file. The application flow is as follow:
-open the template file (which has some place holders) with
$fileHandler = file($file_name)
-Replace placeholders (within the template
The above process works, as far as replace the place holders, and printing
the new content (which is an HTML file). However, it will not process PHP
scripts, within the template.
If it's really a template, why does it have PHP scripts within? Why not just
replace those scripts with place
I have an application where I need to write PHP code to a file that will be
used later...but it's not working the way I'd expect.
When I issue the following:
fwrite($fp, ? echo $LayerScale);
If $LayerScale is defined, then fwrite outputs the value of $LayerScale to
the target, NOT the string
John
Include your template this way:
$file_name=templates/somefile.php
$New_Content1 = 'This is the new text';
$New_Content2 = 'This is the other text';
include $file_name;
In the template file, have ?php echo $New_Content; ? etc wherever the
content should appear.
Then you can put other
On Thu, 12 Sep 2002, Hankley, Chip wrote:
fwrite($fp, ? echo $LayerScale);
If $LayerScale is defined, then fwrite outputs the value of $LayerScale to
the target, NOT the string $LayerScale.
How can I overcome this?
fwrite($fp, ? echo \$LayerScale);
g.luck,
~Chris
--
PHP
1 - 100 of 138 matches
Mail list logo