>Or just fopen() would work fine.
Except you can't set the "timeout" for fopen() and it's incredibly long,
isn't it?...
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>Hello,
> I have a PHP script which gets data from a MySQL database and
>returns an image. So returns the image of
>id 3 from the database. What I really want is to state width is 100 and
>height is 100 for example so I do not have to downlaod the entire
>picture and specify the width and height
>Does anyone know anyway to synchronize calls to php functions.
>I was thinking of writting a hack that uses a lock file on the server put
>if there is a proper way to do it then I would
>rather use that.
>Any suggestions would be good.
Shared memory may be faster than lock files...
*WHY* you t
>What load are you talking about? This is just an issue of telling the web
>browser the image's dimensions. It's not like the image is being processed
>to convert it to that image size.
Au contraire.
If you have an image named 'huge.jpg' at 1 x 1, and you ask a 386
computer to:
Then
> How can I regex to compare the last three chars of a string to "php"?
if (substr($foo, -3) == 'php'){
}
Oh, wait, you wanted to use RegEx. Sorry, can't help you there. :-)
Don't use a cannon to swat a fly.
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://
>I forgot to point out another disadvantage of turning on register_globals
>apart from that of security is that when you are sending a page with a
>form to the same page, e.g:
>
>
>
>there is a tendency to lose info.. E.g.
>If you are sending text separated by spaces you only manage to
>send the
>Hi everyone...
>
>I have a php page that return rows from a database. I then have an href
>link to the individual thread as such:
>
>".
>
>
>This works, it opens a new window which has the detailed information needed.
>However, how would I write java code into this to force it to open the
>windo
>> > tecnically whats the diffrance if I do:
>> >
>> > require("http://localhost/image.gif";);
>> > or
>> > require("http://www.domain.com/image.gif";); ?
>>
>> The first one requires the file at "localhost/image.gif", and the
>second
>> one requires the file at "www.domain.com/image.gif".
In
>I have been trying to figure out how to execute
>commands on a win 98 system with php and apache.
>
>exec(), system(), and shell_exec() seem to work when i
>try to execute a command (such as "netstat -n" or
>"dir") because I can see the ms-dos window open on the
>system, run the command, and then
> How do you make you PHP scripts require explicit variable declaration?
>Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option Explicit' in
>VB/VBScript
The closest you can come is:
This can also be set in php.ini and/or .htaccess
Note that PHP simply does not *have* variable declaration
>I've created the following file (see HTML/JavaScript code below) which
>allows end-users to dynamically (on the client-side) move items from one
>form select list (called "list_managers" to another (called simply
>"managers[]"). When, however, I attempt to access the end-user created
>"managers[
>>Your form action parameter has an absolute url specifying an https
>>protocol. When the browser submits the form, it uses the url you specify
>>which is https. So the request is going to be encrypted. You might
>>consider serving the form page from https as well to kind of tighten
>>things up a
>If you don't mind, I'm interested in learning more about what exactly
>ASP does differently. Are there two HTTP responses sent?
No, it just happens to have sent them in the order his browser liked.
ASP can't do anything "different" from PHP.
I used to laugh when ASPers asked why PHP had to do
>> Just looking for a pointer or functions I can use to do this...
>>
>> I have a spreadsheet with a couple thousand entries that I'll be using for
>> populating a MySQL database. The spreadsheet has names listed in "last,
>> first" - the database I'll be populating has separate fields for first
>I need to echo a string that contains both quotes and double
>quotes.
>
>I remember doing this once using a special construct where the
>string started on a new line with a triple slash if I remember well. Or
>it was a triple something...
>
>I can't find the topic in the online PHP doc...
>
>A
>www.net.co.cr/test/test.php
frame session test
'; }
if ($QUERY_STRING == "1.html")
{ echo "This is just a dummy frame."; }
if ($QUERY_STRING == "2.html")
{
echo "";
echo "The value of \$_SESSION['tree'] is:";
echo gettype($_SESSION['tree']);
echo "";
}
?>
--
Like Music?
>> If you have to do header("Location: ...") you have a
>> design/engineering/organizational problem in your code/pages/site.
>>
>> I'm sure a zillion people will disagree with this "rule"
>
>I agree, except there's one exception to this that I can't see a way around.
>
>When dealing with form s
>I don't agree with the general rule of thumb that the use of the
>"Location" header is bad, but I have reviewed plenty of code where
>people misuse it terribly, as a lazy goto-style operation. In most
>cases, you do want to design your application to:
>1) receive data
>2) analyze data
>3) resp
>How would I get recent stock prices in a page? I obviously need to get
>this from some source.
It's so easy, you have to pinch yourself to make sure you're not dreaming...
:-)
http://www.sometocksite.com') or die("Could not read
stock page");
$stockhtml = implode('', $stockhtml);
# You now
>when I echo menu($id) I get the current page's title.
>
>How do I print it's peers and it's single parent?
You will need a second query to ask for all the children of the parent:
$peer_query = "select id as child_id, title from meta_data where pid =
$pid";
$peers = mysql_query($query) or error_
>1) does this HTTP protocol work with all browsers?
Every one I've ever seen...
But it *might* not work with, say, Mozilla 1.0 from 1989 or so... :-)
>2) are there any complications that need to be addressed
Yes.
Once you decide to send a Location: header, all bets are off on the other
header
>
>I get the following error when i try to install an app
>called "PHPwebsite" ( http://phpwebsite.appstate.edu/ )
>
>Warning: Cannot add header information - headers already sent by
> (output started at C:\apache\htdocs\php\setup\index.php:9)
>in C:\apache\htdocs\php\htmlheader.php on line 30
>
>
>Well I have a system that people can login to, and I want to produce an
>array (or something of the sort)
>that holds who is logged in so that I can monitor it.
Aha!
The "who's logged in right now" feature! :-)
Problem #1.
First, you need to clearly define "logged in"
Am I logged in for the
>I have a php script that performs a query and then dynamically builds a
>section of a page for every row returned. Each section has some fields and
>three submit buttons. My problem is this. If I make a change to one
>particular section, how can I submit the form passing only the relevant
>sectio
>$output = shell_exec("uudeview -i /bla/bla.txt -p /bla/bla/");
>echo "";
>echo $kick_my_ass;
>echo "";
>?>
> And I get nothing :(. Script like below:
Well, no...
Your data is in $output, and you are echo-ing out $kick_my_ass... Try echo
$output
>$output = shell_exec("uudeview");
>echo "";
>ec
>I want to show info when my docs are viewed though my stats program. I have
>decieded the best way would be to put the info into a DB through php file
>then output the PDF, Excel, Zip or Powerpoint file.
>
>Only trouble is I have no Idea how to do this
Stuffing the actual data into your database
>I am trying to make my PHP safe against malicious data user inputs.
>Reading up on this most people suggest using addslashes(), magic_quotes
>on and other things like mysql_escape_string();
>
>But I have been running into the problem that I mess up the user's input
>because I use more then one
>magic_quotes is convenient for newbies, but after a while you'll find it
>only trips you up, as you've discovered.
Odd.
In the 5 years I've been doing PHP, magic quotes has never hurt me in the
least.
It's just more convenient than calling addslashses() all over the place.
And do you really
>I'm having a weird problem with ora_do. It works fine as long as I don't
>have a "WHERE" clause in the query. For example:
>
>select * from table_name
>
>works just fine but
>
>select * from table_name where col_name = value
>
>returns nothing.
>
>However, if I use ora_open, ora_parse and or
>Say that the end-user closed the browser(s) without logging off. The
>$_SESSION can not be destroyed because the broswer(s) is closed. So, if hte
>end-user did log off and close the browser(s). How can I destroy the
>$_SESSION since the session_register() & session_destroy() can not be used
>w
>I am having the worst trouble trying to write a tiny simple script that
>will upload a file. Below is my code - can anyone tell me why it's not
>working
>
>HTML
>
>enctype="multipart/form-data">
>
>
>
>
>
>PHP (upload.php)
>
>$filename = "/test.txt";
>if (!move_uploaded_file($userf
>On my site, when a user logs in, their password is encrypted using md5() and
>the username and encrypted password is then passed from page to page using
>hidden form inputs (clicking on a link submits the form using POST).
>Does anyone have any comments on this method e.g. security wise? I know I
>I just installed php 4.2.1 and i have a couple of URL's that pass variables
>through links (www.domain.com/index.php?test=123) and when I run that it
>comes up on the next page and the test variable is empty? I can't figure
>this out but if I had to guess I would think it's some setting in the
>
>I need to show up some data from a DB which consist of phone numbers
>with area code. Theyre stored like () . What is the best
>approach to print them into some textboxes so they can be edited? Im
>using substr but area codes (inside parenthesis) goes from 3 to 5
>numbers, so someti
>List,
> I think I saw this one on here before...when reading/writing the database
>I get this when executing odbc_exec(...); What was the fix?
>
>
>
>FATAL: emalloc(): Unable to allocate 1073784417 bytes
This generally means that you tried to suck in a zillion bytes to a
variable, and PHP on
>https://my.server/reports.php"; method="post"
>target="_blank">
>
>
>https://my.server/reports.php"; method="get"
>target="_blank">
>
>
>
>These forms are identical with the exception of the post/get methods.
>
>A PDF file is being dynamically generated and displayed in a pop-up.
>
>The GET metho
>Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but
>I'm receiving the error message:
>cannot load MySQL extension,
>please check PHP Configuration.
>
>I checked the php.ini and couldn't find anything related, my configure
>command says '--with-mysql=shared,/usr' and I have n
>I'm wondering if this can be done, and if so, what's the proper way to do
>it.
It can be done, and the proper way to do it is to use an array :-)
But, if you are hell-bent on using "variable variables" you should really
read the PHP documentation about them:
http://www.php.net/manual/en/langua
>hi
>I have an extension problem.
>i have wrote this exemple
>#include...
>char* xx(){
>
>return "true";
>
>
>}
>it's a simple example.
>I have compiled it into .SO dynamic library.
>when I try to load it into PHP i get this message
>cannot include .(may be not php extension).
>CAN YOU HEL
>that's connected to the web, and it works. I went out and got the
>php.ini that my user uses on that server and checked it with my local
>copy. The only difference between the two were the lifetimes of
>cookies, etc.
Details, please. :-)
>I've also tried passing the $PHPSESSID on to another pag
>> >The GET method form works fine, while the POST method (which is what I
>> >need to use) pops up a message about the page containing both secure and
>> >nonsecure data.
>> >
>> >WTF?
>>
>> Well, the new browser window opens, but you're loading a PDF, not HTML, so
>> it's not really getting any
>get data is insecure by nature so the whole page is insecure and no
>warnings, as soon as you post you invoke the security.
No, no, no.
POST data is *NO* *MORE* *SECURE* than GET data! Period.
Okay, if you want to get picuyane -- A total idiot user can read the URL in
their location bar, and
>Hi there,
>
>zend optimizer 1.3.1 / IIS 5 / PHP 4.2.1 / Windows 2000
>
>I've been getting "Stack Overflow" errors frequently. Our software has
>hundreds of db queries and hundreds of includes per page execution. Just to
>give you some context, so I can't tell you exactly what I'm doing that's
>
>After upgrading to Red Hat Linux 7.3 (which also includes a new PHP
>version), I saw this warning (Uninitialized string offset) on my apache
>error log files. It refers to a line which was perfectly legal before:
The new settings in php.ini are error_reporting E_ALL by default.
Those errors hav
> Hi, i am writing a news management system in PHP, with comments, etc, and
>i am wondering if theres a better way of structuring the tables to increase
>speed and stability.
> This is how i am structuring my tables:
>
> Table 1 (news)
> --
> ID
> Date
> Author
> Titl
>what is the path of the "includes" directory
>in a windows dist of PHP (current version)?
>
>is that where all the dlls are?
No.
The DLLs are in your "extensions_path" (or something like that).
Your include_path is where *YOUR* PHP files can be placed so you can use
them in multiple scripts.
>On Fri, 5 Jul 2002, Jerome Houston wrote:
>> if the browser is making a request, and it sees an https:// at the beginning
>> of the request URL, it will :
>> 1. get the domain's public key from a public key server
>> 2. encrypt the whole request with the domain's public key
>> 3. submit it to
>I saw that Microsoft has a Certificate Authority server package that allows
>you to create your own key. Is there a way to do this in linux? In this
>particular instance, it's me accessing my own web site. I'd like to encrypt
>the session and I'm don't need someone to confirm anything.
You ca
>Question I have is
>
>I want to run a print job of 200+ invoices
>
>I have a javascript code to open a print dialog box and
>Then go to next invoice and do the loop..
>
>Problem I am having is that I want it to pause if the ok button on the
>dialog
>Box is not pressed..
>
>When I run the scr
>Also, how can I make certain columns into links? I'm making a site that
>will list college courses. When users decide to browse listings by
>discipline, or college, I'd like the titles of the courses to be links to
>fuller descriptions of those courses. But I'm
>not sure how to do that.
>i work on Win98, apache 1.3.24/PHP4.2.1.
>I include a PHP file (867 lines) witch contains functions :
>
>include("include/fonctions.php");
>
>This previous code is inserted in the upper frame and the left frame.
>But sometimes, i've got errors like :
>
>Parse error: parse error, unexpected '.' in
>Hello all,
>
>I have been trying to modify the working of one of my pages which prints a
>png graph. What I had was an included file named "graphit.php" which
>creates a png file. I used the function
>imagepng($image,'temp.png') to create an image and then used src=temp.png> to have the image
>I was reading the post by Pag called MySQL backups and I have the same
>question, but not the shell access. It came to my mind, that if will be
>very useful for me, and probably for many of us newbies, to be able to
>build an automated PHP system that could make backups by itself at a
>specifi
>Hi!
>
>I'm having problems with createfrompng
>
>I do the following:
>
>1 Creates a new image
>
>2 Fill it with black
>
>3 copy an jpg on to it
>
>4 write some text
>
>5 tries to use copyimageresized to put a transparent png over the whole
>image
>
>It's in point 5 it goes wrong, because of som
>Hello php-general,
>
> I've recently faced big optimization issues. Here is mine
>situation:
>
>I make connection to NNTP server and fetch headers from the news group
>lets say bla.bla.bla. Connection made ok. Next Php tryes to put
>everything into the array. It's okey if number of headers a
>Hello hello,
>
>I have this strange thing with a sort of login procedure (still working it
>out, but it will work eventually)
>On the first page, you log in (username + password)
>Then we come to 'login.php' where I have this header
> 1 2 session_start();
> 3 $logi
>i want to add in textarea a string with new line tag in it. how to do that?
>
>my try:
>$string="-line1n\ -line2 n\-line3";
>echo "$string";
>
>but i see a single line instead of:
>-line1
>-line2
>-line3
>
>tx in advance for any help
In addition to using \n instead of n\, you also should do:
ec
>Does anybody know which is the lenght limit for the parameter string
>when GETting an URL? If there is a limit at all, of course.
Yes. :-)
The limit *USED* to be 255 characters.
I think it's up to 1024 now, for GET.
Any server *MAY* choose to impose *ANY* limit on GET, so long as they don't
>My web host has just upgraded to PHP 4.20. My MySQL database is full of
>session_encoded fields, but since the upgrade I can no longer session_decode
>them.
>
>After doing phpinfo I find the following settings ...
>
>register_argc_argvon on
>register_globals on on
>
>
>I'
>I tried following all of your suggestion and so far, still the same. I
>tried changing other feature in the php.ini and check the phpinfo and found
>that they haven't changed either. So, the problem lie with the file path in
Aha!
Then you *missed* the one where he said:
Check phpinfo() and s
>All,
>
>My session is not expiring and I believe that I set this correctly.
>I'm looking for a 15 minute expiration time.
>
>My current setting:
>
>session.cookie_lifetime = 900 ; lifetime in seconds of cookie
>; or if 0, until browser is restarted
>
>Is
>Are there any scheduling fuctions with PHP? What I'm looking for is
>something functionally close to a crontab.
Most PHP sites just use crontab when they need crontab... :-)
So you not have SSH access?
How busy is your site?
What kind of actions do you need to have occuring?
You *COULD* hack
> I'm using a postgres datbase for my PHP project, how do I make stored
>procedures? Or if no SPs then what would be recomendation for building
>simple/reuseable "Put" and "Get" procedures for my data?
Well, if nothing else, PostgreSQL does support user-defined functions, going
'way back.
Tec
>
>Hey everyone,
>Am working late as usual before the weekend and so I fear i'm a bit braindead!
>Anyway,heres my problem
>I have fields named "total" and "avg" and no idea how many records
>how do I get the total and average?
>Do I use a function?
select sum(foo), average(foo), count(foo) fr
>For Miguel Cruz posting back there. If I understand correctly, the private
>key are inside the public key. Is this correct?
If you have an SSL (or SSH, or whatever) key thingie, it always comes as a
"pair"
The private half, and the public half.
You never, ever, ever, ever give the private ha
>:-) Don't tell me if you're gonna use it for production!!!
Depends on your user-base.
If all of them know that the only difference is $119, and all of them
inherently trust your web-server and domain name to be correct, there is no
more risk with the free one.
It's a true shame that the gener
>I can't seem to upload file bigger than 5M even if I set the
>upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the
>script. What's am I missing here? Is the temporary upload directory won't
>handle file this size? Please give me some pointers here. TIA.
Does show a 20 M limit?
>On Fri, 5 Jul 2002, Richard Lynch wrote:
>> But unless you paid the $200 to get it from a CA, surfers will see a nasty
>> (and totally inaccurate/misleading) warning about how insecure it is.
>
>It is easy to launch a man-the-middle attack against a session being
>initia
>Stored procedures are like any other type of programming construct.
>You can do them right or you can do them wrong.
Yeah, and GOTO is perfectly fine... In the right place.
>When making a stored
>procedure you should stick to ansi SQL as much as possible.
All my SQL was so dirt-simple, it coul
>>But unless you paid the $200 to get it from a CA, surfers will see a nasty
>>(and totally inaccurate/misleading) warning about how insecure it is.
>>
>
>They should. To do otherwise would be inaccurate and misleading.
>
>>The transmission is no less secure -- It's that the web-server on the othe
>i`ve coded a mass-mailer for my site but the $from header doesn't work.
It works for about a million others. Show us source code.
>when i get a test message back from it it says from "Unprivileged user" =
>not what i set it to.
That sounds more like email bouncing...
But it could be your sen
>Re: help help help!!pls
First, use a valid subject. Experts will simply hit "Delete" for such vague
subjects as "Help"
>I have multiple check boxes ...and I gave the single name to all check
>boxes.
>
>If I post to my php script I am not getting all the values as an
>array.
>I have been going fine in a Web Stats program until now.
>
>How can I figure out which day has had the most records(ie visitors)
>inserted?
>
>There is a time column which has unix timestamp of when the record was
>inserted.
>
>The best I can think of currently is:
>To use a while loop to repeate
>I wanna be able to do some stuff, which involves getting data from my phpBB
>board.
>
>Member Count: (this section should autoupdate)
select count(*) from
some_table_whose_name_I_do_not_know_but_you_can_look_up_in_phpMyAdmin
>Number Of Forums: (this section should autoupdate)
select count(*) f
>
>Hi, i'm making a script, that logs some ftp characteristics, like resume
>support and stuff...i try using ftp_site(), but it's not working
>
>I want to send a command like REST, but ftp_site() send the command like
>this: SITE REST, with the SITE before the command...any way to do it?
>Thx :D
>The following PHP script doesn't pass $course ("statistics") to the next
>script. Why?
>
>// file: "root/reg_users_2.php", updated: 07/06/02
>set_time_limit(300);
>session_start();
>session_register("course");
>$course="statistics";
>header ("location:estadisticas/contents.php");
>flush();
>exi
>I have to convert a perl script to PHP trying to do so I get negative
>values from hexdec(), If I use (int)hexdec() the numbers aren't negative
>anymore, but they do not add up to what they should.
>From the manual: http://php.net/hexdec
"The largest number that can be converted is 7fff or
>Honestly, I think you need to just buy on book on this. I think I
>explained things pretty clearly, and your confusion now seems to be
>based more on a lack of trusting my explanation more than anything. I
>can't imagine how you could still be this confused.
What I can't imagine is how confus
7;s the only place he used
it. *MAYBE* a good company will catch on. I bet against.
But let's even assume our site-owner *NOTICES* his stolen domain name, and
maybe even knows he got hacked and the Certs and keys all got stolen.
Let's even give them the benefit of the doubt and assu
>To test global variables, I wrote the following PHP script:
>
>(1)(2)session_start();
>(3)session_register("counter");
>(4)$counter++;
>(5)echo "$counter";
>(6)// header ("location:statistics/contents.php");
>
>PS: Richard, thank you
>>>How do you know their certificate hasn't been stolen, and they haven't even
>figured it out yet? How do you know they were trustworthy people in the
>first place?<<
>
>Why do you ASSUME that they're NOT trustworthy people? Do you go through
>your entire life in that shell?
Everybody gets a
>I wrote a less-limited hex2dec function years ago, and threw it up on
>Sklar,
>or, uhhh, the *other* PHP code repository. There were really only two,
>back
>then... :-)
Another option would be the BC Math package which will let you compute
arbitrarily large numbers, albeit a bit slower.
Just h
>$query = "select count(*) as monthly_views from visitors group by
>extract('year', time), extract('month', time) order by monthly_view desc
>limit 1";
>Warning: Supplied argument is not a valid MySQL result resource in
>C:\Inetpub\TecEco_PHP\stats_interface\summary.php on line 75
>You have an er
>Probably a stupid question. Is there anyway to force POSTing a form from
>the refresh META?
>
>
>
>IMHO that is NOT possible, but maybe I am wrong.
You are correct -- it cannot be done.
If there is no JavaScript, you can only "force" a POST by getting the user
to click on a FORM element, some h
>Does MySQL support parameterized queries (e.g., "INSERT INTO table
>(Col1,Col2) VALUES (?,?)"), and if so, is there a PHP function that allows
>you to create and attach parameters to MySQL queries?
I don't believe MySQL supports that, so there's no PHP mechanism for it.
However, you *can* inser
>Hi all. Im getting the above mentioned error: *Parse error*: parse
>error, unexpected $ in *c:\program files\apache
>group\apache\htdocs\login.php* on line *38* when I try to view the page
>I just created. As a forewarning, I am very new to PHP, so I may have
>done something stupid, and if it
>javascript in this page verifies user configuration (screen, java
>enabled, platform etc) and stuffs this data into a hidden form then
>sends it back to index.html where data will be used to understand
>whether we can rely on jscript and cookies within this session.
Aha!
What you probably sh
>LIMIT was not included in the SQL92 SQL standards and very few vendors
>implement all of SQL99; the use of ANSI standards to promote "portable"
>programs has always been beset by this kind of problems.
Wow! There's actually an SQL99 that vendors are targeting, kinda sorta?
Hey, with any luck,
>I do have a multisite form. There are several fields on page 1 and several
>on page 2.
>
>Everything works fine exept of error handling. Which means if a user wants
>to go back from step 2 to one and has already filled in some data in site 2
>he will loose this data for sure. It is not possible t
>I have looked in PHP manual but I cannot seem to find what I am looking for.
>
>I have a very large form that I need to be able to mail. I just don't want
>to have to code all of the field into my mail() function.
I think this one is still in the FAQ, so maybe it's time to re-read that.
I asked
>On Sat, 06 Jul 2002 15:27:47 -0500
>> Do you have *ANY* idea how quickly:
>>
>> "select * from MyTable" can be parsed and an execution plan selected?!
>>
>> It's CHUMP CHANGE in time.
>>
>> *ONLY* if your SQL is so incredibly complicated that you can't even
>> understand it will the parse/comp
>Doesn't @ surpress output (in general)?
>Variables don't usually produce an output so putting @ before it shouldn't
>make any difference.
@ suppresses *ERROR* output, not just any old output.
@ echo "foo";
will echo foo out.
@ echo $foo;
will echo out anything in $foo, but if you haven't *PU
>That looks like the result of htmlentities(nl2br($string)).
Actually, it's probably the result of just nl2br($string) and being in the
midst of the INPUT tag in the first place...
>Do it the other way around.
>
>Better yet, don't call nl2br or htmlentities or anything else on data that
>you are
>has anyone met with this problem.. using IE to submit multipart forms. in
>text fields if there is "&" ... all text after it will disappear..quite a
>nuisance when submitting
You probably aren't using http://php.net/htmlentities as you pass data back
out to the browser.
Microsoft, in it's infin
>I've been using MySQL/PHP for quite some time. Several months ago, I
>wanted to port a project over to PostgreSQL. I found everything about pg
>(eg the website, documentation, installation process) far less straight
>ahead than MySQL. So much so, that I didn't get around to actually
>installin
>One Form has a textfield, I submit it to another html site where there is
>another form with a textfield. Inside this textfield I place a hidden field
>with the value of the field from page 1 then I submit to the actual php site
>inserting the values into a db.
On the "middle" page, use "View So
>1) in a fuction, does a return statment automatically exit the function as
>well?
Yes. Nothing more will get executed inside the function after the "return;"
Some purists claim that you should *NEVER* have a return *ANYWHERE* except
the last line of a function.
EG:
# WRONG
function divide($n
>configure: error: Cannot find header files under /usr/include/mysql
>Bad exit status from /home/askwar/RPM/tmp/rpm-tmp.64223 (%build)
>
>I called configure with these parameters:
>
>--with-mysql=/usr/include/mysql
>host:/S.u.S.E. # ls -la /usr/include/mysql
>Does anyone have an idea about why
>I'll repeat my ealier question because some people can not think for
>themselves..
There are actually two (2) possibilities here...
One is that you actually want to print the invoices on the printer connected
to the *WEB* *SERVER* If that is the case, you really should skip the whole
JavaScrip
>I use it in front of variables (never tried it on $GLOBALS, etc though)
>
>eg: (using register_globals = on thingo - hey don't blame me, it's the
>tech guys who have it on, and there's too much legacy code to turn it off :(
>- anyway)
>
> if (@$var) { echo "Yep, var is there"; } else { echo "n
601 - 700 of 11274 matches
Mail list logo