Quiero desarrollar una aplicacion de escritorio para ese SO(lo estoy desarrollando desde windows 10) para ser mas exactos es macOS catalina 10.15 que tengo que hacer para que sea compatible con el
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
<h4>An uncaught Exception was encountered</h4>
<p>Type: PHPExcel_Reader_Exception</p>
<p>Message: Could not open Libro1.xlsx for reading! File does not exist.</p>
<p>Filename: /var/www/html/Classes/PHPExcel/Reader/Excel2007.php</p>
<p>Line Number: 73</p>
require_once '/var/www/html/Classes/PHPExcel.php';
$archivo = $_FILES['file']['name'];
$inputFileType = PHPExcel_IOFactory::identify($archivo);
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
$objPHPExcel = $objReader->load($archivo);
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
include('/var/www/html/lib/SSH/Net/SSH2.php');
$ftp_server = "xxx";$ftp_usuario = "xx";$ftp_pass = "xx";
$con_id = ftp_connect($ftp_server);
if (!$con_id) {
echo 'Error al conectar';
exit;
} else {
$lr = ftp_login($con_id, $ftp_usuario, $ftp_pass);
Warning :count():Parameter must be an array or an object that implements Countable in c://DIRECCIONDELPHP ONLINE 15
$(document).ready(function() {
$('#files').click(function() {
var attachments = document.getElementById('archivo');
var data = new FormData();
for (i = 0; i < attachments.files.length; i++) {
data.append('file', attachments.files[i]);
console.log(attachments.files[i]);
}
$.ajax({
data: data ,
url: "subida.php",
type: "POST",
contentType: false,
processData: false,
success:
function (r) {
alert('' + r);
}
});
});
});
$count = count($_FILES['file']['name']);
for ($i = 0; $i < $count; $i++) {
echo 'Nombre: '.$_FILES['file']['name'][$i].'<br/>';
}
<input id="archivo" type="file" name="archivo" multiple>
<button type="button" id="files"> Subir </button>
<script src="jquery.js"></script>
<script>
$(document).ready(function () {
$('#files').click(function () {
var datos = $('#archivo').prop('files')[0];
var form_data = new FormData();
form_data.append('file', datos );
$.ajax({
data: form_data ,
url: "subida.php",
type: "POST",
contentType: false,
processData: false,
success:
function (r) {
alert('' + r);
}
});
});
});
</script>
<?php
$ftp_server = "127.0.0.1";
$ftp_usuario = "root";
$ftp_pass = "";
$con_id = ftp_connect($ftp_server);
$lr = ftp_login($con_id, $ftp_usuario, $ftp_pass);
if ((!$con_id) || (!$lr)) {
echo 'NO SE PUDO CONECTAR';
exit;
} else {
echo 'CONECTADO CORRECTAMENTE';
if (!empty($_FILES['file']['name'])) {
$temp = explode(".", $_FILES['file']['name']);
$source_file = $_FILES['file']['tmp_name'];
$nombre = $_FILES['file']['name'];
$subio = ftp_put($con_id, $nombre, $source_file, FTP_BINARY);
if ( 0 < $_FILES['file']['error'] ) {
echo 'Error: ' . $_FILES['file']['error'] . '<br>';
}
else {
print_r($_FILES['file']['name']);
}
} else {
echo ' NO SELECCIONÓ NINGUN ARCHIVO';
}
}
?>
Citar
<div class="Coin">
<p><?php echo $_SESSION['monedas']; ?></p>
</div>
.Coin:hover{
cursor:pointer;
-moz-box-shadow: 0px 0px 42px #12bfff;
-webkit-box-shadow: 0px 0px -2px #12bfff;
box-shadow: 10px 0px 44px #12bfff;
}
.Coin{
background-image: url("../Imgs/coin.png");
width: 100px;
height: 100px;
background-size: 100px 100px;
display: flex;
justify-content: center;
align-items: center;
}
.Coin p{
font-size:20px;
color:white;
}
<div id="world">
<div class="credencialPos">
<div class="fCuerpo" id="ficha">
<div class="fBoxDatos" id="BoxD">
<h1>US</h1>
<div class="fBoxDatos1">
<div class="fBoxDatos2">
<p><strong>Nivel: </strong><?php echo $_SESSION['nivel']; ?></p>
<p><strong>Exp: </strong><?php echo $_SESSION['exp']; ?>XP</p>
<p><strong>Amigos: </strong>500</p>
<p><strong>Respeto: </strong>100</p>
</div>
<div class="fBoxDatos3">
<p><strong>Puntaje : </strong>1000</p>
<p><strong>Nivel : </strong>100</p>
</div>
</div>
</div>
<div class="fBoxMedallas" id="BoxM">
<img src="../Mesa/Imgs/Medallas/medalla1.png" width="100" height="100" />
</div>
</div>
</div>
</div>
var p = false;
var m = false;
var DP = document.getElementById("BoxD");
var DM = document.getElementById("BoxM");
var ficha = document.getElementById("ficha");
function abrirDP() {
if (p) {
p = false;
ficha.style.height = 420;
DP.style.visibility = "hidden";
} else {
p = true;
m = false;
ficha.style.height = 580;
DP.style.visibility = "visible";
DM.style.visibility = "hidden";
}
}
function abrirDM() {
if (m) {
m = false;
ficha.style.height = 420;
DM.style.visibility = "hidden";
} else {
p = false;
m = true;
ficha.style.height = 510;
DP.style.visibility = "hidden";
DM.style.visibility = "visible";
}
}
Form2 fm = new Form2();
fm.Show();
this.Hide();
Formprin frm = new Formprin();
frm.setVisible(true);
Form2 ft = new Form2 ();
ft.setVisible(true);
ft.setTitle("Abrio : "+this.contador+">");
this.contador++;
this.setVisible(false);
string nombrecar = "C:\\carpeta\otracar\guardaaqui";//guardaaqui es la carpeta que creara
if (!(Directory.Exists(nombrecar)))
{
Directory.CreateDirectory(nombrecar);
FileInfo file = new FileInfo(c:\escritorio\carpeta\archivo.doc);
file.CopyTo(nombrecar + "\\" + "archivo.doc");
}
String condicion= ".*[si]+[so].*";
Pattern pattern = Pattern.compile(condicion);
Matcher matcher = pattern.matcher(cadena);
System.out.println(matcher.matches());
$ft=strtotime($aux);//la variable aux es un string con una fecha unix
$ft= new DateTime($ft);
$ac= new DateTime("now");
$intervalo = $ac->diff($ft);
echo $intervalo->format(' %H horas');
JFileChooser jfc= new JFileChooser();
String direc = "";
try{
if(jfc.showSaveDialog(null)==jfc.APPROVE_OPTION){
direc = jfc.getSelectedFile().getAbsolutePath();
File archivo = new File(direc);
FileWriter ec = new FileWriter(archivo);
ec.write("HOLAAAAAAAAAAA");
ec.close();
}
}catch (Exception ex){
ex.printStackTrace();
}
#SAP1
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
#SAP2
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRR
#SAP3
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRR
¿---------------------?
RRRRRRRRRRRRRRRR
ArrayList arr = new ArrayList();
Encoding enc = System.Text.Encoding.UTF8;
IEnumerable<string> textLines = System.IO.File.ReadLines(ra, enc);
foreach (string o in textLines)
{
if (o.StartsWith("#"))
{
if (lb!= 0)
{
ccpr[lb- 1] = aux2.ToString();
}
aux2 = 0;
nlb[lb] = o;
lb++;
}
else
{
arr.Add(o);
cc++;
}
if (cc % 2 == 0 && cc != 0)
{
pg++;
aux2++;
}
}
private void Form1_Resize(object sender, EventArgs e)
{
button1.Width = this.Width - 540;
button2.Width = this.Width - 540;
button3.Width = this.Width - 540;
if (button2.Left <= 218)
{
button2.Left = this.Width - 522;
if (button2.Left > 218)
{
button2.Left = 218;
}
}
if (button3.Left <= 423)
{
button3.Left = this.Width - 397;
if (button3.Left > 423)
{
button3.Left = 423;
}
}
}
private void Vt2_FormClosing(object sender, FormClosingEventArgs e)
{
//INTENTE ASI
Form1 tr = new Form1();
tr.arre1= this.miarregloenvio1;
tr.arre2= this.miarregloenvio2;
//Y ASI
Form1 tr = new Form1();
tr.setArre1(this.miarregloenvio1);
tr.setArre2(this.miarregloenvio2);
//y revise asi si si se envio los datos
MessageBox.Show(tr.arre1[0], "x", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Form1 tr= new Form1();
string st = tr.arre1[0];
MessageBox.Show(st, "x", MessageBoxButtons.OK, MessageBoxIcon.Information);
$ahora = new DateTime(strtotime("now"));
$diamas = new DateTime(strtotime ( '+1 day' , strtotime ( "now" ) ));
$diferencia = $diamas->diff($ahora);
echo $diferencia->format('Faltán %h horas..');
//tambien intente así
$ahora = strtotime("now");
$diamas = strtotime ( '+1 day' , strtotime ( "now" ) );
$diferencia = $diamas->diff($ahora);
echo $diferencia->format('Faltán %h horas..');
function asdasd(){
alert("uno");
AQUI QUISIERA QUE EMPESARA UNA PAUSA de unos 5 segundos con el setInterval
alert("dos");
}
if (!preg_match("/^[0-9a-zA-Z]+$/",$_POST['campo'])) {
echo "hay un carácter no valido";
}else{
echo "todo bien";
}
Main mn = new Main();
mn.Show();
this.Hide();
private void Main_FormClosing(object sender, FormClosingEventArgs e)
{
Form1 fm = new Form1();
fm.Show();
}
var appHelper = {
templatesDir: 'app/tpls',
assetsDir: 'assets',
templatePath: function(view_name)
{
return this.templatesDir + '/' + view_name + '.php';
},
assetPath: function(file_path)
{
return this.assetsDir + '/' + file_path;
}
};
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 9
at java.lang.String.charAt(String.java:658)
at OmegaUp.abecedario.main(abecedario.java:30)
C:\Users\SrTrp\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 5 seconds)
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class abecedario {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String abc = "abcdefghijklmnopqrstuvwxyz";
int n = Integer.parseInt(bf.readLine());
String[] palabras = new String[n];
boolean[] status = new boolean[n];
int cc=0, ultimo=0;
for(int i = 0;i<n;i++){
palabras[i] = bf.readLine();
}
for(int i =0;i<palabras.length;i++){
String pal = palabras[i];
for(int j =0;j<26;j++){
if(pal.charAt(j)==abc.charAt(cc)){
status[i]=true;
cc++;
ultimo=1;
}else{
status[i]=false;
ultimo=0;
}
if(j==(abc.length()-1)){
if(ultimo!=0){
j=0;
}
}
}
}
for(int i=0;i<status.length;i++){
if(status[i]==true){
System.out.println("Correcto");
}else{
System.out.println("Incorrecto");
}
}
}
public static function decrypt($data, $key) {
$encryption_key = base64_decode($key);
list($encrypted_data, $iv) = explode('::', base64_decode($data), 2);// ESTA ES LA LINEA 11
return openssl_decrypt($encrypted_data, 'RC4', $encryption_key, 0, $iv);
}
$descript = EncrypterFull::decrypt($f['password'], $keyend);
$descriptip = EncrypterFull::decrypt($f['ip'], $keyend);
$ipalterna = ($f['ip_alter']);
if($pass==$descript){
if($ipalterna==1){
session_start();
$_SESSION['id']=$f['id'];
$ipconfig = EncrypterFull::encrypt($ip, $keyend);
header("Location: ../../../Main.php");
}else{
if($ip==$descriptip){
session_start();
$_SESSION['id']=$f['id'];
$ipconfig = EncrypterFull::encrypt($ip, $keyend);
.............................
.....................
$link->query($sqlts2);
header("Location: ../../../Main.php");
}else{
$error4 = base64_encode(2);
echo "<script>location.href='/index.php?error=$error4'</script>";
}
}
}else{
$error3 = base64_encode(3);
echo "<script>location.href='/index.php?error=$error3'</script>";
}
function enter(st){
var tep1 = {
"st" : st
};
$.ajax({
data: tep1,
url: 'system/ob_dd3.php',
type: 'POST',
success:function(data){
RP = JSON.parse(data);
alert(RP[0]);
}
});
}
include('../../conex/conex.php');
session_start();
$idder = $_SESSION['id'];
$sql1 = "SELECT hs FROM hous WHERE id_user='$idder' ORDER BY hs DESC";
$fs1 = $link->query($sql1);
$datahs= array();
while($rowhs = $fs1->fetch_assoc()) {
array_push($datahs, $rowhs["hs"]);
}
echo json_encode($datahs);
$d1 = "SELECT id_chatter FROM msjs WHERE id_usersend='$tds' OR id_userre='$tds' ORDER BY id_msj DESC";
$df1 = $link->query($d1);
$dfan1 = $df1->num_rows;
if($dfan1 > 0){
while($rows1 = $df1->fetch_assoc()) {
if(!isset($d1)){
$d1 = $rows1['id_chatter'];
}else{
if($d1 != $rows1['id_chatter']){
//Y AQUI NUEVAMENTE HACER OTRO IF CON EL ISSET $d2..
}
}
}
}