I am sorry, this has nothing to do with the logic of your code, but
instead with style (and a little bit of perfomance, both from you and your
system).
Isn't easier to escape PHP when you are going to enter html code lines?
Like this:
\n";
echo " \n";
?>
IMHO would be better:
It's usually done with fsockopen();, and curl module functions for SSL
servers. There are a few classes for each method, on the most tradicional
snippets and clasess websites.
I enjoyed using one called Snoopy. Also the manual pages comments are very
helpful (both on fsockopen(); related func
www.php.net/dl
:-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Kunal Jhunjhunwala" <[EMAIL PROTECTED]> wrote in message
008001c1aa6b$089d8c90$0301a8c0@C
Zope mantains a lot of large sites. Also I know www.ig.com.br (second most
accessed site here in Brazil) uses Vignette.
In fact, ALL large sites has to use some kind of CMS, otherwise keeping
the large amount of content and related operations between sub-sections is
close to impossible.
--
As usual your mileage may vary but it worked here :-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Mike Eheler" <[EMAIL PROTECTED]> wrote in message
[EM
Maybe you were doing something like this:
if (function() == true) {
header("Location: this_page.php");
}
And your function() is now broken because you upgraded to php4? It's
probaly something like this, some function that worked on php3 and now it's
not.
--
Julio Nobrega.
Um dia eu ch
I don't have it! Could not find using echo $HTTP_IL_PAD neither saw it at
phpinfo(). Do you have any non-default module installed?
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
"Bill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED].
Check out when you can use " and '
Any number of ' inside " gets printed and $vars are parsed (i.e,
'interpreted by php')
Any number of " inside of ' gets printed and $vars are NOT parsed.
echo "
file_exists();
if (file_exists('1234.rm')) {
// show one image
} else {
// show another image
}
Just correct the path of file_exists argument to the one you need/use.
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
session_register('array_of_selected_checkboxes');
Just use sessions! ;-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"M. Ali" <[EMAIL PROTECTED]> wrote i
Sorry,
"corrected on PHP only after 15 being reported.." should read:
"corrected on PHP only after 15 minutes being reported.."
That was a good thing I saw. I still remember, some exec() problems with
slashes and some letters on a specific plataform. Stunned me how fast the
bug was solved.
Both ways. I would use session if the form(s) must be completed at once.
If someone can save forms 1 and 2 and another day return to complete the
remaining steps, then a database might be better.
Also, if you use a database to hold temp info that must fly between the
forms, you would have to
Database is a good point. PHP has native support for several, while I
believe ASP do not (through ODBC).
Modules, and their price. At least I heard in ASP you have to pay for some
of them (well, more than those on PHP).
Typecast? I am not sure if in ASP you have to, I remember I heard
some
I haven't used, but heard good stuff from folks of the local mailing list,
from TEP.
http://theexchangeproject.org/
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=66417674
Hi All,
I used php 4.0.6 and had to port a system to 4.1.0. So I changed some vars
($_POST, $_SESSION, etc..), and begin to use the new php.ini (with different
scope for stuff).
We hired another person to work with us on another project. So I need him
to access on a different machine my ho
Hi everybody,
On my dev machine I have php 4.1. I have now to upload a huge script half
ported to 4.1 from 4.06 on a host where 4.04pl1 runs.
By 'half-ported' I mean almost every file I changed global $form_var or
function($form_var) to $_POST['form_var'].
But it will not work since it'
No, it's server side.
Only if you flush some kind of content, with parts of the script waiting
to be executed after these contents are 'used' by the user. This would not
affect in how much time certain script lines are executed (since it's the
server who process them), but the overall executi
php.ini has a disable_functions setting, maybe acessable by ini_set()
too...
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Yves Reveillon" <[EMAIL PROTECTE
Another idea, run a script that opens a file and flocks it until it's
executed. I am sorry if this is dumb as I have little experience on locking
files, but, I guess if it's locked it won't get opened again and executed
(via include() or eval());
--
Julio Nobrega.
Um dia eu chego lá:
http://s
Yes, but I just thought of doing this way when porting :-))
PS: (Not 100% true, there's the question of $_SESSION being global now.
Makes life easier too :-))
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
--
PHP General Mailing List (http://www.php.net/)
To
Is that while porting a script to PHP 4.1.0, where I used to check:
if (session_is_registered('del_power') && $del_power == 1) {
// del stuff
}
Because $del_power could be registered as 1 or 0, now I can do:
if ($_SESSION['del_power'] == 1) {
// del stuff
}
Nice. Less typing and
Yes! That's it. I was accessing vars using new methods, but I forgot
$PHPSESSID was supposed to have globals on. So simple, yet I have flooded
the list with messages.
Thanks Andrey, I think it's better next time look at all possible options
;-)
--
Julio Nobrega.
Um dia eu chego la:
http://
Yes, I know. But the problem is PHP 4.1.0, or maybe something on the new
php.ini that comes with. My scripts were echo'ing $PHPSESSID fine before it.
--
Julio Nobrega.
Um dia eu chego la:
http://sourceforge.net/projects/toca
"Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
032e01c187db$
> However, you can't do this:
>
>
>
> Because a & b won't get submitted.
Well, like I said, I don't understand very well, but things after the ?
are available on the action page, even if the method is POST. Here's a
tested example (PHP 4.1.0, Win2k AS, Apache 1.13.20)
aaa.php:
bbb.php
Well, there's a small difference between form's GET/POST and passing
variables using the ? on urls. I don't know the techinal details of it, but
it's possible. I guess, on this particular case, the form method is POST.
When the next page is loaded (the action target), you put some GET
parameters
Hi again,
Here are a few updates (error_reporting(E_ALL)):
$_SESSION['PHPSESSID'];
// Undefined index PHPSESSID error
// Doesn't work. Not even a undefined variable.
// echo $SID doesn't either
But:
echo session_id();
// works!
Thanks Andrey for the remainder, but session were already
Hi All,
I have a few scripts using $PHPSESSID to softly disable cookies
requirement on some pages. I just installed PHP 4.1.0 and I am porting some
lines to adapt to the new version.
If I do this:
It doesn't show nothing at all. Did something changed, does this var now
have a new nam
Hey, love the colors! But that's a regular ant. Where's the catch twist
exclusive hidden feature? It's an ant, but ain't no ant like other ant :-)
I don't know, usually when something common can be found on a design
there's a little mod added.
Did you draw it? On 1024 video resolution look
Hi all,
I was sure I saw something like this on this list one month ago. But I
search for like dozens of word combination to find this post (or anything
related to), and was unsuccesful.
Anyone has a quick snippet that will scan a bunch of text characters and
return the links as an array e
Yes! But since one must learn by trying, I will give you some general
rules.
Okay, make it work as a function. You need the page url to grab and the
word to search. So it's a function with two arguments:
function do_it ($page_url , $word) {
Then inside the function you fopen() the $page,
Session would be the easiest thing to use. You could also 'pre-store' the
info on a database and retrive it depending at what page users are visiting.
--
Julio Nobrega
Don't eat the yellow snow.
<[EMAIL PROTECTED]> wrote in message
BB6D932A42D6D211B4AC0090274EBB1DA0F14F@GLOBAL1">news:BB6D93
I am using an approach similar to this:
$language_file = 'english';
include 'dir/to/languages/'.$language_file.'.inc.php';
on english.inc.php
Than you just go echoing the array elements where you want the text to
appear. It does require a little bit more of typing but the languages files
header("Location: example.php?var=$value"); etc...
Or sessions...
--
Julio Nobrega
Don't eat the yellow snow.
"Wilbert Enserink" <[EMAIL PROTECTED]> wrote in message
00e101c17d86$a2c391a0$[EMAIL PROTECTED]">news:00e101c17d86$a2c391a0$[EMAIL PROTECTED]...
> Hi all,
>
>
> my q: The results o
$HTTP_SESSION_VARS shows you this. I don't remember precisely if or where it
appears on phpinfo();, but you can try this to see all registered session
variables:
That's a nice way to see any array, BTW. Including $HTTP_SERVER_VARS,
$HTTP_POST_VARS, GET, etc... nice one.
--
Julio Nobrega
You should really try to do it and see if it's possible, before asking on
the mailing list... mainly because you will be satisfied with the results...
--
Julio Nobrega
Don't eat the yellow snow.
"Lee Philip Reilly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTE
> THE INSIDE EDITION
I thought it was out there?
--
Julio Nobrega
Don't eat the yellow snow.
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
> EDWARD LAWRENCE STRONG PRESENTS
>
> THE INSIDE EDITION
>
>
Well, I skiped this manual part :-)
Maybe the simple select and insert is the simplest form.
--
Julio Nobrega
Don't eat the yellow snow.
"Jim" <[EMAIL PROTECTED]> wrote in message
news:p05101010b8318afec141@[192.168.1.17]...
>
> It appears that this is forbidden ...
>
> From mysql.com:
I don't know if it is the best but here's an idea:
INSERT INTO table SELECT ha, he, hi, ho, hu FROM table LIMIT 1;
--
Julio Nobrega
Don't eat the yellow snow.
"Jim" <[EMAIL PROTECTED]> wrote in message
news:p0510100fb8318736de56@[192.168.1.17]...
>
> What's the best way to duplicate a mysq
Hi, please be more specific. Including what error you are getting, what is
the tools being used, and their versions.
Here's a quick help for producing better questions, wich will in turn make
us answer faster and with more quality:
http://www.tuxedo.org/~esr/faqs/smart-questions.html
PS:
>(I think I need their
> assistance if I want to use PhpMyAdmin, right?
Most of the time, no. These are the lines you usually need to change on
PhpMyAdmin config file:
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
$cfgServers[1]['user'] = 'root'; // MySQL user
Well, you could go to www.hotscripts.com/PHP article and tutorials
sections.
But it is easy.
Delete syntax is:
This will boom every record.
DELETE FROM table;
This will boom every Joe:
DELETE FROM table WHERE name='Joe';
This will boom an id. That's probaly the way you want. A
> But that could be due to server capabilities of my ISP (if he has for
> example a high tech mysql-server and a relativly slow machine for apache).
Probaly :-)
From this page:
http://www.mysql.com/information/presentations/presentation-oscon2000-27
19/
You can read on section 'Gener
Dirty trick:
http://www.php.net');
while (list ($line_num, $line) = each ($fcontents)) {
// echo "Line $line_num: " . htmlspecialchars ($line) . "\n";
if ($line_I_want == $line_num) {
$dirty_trick = htmlspecialchars($line);
}
}
echo $dirty_trick;
?>
No knowledge of what
http://info.astrian.net/jargon/terms/f/foo.html
Btw, it was just a matter of googleing for 'foo bar origins'.
--
Julio Nobrega
No matter where you go, &this.
"Christoph Starkmann" <[EMAIL PROTECTED]> wrote in message
B120D7EC8868D411A63D0050040EDA77111904@XCHANGE">news:B120D7EC8868D411A63D0
$word = 'bingo';
$sql = "SELECT a_column FROM table WHERE text_column LIKE '%$word%';
$res = mysql_query($sql);
// etc... for displaying results
Resuming:
% on the beggining - doesn't matter what comes before
% on the end - doesn't matter what comes after
--
Julio Nobrega
No matter where
Function number_format(); should do the trick for you, maybe with the help
from str_replace('commas' for 'dots');
--
Julio Nobrega
No matter where you go, &this.
"Sascha Ragtschaa" <[EMAIL PROTECTED]> wrote in message
7208FD73D511B7040050BF68EF1E027A09@MUCMAIL">news:7208FD73D511B7040
Worry not, easier typing:
$search .= " ba = '$b'";
If above doesn't satify the needs, maybe you are mysql_escape_string();
it?
--
Julio Nobrega
No matter where you go, &this.
"De Necker Henri" <[EMAIL PROTECTED]> wrote in message
3A8ED7A62794D311AA7700508B6164EC08DCA3E5@SCPTS01">news:3A8
Used to happen the same here when I was using PhpMyAdmin. On large
consults, it would lock.
Passing from CGI to module solved all my problems. On the manual you can
see the necessary lines to do such.
--
Julio Nobrega
No matter where you go, &this.
"Lallous" <[EMAIL PROTECTED]> wrote in m
Mind if I ask why? I do have a few ideas, but I feel I am terribly wrong
about them :-)
--
Julio Nobrega
No matter where you go, &this.
"Zeev Suraski" <[EMAIL PROTECTED]> wrote in message
5.1.0.14.2.20011128204245.01e71090@localhost">news:5.1.0.14.2.20011128204245.01e71090@localhost...
> And
Save the queries on different files, one for each query. Then make a
script that will read all these files and execute the queries, maybe run it
as a cron job, and delete the succesful ones . With several files will be
easier to spot an error if occur, just open it and see the query.
Okay, it
Register the submited vars values on a session and echo them inside the
value="" part (or similar behavior, selected, checked, etc...) of your form
fields.
--
Julio Nobrega
No matter where you go, &this.
"Zavier Sheran" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROT
Check it out www.hotscripts.com/PHP, under the section 'Scripts and
Programs'. You will find a lot of ready to run php scripts that will do
exactly what you want...
And not what you said you want ;-)
--
Julio Nobrega
No matter where you go, &this.
"Yura" <[EMAIL PROTECTED]> wrote in messa
I had this problem with the CGI installation version. Modify your
httpd.conf and adapt it to run PHP as an Apache module and all should work
fine.
--
Julio Nobrega
No matter where you go, &this.
"Jason Reid" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I
Make it global or pass it as an argument:
function CurrentLang(){
global $HTTP_SESSION_VARS;
$language = $HTTP_SESSION_VARS["LangID"];
echo($language);
}
Or:
function CurrentLang($HTTP_SESSION_VARS){
$language = $HTTP_SESSION_VARS["LangID"];
echo($language);
}
--
Well, I don't really get what is your problem here. :-)
You said people must 'enable' pages to have it available. Is it not only a
matter of checking this 'enabled' flag? For example a database table with a
column named 'enabled', and others 'link' and 'text':
(example for mysql)
if (ereg('special word', $string)) {
echo 'Found';
} else {
echo 'Not Found';
}
--
Julio Nobrega
No matter where you go, &this.
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hey ..
>
> i want php to do an IF, when he founds a special word in a stri
Here are a few links that might help you:
'Zend Encoder':
http://www.zend.com/zend/products.php
'PBC':
http://pbc.sourceforge.net/
'AfterBurner Cache':
http://bwcache.bware.it/
Pear's cache classes may also protect a little bit your code... I don't
know how easy it is to break the file gener
trim(); it before?
--
Julio Nobrega
No matter where you go, &this.
"Spunk S. Spunk III" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need to check variables for blank values but it appears that is_null and
> =="" return true if there is a space.
>
> Any
Hi!
For the programming language, I would go with PHP over any other. Yes,
yes, there's no best language for every task, but with your C++ background
it should be easy to develop advanced techniques on PHP than on others on
short time.
Depending from what you meant with 'background apps to
header(); function is fine. Another option is javascript which is
dependent on the client software.
But you get the picture about the login process. I just have to agree with
Chris, something name 'is_logged' is better than 'accessedbefore'.
--
Julio Nobrega
A hora está chegando:
http://to
When they click logout, remove the marker from the database that specify
they are logged in.
Then you must on all pages see if this marker is either 'on' or 'off'. But
sessions would be better for this since it is one sql query less. Just
unregister the variable on logout and check with:
if
These lines will do what you asked, but I am unsure if they will resolve
your problem (since I don't know Fatcow and how they configured the server).
Anyway, here it is:
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');// Date in the past
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s
Well, (things are going pretty good, aren't they ;-))
Oh, old Dos memories coming
Got it, pkzip was the name:
http://www.google.com/search?sourceid=navclient&q=pkzip
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Stefan Rusterholz" <[EMAIL PROTECTED]> wrote
There are a few:
I use and I believe more in Pear. Metabase is huge. PhpLib, simple but
effective. ADODB, nicely done.
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Alberto" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Any1 knows
>Basically, I just want to know if the Key is set, and if so -- remove it...
unset();...
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How can I remove an Array Element fro
Sometimes I have to add the 'extensions' word:
extension=extensions/php_mssql.dll
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Mark Roedel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -Original Message-
> From: Brandon Or
echo '
xml version="1.0" encoding="iso-8859-1"?>
That's how I am putting my XHTML on SF.
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Cweiske" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> I wrote my new page in XHTML 1.0, s
I am the type of guy that sits and code. But now I am working on a company
where we sell systems to large financial entities. So, I have now to make
'prettier' stuff for high executives understand.
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Ninety-Nine Ways To Die" <[
Hi All,
Another doubt. How can I delete files older than X seconds from a given
folder?
At the on-line manual I could only find a contributed note about 'discover
time of last modification' from a file under a folder.
Any help is appreciated.
--
Julio Nobrega
A hora está chegando:
ht
Hi All,
I already spent too much time trying to solve this one by myself, so I am
in need of a little bit of help.
I have a form with checkboxes, all with the same name (name="noticias[]").
When it is submited, only the selected checkboxes become a value on the
array $noticias on the next
Well, you could change just to look at this.
Use php's functions to change, check the last modified, and change it
back. Should take a few micro-seconds ;-) and it only uses php.
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Jay Paulson" <[EMAIL PROTECTED]> wrote in
ws:003901c12ef8$fd9a4ec0$eb00a8c0@mum...
Mind giving some more infro on this :D ?!?
- Original Message -----
From: "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 10:36 PM
Subject: [PHP] Re: Thinking about going to ASP
&g
How about Mono from Ximian?
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Reductor" <[EMAIL PROTECTED]> wrote in message
008001c12df9$e96806e0$eb00a8c0@mum">news:008001c12df9$e96806e0$eb00a8c0@mum...
> Just looking over the achives of the .net show(was msdn show), and wi
Hi Manuel,
Great post. I enjoyed the part where you said it would be a good idea to
do some 'competition' with php programmers, sponsored by some company.
For example, most times when I want a php script, either I go to
Hotscripts.com or Sourceforge.net.
Sf.net, by rebound, makes me rem
Encode (or compile) the source.
Zend's compiler costs 2400 dollars. At this cost is better to release your
code on an open source license ;-)
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Peter Allum" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Append the session id on the url.
There are several ways to do this. Change all urls to put it at the end,
add a javascript that will do it for you (saw at php.net's page). Or change
an option at php.ini to this also automatically for you, or use ini_set();
if you can't change the .ini.
--
101 - 176 of 176 matches
Mail list logo