Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Writing Pseudo For Availability


creating an online store for a project in on of my classes. I've searched around and cant really find how to create some availability scripts. How can I create a script to check our database on whether certain things are available? Any suggestions? Just asking for a good starting point.




View Complete Forum Thread with Replies

Related Forum Messages:
Pseudo-cron
Harry Fuecks well known PHP writer suggests for those that have difficulties in accessing “cron” to utilize “pseudo-cron”. I D-loaded it as a zip; it seems quite straightforward and easy to use.

As usually with a cron job one is responsible for the php scripts that contains the cron-job to be performed. Also Harry recommends that if in your php.ini setting “short_open_tag” is off to edit the pseudo-cron files and make short tags: <? The full <?php initial tag.

If you are interested in D-loading it (it is free under the GPL)
http://www.bitfolge.de/?l=en&s=pseudocron
(I did left the URL as is so you can see the address)
It is clean I scanned both the zip and unzipped files

So the question before out of curiosity I give it a try is:
Has anyone tried it?

View Replies !
How To Create A Pseudo Password?
I am a librarian. We have purchased online databases froam vendors. We want readers in our campus be able access to these databases,but we can't tell them the real password in case it be wrongly used. Is it possible to let readers use a pseudo password, then, using PHP, the library server change it to the real one and send the request file for the reader to get access to the online database?

View Replies !
Pseudo Random Sequence
I am driving myself crazy trying to think of a solution to this - perhaps
one of you guys can see a simple solution.

The problem is displaying the contents of an array in what appears to be
random order, but in fact is a set sequence depending on a given value (e.g.
the day of the month).

So on the 1st of the month the array is always displayed as:
T,G,Q,C,I,N,E,A

On the 2nd day you ALWAYS get
G,I,A,N,E,T,Q,N

The order itself is not important, but what is important is the apparent
random sequence is really repeatable.

Hope you can make some sense out of this.

View Replies !
Pseudo Code Or PHP Concept
I am very familiar with the syntax, but I've been programming local apps for a decade. I'm not used to writing stateless apps, and I'm not sure how to go about doing it.

I know about sessions, and this is what I plan to use, but I am looking for concepts/pseudo code/flowcharts on a basic (but fully functional and secure) login script. I can code one now but I am not sure if I am using good PHP practices and technique?
How do I differiantiate between different computers on a LAN being logged in at once?

A few lines describing the whole process from first visiting a site, to what happens (in the code) when you login, how the "keep me logged in" feature works and logging out would be nice.

View Replies !
Translating From Pseudo Code
I have variables called preConSA1, preConSA2, preConSA3 and preConSA4. Each can have an integer value of from 1 to 4. What I'd like to do is loop through the values like this:

if ($preConSAx = 1) {
$preConSAx = $preConFirstChoice;
} else if (preConSAx = 2) {
$preConSAx = $preConSecondChoice;
} else if (preConSAx = 3) {
$preConSAx = $preConThirdChoice;
} else if (preConSAx = 4) {
$preConSAx = $preConFourthChoice;
}

I'm not even sure I've written the pseudo code right, but basically, what I'm trying to do is find a short-cut way to assign each of the 4 preConSA variables to its respective choice variable. I could do it the long way -- just writing the code block out 4 times -- one for each variable. But I figured there was a more eloquant way to do it.

View Replies !
Creating A Pseudo Filename For Downloading?
I have an interesting problem....

I work for a company that develops software for the building industry
and would like to distribute one of our software products via the
web.

here is the problem

The main file sits on my web server. We generate unique URLs for the
buyer to download the software. We also generate unique filenames and
store it in a database along with the unique URL This in essence is a
pseudo filename

When the user clicks on the URL that we send him I need the PHP
script to initiate the file transfer giving the user the pseudo
filename rather than the actual filename on the server

I have everything working except for the ability to send the user the
pseudo filename! at this moment in time we are sending them the same
filename as the file sitting on our server.

Is there anyway of doing this with PHP?

Edit: In my code I have tried the following

header('Content-Description: File
Transfer');
header('Content-Type: application/force-download'); //
Tells the browser to expect a download
header("Content-Transfer-Encoding: Binary"); //
Tells the browser the format of the data
header('Content-Length: ' .
filesize($realfilename)); // Tells the browser the size
of the file
header('Content-Disposition: attachment; filename=' .
basename($uniquefilename)); // Tells the browser the
name of the file

readfile($realfilename);

As you can see I am reading the original filename's properties however
using the Content-Disposition header to tell the browser the filename
to download!

View Replies !
Function To Parse Pseudo-code
On my website I want to have one array that contains all text-related stuff, like notifications, information, etc. Some of them have variables in it, like: "You have 4 new messages". I thought I mark variables with things like [new] so $new will be [new] so it will be easier to translate.

I started writing a parser to parse a specified value of the array. But the values of the variables are defined outside the function and doesn't appear to be seen within the function. This is what I have untill now:
<?php

/* this is just an example containing one var, but sometimes a string contains zero, and sometimes 10 */
$lang = array();
$lang['new'] = 'You have got [num] new messages'

$num = 4;

function parse ($var) {
......................

View Replies !
Want To Update Table With Data From Pseudo Join
i have a table with some 45,000 records in it. i'm having problems with a query running slow and i'd like to update this table with a code that i can easily get when i run this query: Code:

View Replies !
PEAR Availability
I'm starting to look into PEAR, and it looks like there's some interesting
stuff in there. I'm wondering how much I can rely on it for a distributed
app. If I understand correctly, it's now included in the PHP distro, and
installed by default. What version did this start with? Is the default
installation just the base class, or are some of the packages included as
well? The tricky question is: does anyone have any idea of how commonly
it's installed? Do most hosting companies provide it? I know end users can
install it for themselves, but I have enough support issues without having
to hold users' hands on that.

View Replies !
PHP Availability Calendar
Do you guys know somewhere where i can find a script which creates a Calendar which can be controled via a database, so if a date is "occupied" then the date will be marked at BOOKED.

View Replies !
Availability Checker
I'm trying to build a site for Broadband and I am wanting to put a Broadband availability checker on my site like alot of other site have, However i am quite  new to PHP. Could someone point me in the right direction as how to go about producing the above?

View Replies !
Availability Calendar
where I could get a PHP based availability calendar for a holiday apartment website? I currently have the calendar as a html tables based affair that is updated via DW, but I am trying to migrate the site to PHP and wish to introduce a web based calendar that can be updated online.

I am looking for something similar to http://www.lanzarotebreaks.com/vill...ar.php/3882.htm that displays in a table format
but is controlled by PHP/MySQL, would like it to have online admin functionality. Am willing to learn how to handcode one if there are any good tutorials. Any help is gratefully received.

View Replies !
Availability Script
i have a number of villas in spain but id like to be able to show there availability online to prosepctive clients to cut down on wasting there time when a particular villa is not available!

i need to be able to show booked and available periods from anything from 1 day to two months, does anyone know i way i could do this, are there any ready made scripts out there doing this.

View Replies !
PEAR Availability On Web Hosts
Just wondering if anybody knew the availability of PEAR classes on most web hosts... i mean like if i write a script using say the PEAR db abstraction class, would most web hosts have the PEAR class installed and in the include_path so that my script would work?

View Replies !
Varying Availability Of Libraries
I'm having problems connecting to postgres via php.  Error message = 'undefined function' when I make the call to pg_connect.  I have modified the php.ini file to enable the extension=php_pgsql.dll line.  The .dll in question exists in both windows and the defined php extensions directory.  I have confidence that the php.ini file in question is the one in use by Apache (if I rename, everything bombs). Code:

View Replies !
Checking For Amazon Availability
Rather than reinvent the wheel, I was wondering if anyone had a tried and true and fast way of checking a string containing availabilty information for an Amazon request.

View Replies !
Checking The Availability Of A Domain
I want to know whats the best way to check if a domain is available or not for registeration? Is there a recommended class i should use or is it easy to code myself?

View Replies !
Check Availability Button
I have a form that accepts user info. I want to create a button that enables the user to check for the availability of the username entered before continuing with the rest of the form. I have tried using the button onclick to call a JS function. The JS function have codes to compare the username with database select.

View Replies !
Date Columns Availability
I done an availabilitycheck that until now seems to work just perfect, except 1 problem. For exampel in the database if I have an booking in datecolumns llegada and salida dates 25/11 and 15/12, I would like the days 25/11 and 15/12 to be marked as available. This is the code I have:

$result = mysql_query ("SELECT llegada, salida, propiedad from bookings where ( propiedad = '$propiedad' )
AND (('$llegada' BETWEEN llegada AND salida) or ('$salida' BETWEEN llegada AND salida) or (llegada < '$llegada' AND salida > '$salida') or (llegada > '$llegada' AND salida < '$salida'))", $dbh);

In this piece of the code this is what I would like to do but don´t work:
('$llegada' BETWEEN llegada AND salida-1) or ('$salida' BETWEEN llegada-1 AND salida)

View Replies !
Calender - Availability Chart
I have availability on my site in an calendar and I manually introduces if available for that day or not. But I want to do it autmatically. At the moment I have the reservations in an database table, I have arrival in one column and departures in another column, both date types.

View Replies !
Redirection And Server Availability
I have two servers, one hosted and one local. My local server uses dynamic dns and I am trying to write a script on my hosted server that will check to see if my local server is accessible. If it is accessible I would like the script to do a browser redirect to my local server. If the connection can't be made I would like the script to be in the header of an index page on the hosted server or redirect to a valid page one the hosted server. From what I've found on the net it should be possible using socket() but am not sure how to go about it.

View Replies !
Check Room Availability System
I am super new to php/mysql etc. i am just trying to do a room availability system.
I have 5 rooms in 5 different category. i like to know how to design a DB and write a php that takes two different dates[checkin date / checkout date] and verifies the DB for availble rooms.

View Replies !
Ajax Script To Search Domain Name Availability In Php
hai friends can any one of you do my favour and send the script to
"search domain name availability in php using ajax"

View Replies !
Checking Room Availability For Hotel Booking System
I was wondering if anyone could help me with a problem I'm having.
I've been using Dreamweaver to create a hotel booking system for a
friend of mine, using MySQL (version 4.0.21) and PHP 5. The bit I'm
struggling with is checking the Room Availability based on dates that
are typed into a textfield and then returning a list of the available
rooms on the next page.

The three tables involved in this function are:

CREATE TABLE `room` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Price_Double_per_Night decimal(5,2) NOT NULL,
Price_Twin_per_Night decimal(5,2) NOT NULL,
Price_Single_per_Night decimal(5,2) NOT NULL,
Price_Double_per_Week decimal(5,2) NOT NULL,
Price_Twin_per_Week decimal(5,2) NOT NULL,
Price_Single_per_Week decimal(5,2) NOT NULL,
PRIMARY KEY(`Room_Number`),
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking_link_entity` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Room_Booking_ID int(11) NOT NULL,
Single_Double_Twin enum('Single','Double','Twin') NOT NULL,
PRIMARY KEY(`Room_Number`, `Room_Booking_ID`),
INDEX `Room_Number`(`Room_Number`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
FOREIGN KEY `Reference_14`(`Room_Number`)
REFERENCES `room`(`Room_Number`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_85`(`Room_Booking_ID`)
REFERENCES `room_booking`(`Room_Booking_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking` (
Room_Booking_ID int(11) NOT NULL AUTO_INCREMENT,
Customer_ID int(11) NOT NULL,
Bill_ID int(11) NOT NULL,
Date_of_Arrival date NOT NULL,
Date_of_Departure date NOT NULL,
Number_of_Nights tinyint(3) NOT NULL,
Date_Booking_Made date,
Status_of_Booking enum('Booked','Arrived','Departed') NOT NULL,
Total_Cost decimal(7,2) NOT NULL,
PRIMARY KEY(`Room_Booking_ID`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
INDEX `Customer_ID`(`Customer_ID`),
INDEX `Bill_ID`(`Bill_ID`),
INDEX `Date_of_Arrival`(`Date_of_Arrival`),
INDEX `Date_of_Departure`(`Date_of_Departure`),
INDEX `Status_of_Booking`(`Status_of_Booking`),
FOREIGN KEY `Reference_03`(`Customer_ID`)
REFERENCES `customer`(`Customer_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_14`(`Bill_ID`)
REFERENCES `bill`(`Bill_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

I've just discovered that MySQL 4.0.21 does not support subqueries.
I'm basically stuck with this version of MySQL. I think I've got
round the subquery problem by using a multi query option as follows:

1.Create a temptable that will store all of the room numbers that
have bookings for the particular dates requested as follows:

SELECT DISTINCT a.room_number INTO temptable
FROM booking_link_entity AS a INNER JOIN room_booking AS b
WHERE b.departure_date >$_POST[‘ARRIVAL'] And b.arrival_date <
$_POST[‘DEPART'];

2.Left join this with the room table and pull out rows with no match

SELECT a.room_number, b.room_number
FROM room AS a LEFT JOIN temptable AS b ON a.room_number=b.room_number
WHERE b.room_number IS NULL;

3.Delete temp table

I've tried doing this in Dreamweaver, but to no avail. I have a
feeling it is too complex for Dreamweaver.

My php knowledge is very basic and was wondering if anyone could give
me some pointers as how to do this in PHP?.

View Replies !
How Do You Pass A Variable Via A "pseudo-directory" Or URL Prefix?
I've searched everywhere for this but I'm not sure exactly what to
search for.

What I am trying to do is pass a variable to a php script via the URL.
However, I don't want to use the standard "?name=value format." I want
to either pass the variable as "value website.com" or
"website.com/value" where the script is stored in some directory
"website.com/script/index.php" and the value gets stored in a variable
declared within my php script.

I have seen this done but I just need some guidance on how to go about
doing it.

View Replies !
PHP Writing
Hi,

I'm quite new to php. Actually very new. Anyways... my problem is:

The text from my form is sent to my php file which in turn opens/writes/closes my xml file.

This works great, the only thing that goes wrong is when I write a single or double quote in my text field, php writes ' or " in my xml file.

ie: If I write this into my field:

<teachers>
<teacher name='Bobby Brown' file='bbrown'/>
</teachers>

PHP writes this into my xml file:

<teachers>
<teacher name='Bobby Brown' file='bbrown'/>
</teachers>

Any suggestions?

Thanks in advance.

View Replies !
Writing
I am writing a script. Everything has gone great except I can't figure out for my admin section how to edit and write to just one line of a flat text file.

View Replies !
PHP Writing To /etc
I'm trying to set up a simple web interface to maintain the rules
configuration for Shorewall.

This entails writing to at least one of several root-owned files in
/etc/shorewall.

Can anyone, please explain how I allow a script to write to one of these
files when apache is running as www-run.nobody (on debian stable) ?

I appreciate that it's probably about permissions, but I should like to
be able to minimise the risk of abuse because it is for a charity that I
work for.

Apache is set up to be visible internally only and I shall ensure that
no-one can make it visible via the interface!!



View Replies !
Writing PHP
However, unlike when you add the .html extension when using notepad to write html code, all I get is a notepad icon instead of the IE icon and when I open it with IE or Firefox all I get is a page of html coding.

Which software should I be using to write the code?

View Replies !
Writing To A Div
I simply want to write the result of a test to a div on my page. Kind of like a promt, but always in the same place so nothing else in the page is disturbed. What is the best way to do this? I tried:


<?php
// startcode.php

if (!empty($_SESSION["SignedIn"]))
$logged= "It's on";
else
$logged="It's Off";

?>
document.getElementById("prompt").innerHTML=<?php $logged ?>

View Replies !
Writing To XML
Can you write to an xml file with the php fopen() and fwrite(), etc the same way as with a txt file?

View Replies !
Writing To A File
The script below writes to a file and sends back confirmation that all is well. That is working correctly. The problem I am having is when I view the blank data.txt file that I uploaded to the server (and yes, I have put the file permissions to rw-rw-rw) its still blank!!!!!!! despite my little script stating that all is well. The same script works perfectly well on the
totalise server. If the answer is to run the script as cgi I am too sure how to carry out the 7 different suggestions advised at the FAQ. I am OK at saving the script with a .pl or .cgi extsion instead of .php but how do I incorporate the extra line of code(#!/usr/bin/perl?) do I use it everytime I open php in the
script or just once at the start. What exactly is the base path and how do I check to see if it is set correctly. The script in question is: (basically it handles the data(an URL and a description) coming from a html form and writes these to a file(data.txt)

<?php
function WriteToFile ($URL, $Description) {
/* Function WriteToFile takes two arguments--URL and Description--which will
be written to an external file. */
$TheFile = "data.txt";
if(is_writeable($TheFile)){
$Open = fopen ($TheFile, "a");
if ($Open) {
fwrite ($Open, "$URL $Description
");
fclose ($Open);
$Worked = TRUE;
}
}
else
{
$Worked = FALSE;
}

return $Worked;
} // End of WriteToFile Function.
?>
<HTML>
<HEAD>
<TITLE>Using Files</TITLE>
</HEAD>
<BODY>

<?php
/* This page receives and handles the data generated by "form.html". */
$Pattern = "(http://)?([^[:space:]]+)([[:alnum:].,_?/&=-])";

if (eregi($Pattern, $Array["URL"])) {
$Replace = "<a href="http://23" target="_new">23</a>";
$Array["URL"] = eregi_replace($Pattern, $Replace, $Array["URL"]);
$CallFunction = WriteToFile ($Array["URL"], $Array["Description"]);
if ($CallFunction) {
print ("Your submission--$Array[URL]--has been received!<BR>
");
} else {
print ("Your submission was not processed due to a system error!<BR>
");
}
} else {
print ("Please enter a valid Web address!
");
}
?>
</BODY>
</HTML>

View Replies !
Writing A .RTF Document Using PHP
Does anyone know how to use PHP to write a rich text format file - or know of a link to an article that explains it?

I'm getting a bunch of user input from a form, and want to slot the values into a .rtf file so that the document can be printed out for signing (it's a contract).

View Replies !
Writing PHP Scripts Without Using ? In The URL
I plan on redeveloping a website using a PHP and MySQL backend, rather than the static HTML files that are in use now, as it is difficult and time consuming to update. Right now, these pages are indexed in Google, and that is a large source of traffic for the site.

Basically, Google will ignore any URL using a "?", that is the primary reason VBulletin and most bulletin boards are ignored on the search engine. Is there any way to write a script like

/script.php?action=blah

Without using a ? in the URL?

View Replies !
Writing To .htaccess
I read "Blocking Badly Behaved Bots" and its predecessor, and I'd like to ask a relatively simple question:

Assuming I already have the bad IP to ban (let's call it $ip), how would I write the IP to the appropriate line in .htaccess, and safely?

I'd like to use a relatively simple script like this one:

<?php
$file = $_SERVER['DOCUMENT_ROOT'] .'/.htaccess'
$fp = fopen($file, 'a');
fwrite($fp, "Deny from".$ip."");
fclose($fp);
?>

But again, I'm not sure how safe this is, and it doesn't write the IP to the correct line. Any suggestions? I know the other anti-bot scripts do this, but it is very (needlessly?) complicated and I have not been able to block the IP in the right line. Please help out a newbie trying to defend his sites vulnerable forms!

View Replies !
Reading And Writing With Php
In my script i have 1 seperate fopen() sequence to read the file, so it can put it into a textarea.
Then i have another fopen() sequence that will the values i have in the textarea, but for some odd reason it doesn't work! I hope I did an OK job at explaing this. But heres my code! PHP CODE:

View Replies !
PHP Writing To A File Help
I am trying to create a script that will take the MYSQl DB details that have been sent from a form and store it in a file for usage at a later stage.

Am I doing this correctly:

View Replies !
Fwrite Not Writing
I am writing my own news system for my website and everything is flat file at the moment.
I've got it all coded out and it works perfectly. However, i'm on the final stages of this, and of course its the Editing / Deleting part. This is where my problem arises.
PHP Code:

View Replies !
Need Help Writing Own Functions
I would like to try writing my own functions, so as to keep some code
within the same PHP file rather than make multiple PHP files.

What I am having a problem is is how to call a function when a php
generated HTML form is "submitted" and to put the variables back into
another function within the same PHP file.

I have figured how to pass variables to a basic test function I wrote, but
not how to call a function within the same PHP file AND from a form.

Can't seem to find any good examples online.

View Replies !
Writing Code.
I want the user to have some setup options such as changing the name variable, emal varable, among other things in an online format. I am not using MySQL with this script.

So what I was thinking was the following, where $name and $email are the name and email variables, and $enter_name and $enter_email are the user input to change these values in variables.txt:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
$fp = fopen($file, "r+");
$write_to_file = "write the excact same code as in variables.txt except change each value to the users input";
fwrite($fp, $write_to_file);
fclose($fp);
[/code]

What I mean (the description you see of $write_to_file) is I want it to rewrite variables.txt with the new input. So, How can I write PHP code in a variable?

View Replies !
Displaying And Writing
How would I be able to take the contents of a form, and write it to a text file, and then, be able to, each time someone submits a form it rewrites over the same text file?


View Replies !
Php Not Writing To Mysql
Local server is processing php, DWMX is connecting to Mysql db but php is not writing to db. I have tried two different version of form processing with php but neither is writing to db. Have checked Mysql permissions, I'm able to edit the db from dos with no difficulty.

Have been told it could be the hard drive is not allowing me to write to it. Where are the write permissions defined? In php. Apache or windows? This is not producing an error

echo mysql_error();
echo "<br>";
echo mysql_error();
echo "<br>";

Is there other script I could use to make a simple test?

View Replies !
Writing To Files
I made a form and when the user submits the form it writes what they submitted in a .txt file. However everytime someone puts in something new it just rewrites over what was in the .txt. I know that when you open a file for write mode it clears all contents, but how do those PHP news managers work? They keep writing to one file (example:news.txt). I want to just keep adding into the same .txt file without losing whats already in there. Can this be done?

View Replies !
Writing CSV Files
I desperately need some help with writing data to a CSV file in PHP. I've scoured the 'Net for information/help about how to go about doing this, and have not had a single bit of luck finding anything!

View Replies !
Writing Csv Or Txt File
I am trying to create a method of exporting a csv or plain text file from a mysql database, so that users can save this file to disk for use in Excel or other popular spreadsheet & database applications.

I have a query which selects the records, and I can format it easily enough using HTML table and related tags... Does anyone know a good way to format the results of the query so users can save this file as txt/csv file?

View Replies !
Writing A PHP Extension
I have the following questions regarding writing a PHP extension.
You don't have to answer all questions. Please answer everything you
can. I'd really appreciate it.

1. What is the most common version that's used out there? If I wrote
an extension for PHP 4, would it work for PHP 5? Also, is PHP 3 very
different?

2. My extension will need to use an external C++ (not C) library.
That should be all right, right?

3. When/where/how do I specify whether or not I want my extension to
be built-in or external? I know (actually, more like, think) that it
is in config.m4 but I don't know exactly how to specify it?

4. This is probably more a C/C++ question, when/where/how do I specify
whether or not my library is to be shared/dynamic or static? Also, is
that decision relevant only for external extensions?

View Replies !
Writing Into .htaccess
How do I write a new line into an .htaccess file?

$fh = fopen($database."/.htaccess","w");
fwrite($fh,"Order Deny,Allow
Deny from all");
fclose($fh);

I used that, but it doesn't make a new line at.

View Replies !
Writing IP Out To Logfile
I have a website where people have the option to upload pics.
when someone uploads a pic i want a file that logs the pic number and the remote ip.
It works so far but i cant get each new log on a new line "/n" doesnt work? Code:

View Replies !
XML Files Writing
I am soon going to be looking to write XML files with php, I think it has to be written in a certain encoding or would the simple writing functions do ?

such as

touch()
fputs
fgets

all that jazz

or do i need to use some special function which will write in a certain encoding ?

View Replies !
Writing To XML Using Either DOM Or SimpleXML
I've been having quite some trouble figuring out specific XML coding in PHP5. I'm trying to edit and remove specific tags in a specific way using DOM (I'd rather use SimpleXML but it seems rather limited on this area). Code:

View Replies !
Writing To File With Php
Currently working my way through 'PHP and MySQL Web Development' by Luke Welling and Laura Thomson and am having difficulty writing to file in one of the examples.

It throws up the following error:

Warning: fopen(c:inetpubwwwroot/../orders/orders.txt) [function.fopen]: failed to open stream: No such file or directory in C:InetpubwwwrootLearn PHP and MYSQLLuke Wellingprocessorder.php on line 64 Code:

View Replies !
Writing To Every Directory
At least one page in every directory in my site has 4 external files which are included...

Which means every time I edit one of them I have to go through all my directories to upload the new versoins usually taking me about 20 minutes...which is a lot of time where I could be coding other stuff...

so here it is, is there any way I could write a script and when I run it, it will upload all 4 files to all directories?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved