Hello,
Is it possible to write some PHP code lines in the XML document?
e.g. I want to add ?php require_once(read_database.php); ? to the xml
document, but
I don't know the right syntax to do this.
Btw, I need this, cause I'm trying to make CMS system for Flash page.
Thanks a lot!
Roman
--
Simply ad some info to the Cookies (including date and time).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
What should I change in .htaccess, so that visitors will see index.abc
instead of index.php.
I just wanna hide file's extension.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP does not support function overloading.
So, is there any other way of getting a number of parameters(variables)
passed to a function?
aka.
function fruits($apple, $banana, $kiwi, $grape){
#should (somehow) output 4
}
OK. if it was an array, than I could use count($array), but now I'm
Thank you very much. This is exactly what I wanted to do.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need to split a long string into smaler chunks (an array), as a separator
using every third \n (and not just every \n).
I could use 'explode', but then it would produce too many chunks.
Thank you in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello,
The problem is, that script outputs Last line from the file (and not first
line, as expected)!
4 hours spent seeking for mistake. Hopeless.
The script should read all the filenames in the directory,
then open each file to read first line from file and output this line.
It can'tbe done with PHP, cause it must be client side script, aka
Javascript:
javascript: window.close();
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How to get url of the page the php script is on?
In other words, I want to know whether I'm in page news.php or in
posts.php, or in some other page. Is there any simple way to get tis info?
Thanks,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Is the syntax correct? (in connection with $order) :
switch ($page) {
case news:
$order = DESC
break;
case articles:
$order = ASC
break;
}
mysql_query( SELECT * FROM data ORDER BY id $order );
Sorry for my bad english,
Lab.
--
PHP General Mailing List (http://www.php.net/)
I'm not sure, but I just know that if you need to select the information
from two tables (and not just from one),
you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html )
Hope this helps,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'm not sure, but I just know that if you need to select the information
from two tables (and not just from one),
you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html )
Hope this helps,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Can I use Constant in mysql query like this:
define(LANG, eng);
mysql_query(SELECT * FROM data WHERE col = 'articles' ORDER BY
subjectLANG);
Thanks a LOT,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think you could use php function mkdir() to do this.
mkdir(/path/to/my/upload_dir, 0777);
But unfortunately there is big BUT aka Safe_mode.
To use this mkdir() function, you have to disable the Safe_mode on the
server :(
Note: When safe mode is enabled,
PHP checks whether the directory in
Hi,
Unless I'm mistaken, it's cause of bad SMTP address in your php.ini file,
and so (if you haven't installed SMTP server on your PC),
you have to set the SMTP line in your php.ini file to your internet
provider's smtp address.
For example, I'm on Windows and my internet provider's smtp address
Hello,
I know for example how to get http vars or basename, but this time I need to
get the whole address, including http:// .
Is it possible?
Thanks in advance,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi guys,
I have to say, I've written so many scripts that had file upload functions
included,
but this time something strange is happening.
The script passes the IMAGE_TYPE check, and picture's name stores in the
database (so I guess the picture should have been stored in the dir.), but
when I
Hello, thanks in advice and Merry Christmas!
I'm a newbie in PHP, so I can't imagine how to add the Part 1 to the Part
2..
/// Part 1
switch ($to)
{
case roman:
$to = $address;
break;
case none:
// here should go the Part 2, but I don't know how!
break;
}
/// Part 2
Hello, I have just entered PHP world and I have many questions. I have
already made PHP script that send's htm form values via e-mail.
Now I want to build PHP based web page..
1.question
For example I have index.php file, but I want HTML (index.html) file to be
printed out. How php code should
Hello, I have only one simple question..
I'm using this method to get the values from the text box:
if(isset($_POST[Submit]) $_POST[Submit]==Submit)
{
$add = $_POST['textbox'] ;
}
But I don't know how to write the source for this:
If the value from the textbox ($add) is Hello then.. do
Hello,
I've lost the name of the function I found in php.net some time ago.
This function was able to write the text line at the end of the text file.
Can you tell me the name of this function?
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
And this function was differs from fopen(myFile.txt, a);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
// This will print first and sixth line from the text file:
$file = file(people.txt);
print $file[0]br;
print $file[6]br;
// But how to print all the lines from [0] to [6] ?
// Hope you understood my problem.
Thank you very much,
sorry for my bad english,
Lab.
--
PHP General Mailing
Thanks! It was very useful!
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Your script is working perfectly, thanks for teaching me!
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, I need to convert the script below into the variable $content .
How to do this?
I need this because I want to have an output of this function anywhere where
the $content is.
if ($action==people){
function output() {
$file = file(people.txt);
foreach($file as $value ){
print $valuebr;}
}
// or example I have some link:
a href='index.php?action=people'About people/a
// so this function will output the content of people.txt file:
if ($action==people){
function output() {
$file = file(data/people.txt);
foreach($file as $value ) {
$output .= $valuebr;
}
Probleema sekojosha:
Shiim koda rindinjaam buutu jaanolasa IP adrese no temp.txt faila,
tad ieksh log.txt faila jaasameklee identiska IP adrese (taada pati kaa
temp.txt failaa)
un jaaizdzçð taa no log.txt faila.
Itkaa jau vienkaarshi, BET tas skripts nedarbojas :(
The problem is that str_replace
I have a small problem with the script - could you hepl me, please?
I made small kicking system for those who tried to guess the Login
information.
The script below is just a part of the code, but it's not working properly.
I tried to solve this problem in many ways, but I couldn't.
This script
Thank you very much, it's working fine.
Lab.
Jason Giangrande [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Labunski wrote:
| $ip = getenv (REMOTE_ADDR);
|
| function kick() {
| $file_ip = file(log.txt);
| foreach
I made Login page using http auth method ($PHP_AUTH_USER), and it's workong
fine.
But how to LogOut user?
Thanks for all the answers.
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This script reads the content of the directory and turns it into the array.
The problem is, that this script reads the names of the subdirectories in
this directory too!
if ($directory = opendir('data/start')) {
while (false !== ($faila_nos = readdir($directory))) {
if ($faila_nos != .
\n isn't working properly.
Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to
the document
one|two|three\n
but not
one|two|three (and break)
whole code:
if ($a==new){
$post_0 = $_POST[one];
$post_1 = $_POST[two];
$post_2 = $_POST[three];
if ($post_1 !=){
if
I'll try to explain..
For example I have a link: index.php?fd=car
then the Request part looks like this:
if(isset($_REQUEST['fd'])){
$dir = ($_REQUEST['fd']);
}
But for example I have a link index.php?fd=carc=green..
How to Request more then one variable if I want to get something like this:
Hello,
I have small problem..
$a = 01;
echo $a+1;
//this will display 2, instead of 02.
How to get 02?
thanks.
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry for posting this here,
but this is only newsgroup I'm using, and I can't solve simple HTML problem.
yeah, it's funny, but still.. ;)
I need to center image on the blank screen without using javascript.
- so I wrote:
table width=100% height=100%
tr
td width=100% height=100% align=center
Hi,
this script output's data from the database..
$data = mysql_query(SELECT * FROM firt_table WHERE cat='sweaters' ORDER BY
`id` ASC ) or die(can't find DB!);
while($line = mysql_fetch_array($data)){
echo' trtd width=225 height=19'.$line['product'].'/td/tr';
}
for example, there are 3 records
Hello, how to make the firs letter of the word Big?
for example I have:
$colour = car is red;
but I need:
$colour = Car is big.
Thank you very much,
I would look for the answer myself using google,
but I have no time for it.
I hope there is an easy solution for this.
Lab.
--
PHP General
Thank you very much! That helps!
As I sad before, I would look for it myself , but I wasn't sleepinng all the
night,
this way I think it would be a liittle bit difficult to find it.
Thank you once more,
Lab.
Miguel J. Jiménez wrote in message news:[EMAIL PROTECTED]
Use ucfirst()
Labunski
Hello,
First of all, I should apologize for my bad English,
and I hope somebody will understand what I was trying to say..
So, the problem is, that I can't SORT or REVERSE the array.
By the way, sorry for this awful and very long php script.
And I know that many of you guys can make it look
Hello,
How to understand this warning?
I thought maybe the directory name is incorrect, but it's fine.
The Browser said..
Warning: readdir(): 2 is not a valid Directory resource in
C:\xxx\x\news.php no line 78.
?php
if ($handle = opendir('news')) {
$sortArray=array();
while (false !==
Hi,
note the 2 in that message. You are prob. resetting the readdir()
parameter in the script somewhere
No, as far as I can see, I'm not resetting the readdir().. but..
You loop twice throu the same dir?
Yes I do.
Here is whole script:
?php
if ($handle = opendir('news')) {
42 matches
Mail list logo