I thing, you must use
$s = getenv('SCRIPT_URL'); and not $s = getenv('SCRIPT_NAME'); in php ver 4.3.2
Shaun wrote:
Hi,
The following code snippet is supposed to return the current page i am on
and append some variables.
$s = getenv('SCRIPT_NAME');
$link = "$s?month=$month&year=$year&goto_da
> First of all, security.. Windows is full of security holes
Did anyone mention the weak password encryption that cnet.com talked
about recently? If you get a copy of the password file, you can break
any MSW password in a few seconds. Macintosh passwords takes 4000 times
as long (or 4000 times as
> Finally,
>
> Thanks to all that tried to help, but I found part of the problem - sort
> of. In the file that I am trying to redirect to I have a form with the
> line:
>
> action="post" name="testing">
>
> It appears this line was corrupt somehow.
CR/LF in your files brought over from MSWindo
* Thus wrote Joel Rees ([EMAIL PROTECTED]):
> > First of all, security.. Windows is full of security holes
>
> Did anyone mention the weak password encryption that cnet.com talked
> about recently? If you get a copy of the password file, you can break
> any MSW password in a few seconds. Macintosh
Hi there.
Is there any php book that discusses general design issues for cms's and
webservices in php?
Also, what is your take on xml? Is it worthwhile waiting for v5 to be
released before buying a xml-php book?
thanks
Thomas
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Jetzt ei
Thank you everyone for making my programming get easier, I have been
programming for now 9 mnths and the whole time i have been coding the LONG
and HARD way, just looking at your problems and resolutions to problems has
highly advanced my programming techniques.
I made a very long script which was
My uneducated guess is you are running cgi version of php binary, which
is different from cli version.
ermelir wrote:
Hi list,
I search to detect if a script is call from command line or if the call from
a client http browser.
for doing that, I test if:
php_sapi_name()=='cli'
which returns TRUE
Don't you need to use $HTTP_POST_FILES array because you have
register_globals off?
Amanda McComb wrote:
I am having a problem with uploading a file from a form. I changed the
permission on the directory, but I am still getting an error. Here is my
error:
Copy failed./home/vencel/www/images/ap
You guys should not forget htmlspecialchars() :)
Jay Blanchard wrote:
>
Adam Voigt wrote:
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
You might want to look at phpFriendlyAdmin at sourceforge
http://sourceforge.net/projects/phpfriendly/
the web developer's answer to simplify content management for the
masses! This package is a remote database management tool made
specifically for web developers who want to ease an audience
Matt Hedges wrote:
Update Sister Info.
Why $id=1, you want to edit any sister info
$connection = mysql_connect($host,$user,$password)
or die ("couldn't connect to server");
$db = mysql_select_db($database,$connection)
or die ("Couldn't select database");
if (@$first == "no"
hi eric,
as far as i can see, there is no definition for your '$subnav' in your
'incHeader.php'.
if you call your main script like this:
'http://example.com/index.php?subnav="home";', this should work with your
inclusion.
ciao SVEN
Eric Fleming wrote:
> Here is a snippet from the header file.
> -Original Message-
> From: Joe Harman [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2003 06:12
>
> The name of the set of radio buttons is the QuestionID (so it's a
> number)... And the options are the AnswerID (they are also
> numbers)...
This is technically invalid for PHP -- all your f
by the way, it's to complicated. the brackets [ and ] are used for
cha-groups. you can leave them for only one char. so this would be the same:
"\\n" (you have to escape the backslash with a backslash)
Curt Zirzow wrote:
> * Thus wrote John W. Holmes ([EMAIL PROTECTED]):
>> [EMAIL PROTECTED] wrote
I need to create a class that looks like this:
class Artikel {
var $id[];
var $rubrik[];
var $ingress[];
var $kategori[];
var $frontbildtyp[];
var $frontbild[];
var $kategoribild[];
var $aktuell;
function SetId($id) {
$this->id[$this->aktuell] = $id;
}
function SetRubrik($id) {
$t
> -Original Message-
> From: sven [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2003 10:35
>
> by the way, it's to complicated. the brackets [ and ] are used for
> cha-groups. you can leave them for only one char. so this
> would be the same:
> "\\n" (you have to escape the backslash with a b
do you get an error-message? which?
maybe you use
var $id = array();
instead of
var $id[];
ciao SVEN
Patrik Fomin wrote:
> I need to create a class that looks like this:
>
> class Artikel {
> var $id[];
> var $rubrik[];
> var $ingress[];
> var $kategori[];
> var $frontbildtyp[];
> var $fron
Hi to all, i have a big problem, i use a phpBB forum in my page, here in
Spain the ISP's use a cache proxie system.
And when change anything in my forum such as image or new functionality, my
users can not view the forum.
Yesterday i include a visual system confirmation to register, and today my
WebDevMagazine will start in September an international edition of
magazine.If you want to be an author of this magazine please email to :
[EMAIL PROTECTED] the folowing things:
1. Your details - name , age ,...etc
2. Your expirience
3. In what topic from Web Development you want to write articles
Hi,
I was just thinking about functions, and I believe there were more than two
keywords like "global" and "static", which could be used in functions...
does anybody know them and their functions?
thx for help
Michi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
The threading is messed up on this message, so sorry for the top post.
Actually, the method that Shaunak gave is the best method to use. If you
took your questions and had them formatted from this:
> What color are you eyes?
>
>Blue
>Green
>
to this:
What color are you eyes?
I want to upload some file to my web site.
I'm using this script:
Upload Form
Upload a file:
The upload_single.php script is just this:
I just want for begining to print the name of file.
But It doesn't work.
Operating system is Linux.
Web server is Apache.
Can anyo
Peda wrote:
I want to upload some file to my web site.
[snip]
But It doesn't work.
Do you have file uploads enabled in php.ini? Take a look at a phpinfo()
page for details.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professio
>The upload_single.php script is just this:
>$ime = $_FILES["thefile"]["name"];
> print ($ime);
>?>
>I just want for begining to print the name of file.
>But It doesn't work.
Do you get anything if you change "name" to
"tmp_name" to beging with? If I'm not mistaken
,"name" isn't filled in w
I have tried this method as well, but I still seem to get the same error. I
have the form tag put in there and everything, with this bit of script inside
the tags, but still no luck. Is there an easier way to accomplish what I want
to do? Please let me know if there is. Thanks.
Matt
>=
> Do you have file uploads enabled in php.ini? Take a look at a phpinfo()
> page for details.
Yes I have.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i think ['name'] isn't empty, it contains the real name whereas tmp_name
contains the full path to the temp_file on the server
maybe you should try $HTTP_POST_FILES?
"Jonas Thorell" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> >The upload_single.php script is just this:
>
I just remembered (I'm not sure if it makes a difference) that I am using
frames on this page. Does this matter at all? Thanks.
Matt
>= Original Message From Matt Palermo <[EMAIL PROTECTED]> =
>Fixing the javascript that you specified still gave me the same
>errors... Got any more s
<[EMAIL PROTECTED]>
Police Trainee:
> my phpinfo output does not have that particular init
> value "disable-url-fopen-wrapper". "allow_url_fopen"
> is enabled, safemode is off, and include_path is set
> to .:/usr/local/lib/php. further ideas?
What happens when you try to include it? Is there an e
<[EMAIL PROTECTED]>
Matt Palermo:
> I just remembered (I'm not sure if it makes a difference) that I am
> using frames on this page. Does this matter at all? Thanks.
>
> Matt
No, it doesn't... well it shouldn't anyway. Check the source code of the
outputted page. Is it exactly what you want it
>
> maybe you should try $HTTP_POST_FILES?
>
I have tryed that too, but nothing happened.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a litle example of my upload file
Transferir
doupload.php
El archivo ha sido transferido http://bmwfaq.com/uploads/$image_name>
http://www.bmwfaq.com/uploads/$image_name ";
if ($image_name == "") {
$endresult = "No se han seleccionado
archivos";
}elseif (($size_
>> maybe you should try $HTTP_POST_FILES?
>I have tryed that too, but nothing happened.
Hm, can't think of whatever else is wrong right
Now but I just tried out your script on my
Server just to see, and it outputs the
Filename alright. So it's nothing wrong
With your script. Granted, my server is
Actually, I found out what the problem is. I have a normal submit button in
the same page, however when I take out the submit button, the javascript code
works fine. When I put the submit button back in, I get the error again. Is
there a fix for this, or do I need to make the submit button in
<[EMAIL PROTECTED]>
Matt Palermo:
> Actually, I found out what the problem is. I have a normal submit
> button in the same page, however when I take out the submit button,
> the javascript code works fine. When I put the submit button back
> in, I get the error again. Is there a fix for this, or
I read in the site www.php.net that XML support has been completely redone in PHP 5. I
would like to know if the old commands (like xml_parser_create, xml_parse,
xml_set_element_handler...) will be removed or not. Where can I find more information
about it?
Thanks
could be a problem with the post settings in apache? i know apache sets some
restrictions on the size and what's allowed. can't see how it'd be a linux
problem...
does the file appear in your tmp directory at all?
- Original Message -
From: "Jonas Thorell" <[EMAIL PROTECTED]>
To: "'Peda'"
what is the javascript on it? sorry, missed the start of the thread...
- Original Message -
From: "Matt Palermo" <[EMAIL PROTECTED]>
To: "Comex" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 1:05 PM
Subject: RE: [PHP] Link acting as a submit button
>
[snip]
> >Unfortunately I don't think some people "got" the joke. Next thing
you
> >know their going to complain that PHP should have told them the
> >punchline ;)
[/snip]
RTFM at http://www.php.net/itsajoke or STFW at
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=PHP+jokes (which,
BTW ha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi.
I've just found weird thing about in_array() function.
Platform: FreeBSD 5.1/PHP 4.3.3-RC1
Consider this code:
$this->_array_a and $this->_array_b ARE IDENTICAL
$data = array();
foreach ($this->_array_a as $key
<[EMAIL PROTECTED]>
skate:
> what is the javascript on it? sorry, missed the start of the thread...
http://tinyurl.com/i0un
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in_array searches for a value, you suply key. This will work as you expect:
$data = array();
foreach ($this->_array_a as $key => $value) {
if (! in_array($value, $this->_array_b)
$data['added'][$key] = $this->_array_a[$key];
}
Branko F. Grac(nar wrote:
-BEGIN PGP SIGNE
I am contemplating the structure for a new site. I would like to
organize the site with sub domains as in
domain.com
subdomain1.domain.com
subdomain2.domain.com
subdomain3.domain.com
I understand that sessions are not passed from domain to domain or
domain to subdomain. I did some searching and
<[EMAIL PROTECTED]>
Marek Kilimajer:
> in_array searches for a value, you suply key. This will work as you
> expect:
array_key_exists searches for a key.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to open a pop-up window with PHP but I keep getting an error.
HELP! Does anyone know if they plan to fix this bug in PHP5?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<[EMAIL PROTECTED]>
Step Schwarz:
> I'm trying to open a pop-up window with PHP but I keep getting an
> error. HELP! Does anyone know if they plan to fix this
> bug in PHP5?
LOL!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is an attempt to create an backup script for my online databases. There
are few things to sort out and the coding is not the most effiecient out
there yet!!!
I just wanted to check on what you guys think, am I going the right way, is
there anything I should keep in mind?
Mario
Code below
--
Hi,
due to a current PHP upgrade i am unable to use the following code to get
the filename of the page:
$s = getenv('SCRIPT_NAME');
I need to get the filename without any avariables attached. For example if
the URL is
www.mydomain.com/test.php?test=yes
using $s = getenv('PHP_SELF');
returns t
$tmp=split("\\|/",__FILE__);
$s=$tmp[count($tmp)-1];
or something..
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Shaun" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi,
>
> due to a current PHP upgrade i am unable to use the following code to get
> the filena
u can try
$filename=$_SERVER[SCRIPT_NAME];
Manoj
Shaun wrote:
Hi,
due to a current PHP upgrade i am unable to use the following code to get
the filename of the page:
$s = getenv('SCRIPT_NAME');
I need to get the filename without any avariables attached. For example if
the URL is
www.mydomain.co
thanks for your reply,
but that doesn't seem to work either, how about removing everything after
and including the ?, how would i do that?
"Manoj Nahar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> u can try
> $filename=$_SERVER[SCRIPT_NAME];
>
> Manoj
>
>
> Shaun wrote:
>
> >Hi
Quit horsing around fellas, what if the developers take interest in this
thread and decide it's a good idea to release PHP6 with cranial
electrodes that will detect "what I want to do", and instead of me
having to code the application, PHP will just spit out the
application... That way our bosses w
Peda wrote:
> I want to upload some file to my web site.
>
> The upload_single.php script is just this:> $ime = $_FILES["thefile"]["name"];
> print ($ime);
>
> I just want for begining to print the name of file.
> But It doesn't work.
did you look what comes from your form? try:
var_export($
[snip]
Quit horsing around fellas, what if the developers take interest in this
thread and decide it's a good idea to release PHP6 with cranial
electrodes that will detect "what I want to do", and instead of me
having to code the application, PHP will just spit out the
application... That way our b
I'm making a search-engine script for my site that redirects users to
other search engines. Point is that on the website, there's a drop-down
box with some engines and one textfield.
1. User enter the search query.
2. User selects which engine to use.
3. User submits.
4. PHP scripts checks which
* Thus wrote Amanda McComb ([EMAIL PROTECTED]):
>
> mysql_query($add_image_query) or die("Update Failed!");
>
Print out the $add_image_query to see whats wrong with it.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php
and much needed function
debug_and_test_all_my_code();
Jay Blanchard wrote:
[snip]
Quit horsing around fellas, what if the developers take interest in this
thread and decide it's a good idea to release PHP6 with cranial
electrodes that will detect "what I want to do", and instead of me
having to
> (this is in a file called index.html)
> this
> page
try this
this page
--
BigDog
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Simon Fredriksson <[EMAIL PROTECTED]> wrote:
> Now the thing is that some of these engines use POST method,
> which makes it a bit harder to redirect the query. For those
> who use GET I just have to use something like
> header("Location: http://somewnine.com/query=$query";);
>
> So, does anyo
> Is there any php book that discusses general design issues for cms's and
> webservices in php?
I have not seen one dedicated to general design issues for cms' as web
services in php. However, there are many great books on general design
issues. Relating to various languages that can be done al
how about this:
$_SERVER["PHP_SELF"];
ciao SVEN
Shaun wrote:
> thanks for your reply,
>
> but that doesn't seem to work either, how about removing everything
> after and including the ?, how would i do that?
>
>
> "Manoj Nahar" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> u can
Dont tell you boss about those new "intelligent features" of PHP ;-) LOL.
Petre Agenbag wrote:
Quit horsing around fellas, what if the developers take interest in this
thread and decide it's a good idea to release PHP6 with cranial
electrodes that will detect "what I want to do", and instead of m
[snip]
> Is there any php book that discusses general design issues for cms's
and
> webservices in php?
[/snip]
http://www.glasshaus.com has a book on CMS, but it is fairly general.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2003-07-25 at 05:30, Matt Palermo wrote:
> I just remembered (I'm not sure if it makes a difference) that I am using
> frames on this page. Does this matter at all? Thanks.
Yes it matters tons with the javascript call.
Here is some info on it...however, these questions are now javascri
Output the required form with hidden fields from your script and use
onload="document.forms[0].submit();"
Simon Fredriksson wrote:
I'm making a search-engine script for my site that redirects users to
other search engines. Point is that on the website, there's a drop-down
box with some engines
Warning: main(http://143.43.222.103/sga)
[function.main]: failed to create stream: Invalid
argument in
/hsphere/local/home/domain/mydomain.com/includesite.php
on line 2
Warning: main() [function.main]: Failed opening
'http://143.43.222.103/sga' for inclusion
(include_path='.:/usr/local/lib/php') i
* Thus wrote Peda ([EMAIL PROTECTED]):
> I want to upload some file to my web site.
>
> I'm using this script:
Please Read:
http://us3.php.net/manual/en/features.file-upload.php
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php
> did you look what comes from your form? try:
> var_export($_FILES);
It comes the empty array:
array( )
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote Michael Müller ([EMAIL PROTECTED]):
> Hi,
> I was just thinking about functions, and I believe there were more than two
> keywords like "global" and "static", which could be used in functions...
> does anybody know them and their functions?
hm. I dont even know where global and static
I found out that it works fine without the submit button that I had in there.
When I take the submit button out, it works, if I put it back in there I get
the error message again.
Any ideas?
Matt
>= Original Message From [EMAIL PROTECTED] =
>On Fri, 2003-07-25 at 05:30, Matt Palermo
This is probably under the category of javascript, however I would like ot know if it
is possible to be done with php.
Let's say I have a table that is 30 columns wide and so the entire table doesn't fit
on the screen. Is it possible (with php) to "freeze columns" while scrolling across so
you
My site got it's Sybase 'auto_commit' disabled, I mean, if I type a (INSERT,
UPDATE, DELETE) query on ISQL's console I got the correct result, but the
same doesn't happen when I run the query via PHP. Check the code below:
";
}
else
{
"Erro!";
}
//sybase_query("commit"); //if I uncomment 'syb
My site got it's Sybase 'auto_commit' disabled, I mean, if I type a (INSERT,
UPDATE, DELETE) query on ISQL's console I got the correct result, but the
same doesn't happen when I run the query via PHP. Check the code below:
";
}
else
{
"Erro!";
}
//sybase_query("commit"); //if I uncomment 'syb
[snip]
I found out that it works fine without the submit button that I had in
there.
When I take the submit button out, it works, if I put it back in there I
get
the error message again.
Any ideas?
[/snip]
Are you naming the submit buttons? Not just value, but id or name? You
must keep them se
You could use frames for it and then set the scrolling on specific
frames.
--
BigDog
On Fri, 2003-07-25 at 09:49, Jason Martyn wrote:
> This is probably under the category of javascript, however I would like ot know if
> it is possible to be done with php.
>
> Let's say I have a table that is 3
[snip]
And since it probably isn't, can someone suggest a language that would
cover this subject?
[/snip]
JavaScript or any other client-side magic.
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't know a lot about sybase, but if it's anything like oracle it works
like this:
A query from the console will be commited when the console is exited (plus
of course any select queries performing checks at the console will reveal
the result as it will be after the commit has occurred). With a
Curt Zirzow wrote:
> * Thus wrote Michael Müller ([EMAIL PROTECTED]):
>> Hi,
>> I was just thinking about functions, and I believe there were more
>> than two keywords like "global" and "static", which could be used in
>> functions... does anybody know them and their functions?
>
> hm. I dont even
Why do you have a submit button and a link to submit the form. Dont u
want them to use the submit button for the form?
--
BigDog
On Fri, 2003-07-25 at 09:02, Jay Blanchard wrote:
> [snip]
> I found out that it works fine without the submit button that I had in
> there.
> When I take the subm
I forgot to tell that the column 'PKintIDLog' (identity column) is
incremented as if the insert was done correctly. For example: I select the
max PKintIDLog column value and I got '20', then I try to insert some data
on the table via PHP, I select the max PKintIDLog (I should get '21', right
?), bu
* Thus wrote Blaine ([EMAIL PROTECTED]):
>
> I also read that ini_set() can be used in an .htaccess in the root
> directory of each domain, subdomain and directory where pages may use
> sessions. It would look something like:
>
> php_value session.cookie_domain .domain.com
>
> Setting the valu
"Police Trainee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Warning: main(http://143.43.222.103/sga)
> [function.main]: failed to create stream: Invalid
> argument in
> /hsphere/local/home/domain/mydomain.com/includesite.php
> on line 2
>
> Warning: main() [function.main]: Failed
* Thus wrote Marios Adamantopoulos ([EMAIL PROTECTED]):
> This is an attempt to create an backup script for my online databases. There
> are few things to sort out and the coding is not the most effiecient out
> there yet!!!
>
> I just wanted to check on what you guys think, am I going the right w
I recently had to do something similar, except with the first row, instead
of the the first columns. The way I did it was by creating two different
tables, and putting the second table inside a tag something like
follows:
Here is an example I found on MS website about how to use this:
http://
Inline frames http://www.cs.tut.fi/~jkorpela/html/iframe.html
Jason Martyn wrote:
This is probably under the category of javascript, however I would like ot know if it is possible to be done with php.
Let's say I have a table that is 30 columns wide and so the entire table doesn't fit on the scr
John and Curt;
Thank you both very much for your help (and persistence) in this matter.
Ultimately, I used John's suggestion: creating $_SESSION['userArray'][vars].
It works. I get to keep my vars named what I want. In some ways, it's more
elegant than what I was doing in that it compartmentaliz
I agree with Curt, why reinvent the wheel. I mean even if you are like me
and cannot access the command-line on your web server (which really really
sucks) then there are still other tools that can do this very same thing. If
you just want to click on a link and backup the db why not use the load d
Okay, I got it to work. I just put the "id" parameter in the submit button
tag and it works fine now. Thanks for all your help guys...
>= Original Message From [EMAIL PROTECTED] =
>Why do you have a submit button and a link to submit the form. Dont u
>want them to use the submit button
Hi all...
On Wednesday 23 July 2003 22:16, CPT John W. Holmes wrote:
> From: "Curt Zirzow" <[EMAIL PROTECTED]>
>
> > preg_match('#\(.*)\#im', $text, $matches):
>
> Also, if there's ever a case where could have
>
>
> My Title
>
>
> i.e. things spread over multiple lines, then you'll need:
>
> pre
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Unfortunately I don't think some people "got" the joke. Next thing you
> know their going to complain that PHP should have told them the
> punchline ;)
>
I guess I got burned on that. I honselty though I could save one
All,
I'm having trouble creating an pop account usaign fsockopen(), here is whaty
I have... is connects ok but does not seem to execite the GET.
$fp = fsockopen ($host, 2082,$errno,$errstr);
if (!$fp) {
echo "$errstr ($errno)\n";
} else {
$authstr = "$cpaneluser:$cpan
writing some client side javascript with some dynamic php, and I need to be
able to print a dynamic number of variables to the javascript.
I need to print:
var a="";
var b="";
...etc.
Is there a way to increment a php $var much like $var++ would work?
Jeremy
--
PHP General Mailing List (http
* Thus wrote Brian McGarvie ([EMAIL PROTECTED]):
> All,
>
> I'm having trouble creating an pop account usaign fsockopen(), here is whaty
> I have... is connects ok but does not seem to execite the GET.
>
>$fp = fsockopen ($host, 2082,$errno,$errstr);
is this the right port?
> if (!$fp)
Yep that should work as does $var--
-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] incrementing string value
writing some client side javascript with some dynamic php, and I need to be
able to print a dy
Simon--
Why not follow the KISS approach? Generate the GET or POST
directly from the client. No PHP or server-side processing
needed.
--John
On Friday 25 July 2003 10:09 am, Simon Fredriksson wrote:
> I'm making a search-engine script for my site that
> redirects users to other search engines
Thanks for the replies guys but the main reason I'm doing this is because
most times I don't have access to the servers, or not enough preveleges to
install myadmin or any other tools. I wish we had our own server but I'm
trying for a solution where you can't upload any tools and cannot access
sys
Brian McGarvie wrote:
All,
I'm having trouble creating an pop account usaign fsockopen(), here is whaty
I have... is connects ok but does not seem to execite the GET.
$fp = fsockopen ($host, 2082,$errno,$errstr);
if (!$fp) {
echo "$errstr ($errno)\n";
} else {
$auth
I've got a problem with settings of default_charset: I'd like to view
correctly both special chars (àèìòù...) and htmlentitities (à
è ...)
I got my .htaccess file with the following line:
php_value default_charset ISO-8859-1
In this way it displays correctly htmlentities but not special chars,
let me make sure I understand...
$var = 'a';
$var++
print($var);
would print "b" to the screen?
Jeremy
"Carl Furst" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Yep that should work as does $var--
>
>
> -Original Message-
> From: Jeremy [mailto:[EMAIL PROTECTED]
> Sent:
* Thus wrote Jeremy ([EMAIL PROTECTED]):
> writing some client side javascript with some dynamic php, and I need to be
> able to print a dynamic number of variables to the javascript.
>
> I need to print:
> var a="";
> var b="";
> ...etc.
>
> Is there a way to increment a php $var much like $var+
1 - 100 of 181 matches
Mail list logo